Skip to content

Commit a934d57

Browse files
authored
[NFC][SYCL] Set some target restrictions for some tests (#12505)
A few tests in the driver area require amdgpu or nvptx targets to be built in order to properly run. Add these requirements to the tests.
1 parent 2f56926 commit a934d57

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

clang/test/Driver/sycl-offload-amdgcn.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/// Tests specific to `-fsycl-targets=amdgcn-amd-amdhsa`
22

33
// UNSUPPORTED: system-windows
4+
// REQUIRES: amdgpu-registered-target
45

56
// Check that the offload arch is required
67
// RUN: not %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \

clang/test/Driver/sycl-triple-dae-flags.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// REQUIRES: nvptx-registered-target, amdgpu-registered-target
2+
13
// RUN: %clangxx -### -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend --offload-arch=gfx906 -fsycl-dead-args-optimization -nogpulib %s 2> %t.rocm.out
24
// RUN: FileCheck %s --input-file %t.rocm.out
35
// CHECK-NOT: -fenable-sycl-dae

clang/test/Driver/sycl-unsupported-arch.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// REQUIRES: amdgpu-registered-target
2+
13
/// Verify that compiler passes are correctly determined
24
// RUN: %clangxx -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx600 -nogpulib -c -ccc-print-phases %s 2>&1 | FileCheck %s --check-prefix=CHECK-PHASES
35
// CHECK-PHASES: offload, "device-sycl (amdgcn-amd-amdhsa:gfx600)"

0 commit comments

Comments
 (0)