Index: openmp/libomptarget/test/offloading/memory_manager.cpp =================================================================== --- openmp/libomptarget/test/offloading/memory_manager.cpp +++ openmp/libomptarget/test/offloading/memory_manager.cpp @@ -1,6 +1,5 @@ -// RUN: %libomptarget-compilexx-run-and-check-generic +// RUN: %libomptarget-compileoptxx-run-and-check-generic -// UNSUPPORTED: amdgcn-amd-amdhsa // UNSUPPORTED: x86_64-pc-linux-gnu // UNSUPPORTED: x86_64-pc-linux-gnu-LTO @@ -22,13 +21,13 @@ for (int i = 0; i < 16; ++i) { for (int n = 1; n < (1 << 13); n <<= 1) { int *p = (int *)omp_target_alloc(n * sizeof(int), 0); -#pragma omp target teams distribute parallel for is_device_ptr(p) +#pragma omp target teams distribute parallel for is_device_ptr(p) device(0) for (int j = 0; j < n; ++j) { p[j] = i; } int buffer[n]; #pragma omp target teams distribute parallel for is_device_ptr(p) \ - map(from : buffer) + map(from : buffer) device(0) for (int j = 0; j < n; ++j) { buffer[j] = p[j]; }