On Wed, May 29, 2024 at 08:20:01AM +0200, Tobias Burnus wrote: > + if (num_devices > 0 > + && (omp_requires_mask & GOMP_REQUIRES_UNIFIED_SHARED_MEMORY)) > + for (int dev = 0; dev < num_devices; dev++) > + { > + int pi; > + CUresult r; > + r = CUDA_CALL_NOCHECK (cuDeviceGetAttribute, &pi, > + CU_DEVICE_ATTRIBUTE_PAGEABLE_MEMORY_ACCESS, > + dev);
Formatting nit, the CU_DEVICE_... should be below cuDeviceGetAttribute, I think it fits like that (if it wouldn't one could use a temporary variable). Otherwise LGTM. Jakub