> The question is only what to do with 'requires unified_shared_memory' – > and a non-multi-device allocator.
The compiler emits an error at compile time if you attempt to use both -foffload-memory=pinned and USM, because they’re not compatible. You're fine to use both explicit allocators in the same program, but the "pinnedness" of USM allocations is a matter for Cuda to care about (cuMallocManaged) and has nothing to do with this discussion. The OpenMP pinned memory feature is intended to accelerate normal mappings, as far as I can tell. Andrew