It should be something like the following for current Thrust versions.
using mr = thrust::system::cuda::universal_host_pinned_memory_resource;
using pinned_allocator = thrust::mr::stateless_resource_allocator<T, mr >;
It should be something like the following for current Thrust versions.
using mr = thrust::system::cuda::universal_host_pinned_memory_resource;
using pinned_allocator = thrust::mr::stateless_resource_allocator<T, mr >;