Skip to content

Commit 27e5416

Browse files
authored
[Offload][OpenMP] Enable more tests on AMDGPU (llvm#156626)
(Re)enables a couple of tests that were disabled on AMDGPU for some reason. Pass for me locally.
1 parent 2ee5671 commit 27e5416

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-4
lines changed

offload/test/offloading/mandatory_but_no_devices.c

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,47 @@
33
// device. This behavior is proposed for OpenMP 5.2 in OpenMP spec github
44
// issue 2669.
55

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
647
// RUN: %libomptarget-compile-nvptx64-nvidia-cuda -DDIR=target
748
// RUN: env OMP_TARGET_OFFLOAD=mandatory CUDA_VISIBLE_DEVICES= \
849
// RUN: %libomptarget-run-fail-nvptx64-nvidia-cuda 2>&1 | \
@@ -42,8 +83,6 @@
4283
// RUN: %libomptarget-run-fail-nvptx64-nvidia-cuda 2>&1 | \
4384
// RUN: %fcheck-nvptx64-nvidia-cuda
4485

45-
// REQUIRES: nvptx64-nvidia-cuda
46-
4786
#include <omp.h>
4887
#include <stdio.h>
4988

offload/test/offloading/memory_manager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// RUN: %libomptarget-compilexx-run-and-check-generic
22

3-
// REQUIRES: nvidiagpu
4-
53
#include <omp.h>
64

75
#include <cassert>

0 commit comments

Comments
 (0)