Skip to content

Commit

Permalink
[SYCL][NFC] Add cuda requirement for CUDA tests (#11664)
Browse files Browse the repository at this point in the history
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 <michael.aziz@intel.com>
  • Loading branch information
0x12CC authored Oct 25, 2023
1 parent 6afeb2b commit de1b485
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; REQUIRES: cuda
; RUN: opt -load-pass-plugin %shlibdir/SYCLKernelFusion%shlibext \
; RUN: -passes=sycl-kernel-fusion --sycl-info-path %S/check-remapping.yaml \
; RUN: -S %s | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions sycl-fusion/test/kernel-fusion/check-remapping-cuda.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; REQUIRES: cuda
; RUN: opt -load-pass-plugin %shlibdir/SYCLKernelFusion%shlibext \
; RUN: -passes=sycl-kernel-fusion --sycl-info-path %S/check-remapping.yaml \
; RUN: -S %s | FileCheck %s
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; REQUIRES: cuda
; RUN: opt -load-pass-plugin %shlibdir/SYCLKernelFusion%shlibext \
; RUN: -passes=sycl-kernel-fusion --sycl-info-path %S/check-remapping.yaml \
; RUN: -S %s | FileCheck %s
Expand Down

0 comments on commit de1b485

Please sign in to comment.