diff --git a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp --- a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp +++ b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp @@ -2623,6 +2623,7 @@ hsa_amd_memory_pool_t MemoryPool; switch (Kind) { case TARGET_ALLOC_DEFAULT: + case TARGET_ALLOC_DEVICE: // GPU memory MemoryPool = DeviceInfo().getDeviceMemoryPool(DeviceId); break; diff --git a/openmp/libomptarget/test/api/omp_device_memory.c b/openmp/libomptarget/test/api/omp_device_memory.c --- a/openmp/libomptarget/test/api/omp_device_memory.c +++ b/openmp/libomptarget/test/api/omp_device_memory.c @@ -1,5 +1,4 @@ -// RUN: %libomptarget-compile-run-and-check-nvptx64-nvidia-cuda -// REQUIRES: nvptx64-nvidia-cuda +// RUN: %libomptarget-compile-run-and-check-generic #include #include