|
3 | 3 | // device. This behavior is proposed for OpenMP 5.2 in OpenMP spec github |
4 | 4 | // issue 2669. |
5 | 5 |
|
| 6 | +// AMD Tests |
| 7 | +// RUN: %libomptarget-compile-amdgcn-amd-amdhsa -DDIR=target |
| 8 | +// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \ |
| 9 | +// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \ |
| 10 | +// RUN: %fcheck-amdgcn-amd-amdhsa |
| 11 | + |
| 12 | +// RUN: %libomptarget-compile-amdgcn-amd-amdhsa -DDIR='target teams' |
| 13 | +// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \ |
| 14 | +// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \ |
| 15 | +// RUN: %fcheck-amdgcn-amd-amdhsa |
| 16 | + |
| 17 | +// RUN: %libomptarget-compile-amdgcn-amd-amdhsa -DDIR='target data map(X)' |
| 18 | +// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \ |
| 19 | +// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \ |
| 20 | +// RUN: %fcheck-amdgcn-amd-amdhsa |
| 21 | + |
| 22 | +// RUN: %libomptarget-compile-amdgcn-amd-amdhsa \ |
| 23 | +// RUN: -DDIR='target enter data map(to:X)' |
| 24 | +// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \ |
| 25 | +// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \ |
| 26 | +// RUN: %fcheck-amdgcn-amd-amdhsa |
| 27 | + |
| 28 | +// RUN: %libomptarget-compile-amdgcn-amd-amdhsa \ |
| 29 | +// RUN: -DDIR='target exit data map(from:X)' |
| 30 | +// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \ |
| 31 | +// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \ |
| 32 | +// RUN: %fcheck-amdgcn-amd-amdhsa |
| 33 | + |
| 34 | +// RUN: %libomptarget-compile-amdgcn-amd-amdhsa \ |
| 35 | +// RUN: -DDIR='target update to(X)' |
| 36 | +// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \ |
| 37 | +// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \ |
| 38 | +// RUN: %fcheck-amdgcn-amd-amdhsa |
| 39 | + |
| 40 | +// RUN: %libomptarget-compile-amdgcn-amd-amdhsa \ |
| 41 | +// RUN: -DDIR='target update from(X)' |
| 42 | +// RUN: env OMP_TARGET_OFFLOAD=mandatory ROCR_VISIBLE_DEVICES= \ |
| 43 | +// RUN: %libomptarget-run-fail-amdgcn-amd-amdhsa 2>&1 | \ |
| 44 | +// RUN: %fcheck-amdgcn-amd-amdhsa |
| 45 | + |
| 46 | +// Nvidia Tests |
6 | 47 | // RUN: %libomptarget-compile-nvptx64-nvidia-cuda -DDIR=target |
7 | 48 | // RUN: env OMP_TARGET_OFFLOAD=mandatory CUDA_VISIBLE_DEVICES= \ |
8 | 49 | // RUN: %libomptarget-run-fail-nvptx64-nvidia-cuda 2>&1 | \ |
|
42 | 83 | // RUN: %libomptarget-run-fail-nvptx64-nvidia-cuda 2>&1 | \ |
43 | 84 | // RUN: %fcheck-nvptx64-nvidia-cuda |
44 | 85 |
|
45 | | -// REQUIRES: nvptx64-nvidia-cuda |
46 | | - |
47 | 86 | #include <omp.h> |
48 | 87 | #include <stdio.h> |
49 | 88 |
|
|
0 commit comments