Skip to content

Commit

Permalink
Actually run FileCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-eds committed Feb 5, 2024
1 parent 4a510b6 commit 6c042e0
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions sycl/test-e2e/KernelFusion/non-kernel-cg.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
// RUN: %{build} -fsycl-embed-ir -o %t.out
// RUN: env SYCL_RT_WARNING_LEVEL=2 %{run} %t.out
// XFAIL: hip

// COM: Test fails on hip due to unsupported CG kinds being tested. This test
// only checks fusion does not crash on non-kernel CG (target independent test),
// so having multiple CG kinds has higher priority than running the test on all
// backends.
// RUN: env SYCL_RT_WARNING_LEVEL=2 %{run} %t.out 2>&1 | FileCheck %s

// Test non-kernel device command groups are not fused

Expand Down Expand Up @@ -104,14 +98,9 @@ int main() {
{
// CHECK: Not fusing 'fill usm' command group. Can only fuse device kernel command groups.
fw.start_fusion();
q.submit([&](handler &cgh) { cgh.fill(dst, Pattern, count); });
fw.complete_fusion();
}

{
// CHECK: Not fusing 'prefetch usm' command group. Can only fuse device kernel command groups.
fw.start_fusion();
q.submit([&](handler &cgh) { cgh.prefetch(dst, count); });
q.submit([&](handler &cgh) {
cgh.memset(dst, static_cast<int>(Pattern), count);
});
fw.complete_fusion();
}

Expand Down

0 comments on commit 6c042e0

Please sign in to comment.