Summary: This patch is an attempt to get a clean run of `check-openmp` running on an NVPTX machine. I simply took the lists of tests that failed on my `sm_89` machine and disabled them or fixed them. A lot of these tests are disabled on AMDGPU already, so it makes sense that NVPTX fails. The others are simply problems with NVPTX optimized debugging which will need to be fixed. I opened an issue on one of them.
31 lines
722 B
C
31 lines
722 B
C
// RUN: %libomptarget-compile-generic -fopenmp-version=51 -g
|
|
// RUN: env LIBOMPTARGET_INFO=64 %libomptarget-run-fail-generic 2>&1 \
|
|
// RUN: | %fcheck-generic
|
|
|
|
// FIXME: Fails due to optimized debugging in 'ptxas'
|
|
// UNSUPPORTED: nvptx64-nvidia-cuda-LTO
|
|
|
|
#include <stdio.h>
|
|
|
|
int main() {
|
|
float arr[10];
|
|
float *x = &arr[0];
|
|
|
|
// CHECK: host addr=0x[[#%x,HOST_ADDR:]]
|
|
fprintf(stderr, "host addr=%p\n", x);
|
|
|
|
#pragma omp target data map(to : x [0:10])
|
|
{
|
|
// CHECK: omptarget device 0 info: variable x does not have a valid device
|
|
// counterpart
|
|
#pragma omp target data use_device_addr(x)
|
|
{
|
|
// CHECK-NOT: device addr=0x[[#%x,HOST_ADDR:]]
|
|
fprintf(stderr, "device addr=%p\n", x);
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|