Thrust pinned memory in CUDA 12.0

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 >;
1 Like