Skip to content

Commit 7146eec

Browse files
[SYCL][E2E] Use correct subtitution for -O0 (#16440)
On Windows clang tries to mimic `cl.exe` interface and it has a different spelling for `-O0` (`/Od`). Updated a couple of tests to make them work on Windows as well by using a substitution instead of a flag directly.
1 parent 6daabd8 commit 7146eec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/test-e2e/OptionalKernelFeatures/fp64-conv-emu-1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// UNSUPPORTED: cuda, hip
1818
// UNSUPPORTED-REASON: FP64 emulation is an Intel specific feature.
1919

20-
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_dg2_g10,intel_gpu_dg2_g11,intel_gpu_dg2_g12,intel_gpu_pvc,intel_gpu_mtl_h,intel_gpu_mtl_u -fsycl-fp64-conv-emu -O0 %s -o %t.out
20+
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_dg2_g10,intel_gpu_dg2_g11,intel_gpu_dg2_g12,intel_gpu_pvc,intel_gpu_mtl_h,intel_gpu_mtl_u -fsycl-fp64-conv-emu %O0 %s -o %t.out
2121
// RUN: %{run} %t.out
2222

2323
// Tests that aspect::fp64 is not emitted correctly when -fsycl-fp64-conv-emu

sycl/test-e2e/OptionalKernelFeatures/fp64-conv-emu-2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// UNSUPPORTED: cuda, hip
2121
// UNSUPPORTED-REASON: FP64 emulation is an Intel specific feature.
2222

23-
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_dg2_g10,intel_gpu_dg2_g11,intel_gpu_dg2_g12,intel_gpu_pvc,intel_gpu_mtl_h,intel_gpu_mtl_u -fsycl-fp64-conv-emu -O0 %s -o %t.out
23+
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_dg2_g10,intel_gpu_dg2_g11,intel_gpu_dg2_g12,intel_gpu_pvc,intel_gpu_mtl_h,intel_gpu_mtl_u -fsycl-fp64-conv-emu %O0 %s -o %t.out
2424
// RUN: %{run} %t.out
2525

2626
#include <sycl/detail/core.hpp>

0 commit comments

Comments
 (0)