diff --git a/sycl/test/basic_tests/boolean.cpp b/sycl/test/basic_tests/boolean.cpp index dec4aec312ed7..031a0afafda01 100644 --- a/sycl/test/basic_tests/boolean.cpp +++ b/sycl/test/basic_tests/boolean.cpp @@ -1,7 +1,8 @@ // TODO: Enable compilation w/o -fno-sycl-early-optimizations option. // See https://github.com/intel/llvm/issues/2264 for more details. +// XFAIL: gpu && (level_zero || opencl) -// RUN: %clangxx -fsycl -fno-sycl-early-optimizations -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out diff --git a/sycl/test/basic_tests/stream/stream.cpp b/sycl/test/basic_tests/stream/stream.cpp index 34cef884152a3..441320da38f50 100644 --- a/sycl/test/basic_tests/stream/stream.cpp +++ b/sycl/test/basic_tests/stream/stream.cpp @@ -1,8 +1,8 @@ -// XFAIL: cpu // TODO: Enable compilation w/o -fno-sycl-early-optimizations option. // See https://github.com/intel/llvm/issues/2264 for more details. +// XFAIL: gpu && (level_zero || opencl) && linux -// RUN: %clangxx -fsycl -fno-sycl-early-optimizations -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out | FileCheck %s // RUN: %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER // RUN: %GPU_RUN_ON_LINUX_PLACEHOLDER %t.out %GPU_CHECK_ON_LINUX_PLACEHOLDER diff --git a/sycl/test/hier_par/hier_par_wgscope.cpp b/sycl/test/hier_par/hier_par_wgscope.cpp index b0e58d305e1f5..698ac60bf8489 100644 --- a/sycl/test/hier_par/hier_par_wgscope.cpp +++ b/sycl/test/hier_par/hier_par_wgscope.cpp @@ -1,7 +1,8 @@ // TODO: Enable compilation w/o -fno-sycl-early-optimizations option. // See https://github.com/intel/llvm/issues/2264 for more details. +// XFAIL: gpu && (level_zero || opencl) -// RUN: %clangxx -fsycl -fno-sycl-early-optimizations -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out diff --git a/sycl/test/sub_group/generic-shuffle.cpp b/sycl/test/sub_group/generic-shuffle.cpp index 786a9b57a0ec2..b8bb972d646a2 100644 --- a/sycl/test/sub_group/generic-shuffle.cpp +++ b/sycl/test/sub_group/generic-shuffle.cpp @@ -1,10 +1,7 @@ -// TODO: Enable compilation w/o -fno-sycl-early-optimizations option. -// See https://github.com/intel/llvm/issues/2264 for more details. - // UNSUPPORTED: cuda // CUDA compilation and runtime do not yet support sub-groups. // -// RUN: %clangxx -fsycl -fno-sycl-early-optimizations -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out diff --git a/sycl/test/sub_group/generic_reduce.cpp b/sycl/test/sub_group/generic_reduce.cpp index 98401e091e733..676c6b284a394 100644 --- a/sycl/test/sub_group/generic_reduce.cpp +++ b/sycl/test/sub_group/generic_reduce.cpp @@ -1,11 +1,12 @@ // TODO: Enable compilation w/o -fno-sycl-early-optimizations option. // See https://github.com/intel/llvm/issues/2264 for more details. +// XFAIL: gpu // UNSUPPORTED: cuda // CUDA compilation and runtime do not yet support sub-groups. // -// RUN: %clangxx -fsycl -fno-sycl-early-optimizations -fsycl-unnamed-lambda -std=c++14 %s -o %t.out -// RUN: %clangxx -fsycl -fno-sycl-early-optimizations -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple -std=c++14 -D SG_GPU %s -o %t_gpu.out +// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -std=c++14 %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-unnamed-lambda -fsycl-targets=%sycl_triple -std=c++14 -D SG_GPU %s -o %t_gpu.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t_gpu.out diff --git a/sycl/test/sub_group/load_store.cpp b/sycl/test/sub_group/load_store.cpp index c51a01fbdaefe..f6c96a02324d1 100644 --- a/sycl/test/sub_group/load_store.cpp +++ b/sycl/test/sub_group/load_store.cpp @@ -1,12 +1,13 @@ // TODO: Enable compilation w/o -fno-sycl-early-optimizations option. // See https://github.com/intel/llvm/issues/2264 for more details. +// XFAIL: gpu // UNSUPPORTED: cuda || cpu // CUDA compilation and runtime do not yet support sub-groups. // #2252 Disable until all variants of built-ins are available in OpenCL CPU // runtime for every supported ISA // -// RUN: %clangxx -fsycl -fno-sycl-early-optimizations -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out diff --git a/sycl/test/sub_group/scan_fp16.cpp b/sycl/test/sub_group/scan_fp16.cpp index 13e3f45b27944..bfdb09f8f7f31 100644 --- a/sycl/test/sub_group/scan_fp16.cpp +++ b/sycl/test/sub_group/scan_fp16.cpp @@ -1,10 +1,7 @@ -// TODO: Enable compilation w/o -fno-sycl-early-optimizations option. -// See https://github.com/intel/llvm/issues/2264 for more details. - // UNSUPPORTED: cuda // CUDA compilation and runtime do not yet support sub-groups. // -// RUN: %clangxx -fsycl -fno-sycl-early-optimizations -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out //==--------------- scan_fp16.cpp - SYCL sub_group scan test --------*- C++ -*---==// diff --git a/sycl/test/sub_group/shuffle.cpp b/sycl/test/sub_group/shuffle.cpp index b86b00dbf89b1..5207716148ef6 100644 --- a/sycl/test/sub_group/shuffle.cpp +++ b/sycl/test/sub_group/shuffle.cpp @@ -1,10 +1,7 @@ -// TODO: Enable compilation w/o -fno-sycl-early-optimizations option. -// See https://github.com/intel/llvm/issues/2264 for more details. - // UNSUPPORTED: cuda // CUDA compilation and runtime do not yet support sub-groups. // -// RUN: %clangxx -fsycl -fno-sycl-early-optimizations -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out diff --git a/sycl/test/sub_group/shuffle_fp16.cpp b/sycl/test/sub_group/shuffle_fp16.cpp index 930035d37a674..62f07fc612de8 100644 --- a/sycl/test/sub_group/shuffle_fp16.cpp +++ b/sycl/test/sub_group/shuffle_fp16.cpp @@ -1,10 +1,7 @@ -// TODO: Enable compilation w/o -fno-sycl-early-optimizations option. -// See https://github.com/intel/llvm/issues/2264 for more details. - // UNSUPPORTED: cuda // CUDA compilation and runtime do not yet support sub-groups. // -// RUN: %clangxx -fsycl -fno-sycl-early-optimizations -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out // //==------------ shuffle_fp16.cpp - SYCL sub_group shuffle test -----*- C++ -*---==// diff --git a/sycl/test/sub_group/shuffle_fp64.cpp b/sycl/test/sub_group/shuffle_fp64.cpp index 3b5c3994cec87..3b1ed56907601 100644 --- a/sycl/test/sub_group/shuffle_fp64.cpp +++ b/sycl/test/sub_group/shuffle_fp64.cpp @@ -1,10 +1,7 @@ -// TODO: Enable compilation w/o -fno-sycl-early-optimizations option. -// See https://github.com/intel/llvm/issues/2264 for more details. - // UNSUPPORTED: cuda // CUDA compilation and runtime do not yet support sub-groups. // -// RUN: %clangxx -fsycl -fno-sycl-early-optimizations -fsycl-targets=%sycl_triple %s -o %t.out +// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: env SYCL_DEVICE_TYPE=HOST %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out