Skip to content

Commit de1b485

Browse files
authored
[SYCL][NFC] Add cuda requirement for CUDA tests (#11664)
Certain kernel fusion test cases fail when run using a compiler that's not configured with the `--cuda` flag. This change disables these test cases when there's no CUDA support. Signed-off-by: Michael Aziz <[email protected]>
1 parent 6afeb2b commit de1b485

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

sycl-fusion/test/kernel-fusion/check-failed-remapping-cuda.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; REQUIRES: cuda
12
; RUN: opt -load-pass-plugin %shlibdir/SYCLKernelFusion%shlibext \
23
; RUN: -passes=sycl-kernel-fusion --sycl-info-path %S/check-remapping.yaml \
34
; RUN: -S %s | FileCheck %s

sycl-fusion/test/kernel-fusion/check-remapping-cuda.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; REQUIRES: cuda
12
; RUN: opt -load-pass-plugin %shlibdir/SYCLKernelFusion%shlibext \
23
; RUN: -passes=sycl-kernel-fusion --sycl-info-path %S/check-remapping.yaml \
34
; RUN: -S %s | FileCheck %s

sycl-fusion/test/kernel-fusion/check-remapping-interproc-cuda.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; REQUIRES: cuda
12
; RUN: opt -load-pass-plugin %shlibdir/SYCLKernelFusion%shlibext \
23
; RUN: -passes=sycl-kernel-fusion --sycl-info-path %S/check-remapping.yaml \
34
; RUN: -S %s | FileCheck %s

0 commit comments

Comments
 (0)