diff --git a/sycl/test-e2e/AddressSanitizer/out-of-bounds/private/multiple_private.cpp b/sycl/test-e2e/AddressSanitizer/out-of-bounds/private/multiple_private.cpp index 284a04d2d9775..ec2a0b3fb435a 100644 --- a/sycl/test-e2e/AddressSanitizer/out-of-bounds/private/multiple_private.cpp +++ b/sycl/test-e2e/AddressSanitizer/out-of-bounds/private/multiple_private.cpp @@ -1,7 +1,7 @@ // REQUIRES: linux -// RUN: %{build} %device_asan_flags -DVAR=1 -O2 -g -o %t1 +// RUN: %{build} -Wno-error=array-bounds %device_asan_flags -DVAR=1 -O2 -g -o %t1 // RUN: env SYCL_PREFER_UR=1 %{run} not %t1 2>&1 | FileCheck --check-prefixes CHECK,CHECK-VAR1 %s -// RUN: %{build} %device_asan_flags -DVAR=2 -O2 -g -o %t2 +// RUN: %{build} -Wno-error=array-bounds %device_asan_flags -DVAR=2 -O2 -g -o %t2 // RUN: env SYCL_PREFER_UR=1 %{run} not %t2 2>&1 | FileCheck --check-prefixes CHECK,CHECK-VAR2 %s // RUN: %{build} %device_asan_flags -DVAR=3 -O2 -g -o %t3 // RUN: env SYCL_PREFER_UR=1 %{run} not %t3 2>&1 | FileCheck --check-prefixes CHECK,CHECK-VAR3 %s diff --git a/sycl/test-e2e/Basic/built-ins/marray_relational.cpp b/sycl/test-e2e/Basic/built-ins/marray_relational.cpp index 85e101d556bfb..390a880590af6 100644 --- a/sycl/test-e2e/Basic/built-ins/marray_relational.cpp +++ b/sycl/test-e2e/Basic/built-ins/marray_relational.cpp @@ -1,6 +1,6 @@ -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: %{run} %t.out -// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t_preview.out %} +// RUN: %if preview-breaking-changes-supported %{ %{build} -Wno-error=deprecated-declarations -fpreview-breaking-changes -o %t_preview.out %} // RUN: %if preview-breaking-changes-supported %{ %{run} %t_preview.out%} #include "helpers.hpp" diff --git a/sycl/test-e2e/Basic/cuda_max_wgs_error.cpp b/sycl/test-e2e/Basic/cuda_max_wgs_error.cpp index 2fcc254157e28..48775bdb06678 100644 --- a/sycl/test-e2e/Basic/cuda_max_wgs_error.cpp +++ b/sycl/test-e2e/Basic/cuda_max_wgs_error.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out -fno-sycl-id-queries-fit-in-int +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out -fno-sycl-id-queries-fit-in-int // RUN: %{run} %t.out // // REQUIRES: cuda diff --git a/sycl/test-e2e/Basic/info.cpp b/sycl/test-e2e/Basic/info.cpp index 1b64ab886cd8f..3fd83be26e994 100644 --- a/sycl/test-e2e/Basic/info.cpp +++ b/sycl/test-e2e/Basic/info.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -D__SYCL_INTERNAL_API -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -D__SYCL_INTERNAL_API -o %t.out // RUN: %{run} %t.out //==----------------info.cpp - SYCL objects get_info() test ----------------==// diff --git a/sycl/test-e2e/Basic/multi_ptr.cpp b/sycl/test-e2e/Basic/multi_ptr.cpp index 52ed97e6f541f..885f08cfea134 100644 --- a/sycl/test-e2e/Basic/multi_ptr.cpp +++ b/sycl/test-e2e/Basic/multi_ptr.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-dead-args-optimization -o %t.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-dead-args-optimization -o %t.out // RUN: %{run} %t.out //==--------------- multi_ptr.cpp - SYCL multi_ptr test --------------------==// diff --git a/sycl/test-e2e/Basic/multi_ptr_legacy.cpp b/sycl/test-e2e/Basic/multi_ptr_legacy.cpp index da0d6f56eab5c..bd09e04b23761 100644 --- a/sycl/test-e2e/Basic/multi_ptr_legacy.cpp +++ b/sycl/test-e2e/Basic/multi_ptr_legacy.cpp @@ -1,6 +1,6 @@ -// RUN: %{build} -fsycl-dead-args-optimization -DSYCL2020_DISABLE_DEPRECATION_WARNINGS -o %t.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-dead-args-optimization -DSYCL2020_DISABLE_DEPRECATION_WARNINGS -o %t.out // RUN: %{run} %t.out -// RUN: %{build} -DRESTRICT_WRITE_ACCESS_TO_CONSTANT_PTR -fsycl-dead-args-optimization -DSYCL2020_DISABLE_DEPRECATION_WARNINGS -o %t1.out +// RUN: %{build} -Wno-error=unused-command-line-argument -DRESTRICT_WRITE_ACCESS_TO_CONSTANT_PTR -fsycl-dead-args-optimization -DSYCL2020_DISABLE_DEPRECATION_WARNINGS -o %t1.out // RUN: %{run} %t1.out //==-------- multi_ptr_legacy.cpp - SYCL multi_ptr legacy test -------------==// diff --git a/sycl/test-e2e/Basic/multi_ptr_legacy_usm_addr_ext.cpp b/sycl/test-e2e/Basic/multi_ptr_legacy_usm_addr_ext.cpp index 6c234a9315c44..76651914de1b6 100644 --- a/sycl/test-e2e/Basic/multi_ptr_legacy_usm_addr_ext.cpp +++ b/sycl/test-e2e/Basic/multi_ptr_legacy_usm_addr_ext.cpp @@ -1,7 +1,7 @@ // REQUIRES: accelerator -// RUN: %{build} -D__ENABLE_USM_ADDR_SPACE__ -fsycl-dead-args-optimization -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -D__ENABLE_USM_ADDR_SPACE__ -fsycl-dead-args-optimization -o %t.out // RUN: %{run} %t.out -// RUN: %{build} -D__ENABLE_USM_ADDR_SPACE__ -DRESTRICT_WRITE_ACCESS_TO_CONSTANT_PTR -fsycl-dead-args-optimization -o %t1.out +// RUN: %{build} -Wno-error=deprecated-declarations -D__ENABLE_USM_ADDR_SPACE__ -DRESTRICT_WRITE_ACCESS_TO_CONSTANT_PTR -fsycl-dead-args-optimization -o %t1.out // RUN: %{run} %t1.out //==-- multi_ptr_legacy_usm_addr_ext.cpp - SYCL multi_ptr legacy test ext --==// diff --git a/sycl/test-e2e/Basic/offset-accessor-get_pointer.cpp b/sycl/test-e2e/Basic/offset-accessor-get_pointer.cpp index 097405ef5763b..182a008d37e6c 100644 --- a/sycl/test-e2e/Basic/offset-accessor-get_pointer.cpp +++ b/sycl/test-e2e/Basic/offset-accessor-get_pointer.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: %{run} %t.out // Per the SYCL 2020 spec (4.7.6.12 and others) diff --git a/sycl/test-e2e/Basic/parallel_for_indexers.cpp b/sycl/test-e2e/Basic/parallel_for_indexers.cpp index e9834e245e94c..3c41ac04fc8b1 100644 --- a/sycl/test-e2e/Basic/parallel_for_indexers.cpp +++ b/sycl/test-e2e/Basic/parallel_for_indexers.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t2.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t2.out // RUN: %{run} %t2.out #include diff --git a/sycl/test-e2e/Basic/range_offset_fit_in_int.cpp b/sycl/test-e2e/Basic/range_offset_fit_in_int.cpp index 0d1ea0cd67380..c58b6460918c8 100644 --- a/sycl/test-e2e/Basic/range_offset_fit_in_int.cpp +++ b/sycl/test-e2e/Basic/range_offset_fit_in_int.cpp @@ -1,5 +1,5 @@ // REQUIRES: cpu -// RUN: %{build} -fsycl-id-queries-fit-in-int -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-id-queries-fit-in-int -o %t.out // RUN: %{run} %t.out #include diff --git a/sycl/test-e2e/Basic/sampler/sampler.cpp b/sycl/test-e2e/Basic/sampler/sampler.cpp index 103bcd5d57fab..738408812f098 100644 --- a/sycl/test-e2e/Basic/sampler/sampler.cpp +++ b/sycl/test-e2e/Basic/sampler/sampler.cpp @@ -1,6 +1,6 @@ // REQUIRES: aspect-ext_intel_legacy_image // TODO: Can we move it to sycl/test? -// RUN: %{build} -fsycl-dead-args-optimization -o %t.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-dead-args-optimization -o %t.out // RUN: %{run} %t.out //==--------------- sampler.cpp - SYCL sampler basic test ------------------==// diff --git a/sycl/test-e2e/CMakeLists.txt b/sycl/test-e2e/CMakeLists.txt index c8b096315a8d6..96018d8b30b62 100644 --- a/sycl/test-e2e/CMakeLists.txt +++ b/sycl/test-e2e/CMakeLists.txt @@ -60,6 +60,7 @@ if(MSVC AND NOT SYCL_TEST_E2E_STANDALONE) else() set(SYCL_E2E_CLANG_CXX_FLAGS ${CMAKE_CXX_FLAGS}) endif() +list(APPEND SYCL_E2E_CLANG_CXX_FLAGS "-Werror") if(SYCL_TEST_E2E_STANDALONE) configure_file("${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in" diff --git a/sycl/test-e2e/Complex/sycl_complex_math_test.cpp b/sycl/test-e2e/Complex/sycl_complex_math_test.cpp index 1178bdf0b5ffe..899fb82667271 100644 --- a/sycl/test-e2e/Complex/sycl_complex_math_test.cpp +++ b/sycl/test-e2e/Complex/sycl_complex_math_test.cpp @@ -1,6 +1,6 @@ // DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%} -// RUN: %{build} -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out // RUN: %{run} %t.out #include "sycl_complex_helper.hpp" diff --git a/sycl/test-e2e/Complex/sycl_complex_operator_test.cpp b/sycl/test-e2e/Complex/sycl_complex_operator_test.cpp index 8894f5d965462..23eefc323a0ef 100644 --- a/sycl/test-e2e/Complex/sycl_complex_operator_test.cpp +++ b/sycl/test-e2e/Complex/sycl_complex_operator_test.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-device-code-split=per_kernel -o %t.out // RUN: %{run} %t.out #include "sycl_complex_helper.hpp" diff --git a/sycl/test-e2e/Complex/sycl_complex_pow_test.cpp b/sycl/test-e2e/Complex/sycl_complex_pow_test.cpp index 91d58a4cdeebb..21a362a99d2ef 100644 --- a/sycl/test-e2e/Complex/sycl_complex_pow_test.cpp +++ b/sycl/test-e2e/Complex/sycl_complex_pow_test.cpp @@ -1,6 +1,6 @@ // DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%} -// RUN: %{build} -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out // RUN: %{run} %t.out #include "sycl_complex_helper.hpp" diff --git a/sycl/test-e2e/Complex/sycl_complex_stream_test.cpp b/sycl/test-e2e/Complex/sycl_complex_stream_test.cpp index d8d645f6ac7dc..eb5c98a7b3ba7 100644 --- a/sycl/test-e2e/Complex/sycl_complex_stream_test.cpp +++ b/sycl/test-e2e/Complex/sycl_complex_stream_test.cpp @@ -1,6 +1,6 @@ // DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-finite-math-only%} %else %{-fno-finite-math-only%} -// RUN: %{build} -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-device-code-split=per_kernel %{mathflags} -o %t.out // RUN: %{run} %t.out #include "sycl_complex_helper.hpp" diff --git a/sycl/test-e2e/Config/kernel_from_file.cpp b/sycl/test-e2e/Config/kernel_from_file.cpp index a8b480a89c561..defbbac5601c8 100644 --- a/sycl/test-e2e/Config/kernel_from_file.cpp +++ b/sycl/test-e2e/Config/kernel_from_file.cpp @@ -6,7 +6,7 @@ // FIXME separate compilation requires -fno-sycl-dead-args-optimization // As we are doing a separate device compilation here, we need to explicitly // add the device lib instrumentation (itt_compiler_wrapper) -// RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT %cxx_std_optionc++17 -fsycl-device-only -fno-sycl-dead-args-optimization -Xclang -fsycl-int-header=%t.h -c %s -o %t.bc -Xclang -verify-ignore-unexpected=note,warning -Wno-sycl-strict +// RUN: %clangxx -Wno-error=ignored-attributes -DSYCL_DISABLE_FALLBACK_ASSERT %cxx_std_optionc++17 -fsycl-device-only -fno-sycl-dead-args-optimization -Xclang -fsycl-int-header=%t.h -c %s -o %t.bc -Xclang -verify-ignore-unexpected=note,warning -Wno-sycl-strict // >> ---- unbundle compiler wrapper and sanitizer device objects // RUN: clang-offload-bundler -type=o -targets=sycl-spir64-unknown-unknown -input=%sycl_static_libs_dir/libsycl-itt-compiler-wrappers%obj_ext -output=%t_compiler_wrappers.bc -unbundle // RUN: %if linux %{ clang-offload-bundler -type=o -targets=sycl-spir64-unknown-unknown -input=%sycl_static_libs_dir/libsycl-sanitizer%obj_ext -output=%t_sanitizer.bc -unbundle %} @@ -14,7 +14,7 @@ // RUN: %if linux %{ llvm-link -o=%t_app.bc %t.bc %t_compiler_wrappers.bc %t_sanitizer.bc %} %else %{ llvm-link -o=%t_app.bc %t.bc %t_compiler_wrappers.bc %} // >> ---- translate to SPIR-V // RUN: llvm-spirv -o %t.spv %t_app.bc -// RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT %cxx_std_optionc++17 %include_option %t.h %s -o %t.out %sycl_options -fno-sycl-dead-args-optimization -Xclang -verify-ignore-unexpected=note,warning +// RUN: %clangxx -Wno-error=ignored-attributes -DSYCL_DISABLE_FALLBACK_ASSERT %cxx_std_optionc++17 %include_option %t.h %s -o %t.out %sycl_options -fno-sycl-dead-args-optimization -Xclang -verify-ignore-unexpected=note,warning // RUN: env SYCL_USE_KERNEL_SPV=%t.spv %{run} %t.out | FileCheck %s // CHECK: Passed diff --git a/sycl/test-e2e/Config/select_device.cpp b/sycl/test-e2e/Config/select_device.cpp index 8ed6221bfeb43..a1c67d9fcbda1 100644 --- a/sycl/test-e2e/Config/select_device.cpp +++ b/sycl/test-e2e/Config/select_device.cpp @@ -1,5 +1,5 @@ // REQUIRES: gpu -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=return-type -o %t.out // // RUN: env ONEAPI_DEVICE_SELECTOR="*:gpu" %{run-unfiltered-devices} %t.out DEVICE_INFO write > %t.txt // RUN: env ONEAPI_DEVICE_SELECTOR="*:gpu" %{run-unfiltered-devices} %t.out DEVICE_INFO read %t.txt diff --git a/sycl/test-e2e/DeprecatedFeatures/lit.local.cfg b/sycl/test-e2e/DeprecatedFeatures/lit.local.cfg new file mode 100644 index 0000000000000..17484918ac865 --- /dev/null +++ b/sycl/test-e2e/DeprecatedFeatures/lit.local.cfg @@ -0,0 +1,6 @@ +original_clangxx="" +for substitution in config.substitutions: + if substitution[0] == "%clangxx": + original_clangxx=substitution[1] +config.substitutions.insert(0, + ("%clangxx", original_clangxx + " -Wno-error=deprecated-declarations ")) diff --git a/sycl/test-e2e/DeviceCodeSplit/split-per-kernel.cpp b/sycl/test-e2e/DeviceCodeSplit/split-per-kernel.cpp index b58e1ce59899a..f45f2333a853e 100644 --- a/sycl/test-e2e/DeviceCodeSplit/split-per-kernel.cpp +++ b/sycl/test-e2e/DeviceCodeSplit/split-per-kernel.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out \ +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-device-code-split=per_kernel -o %t.out \ // RUN: -fsycl-dead-args-optimization // RUN: %{run} %t.out // diff --git a/sycl/test-e2e/DeviceCodeSplit/split-per-source-main.cpp b/sycl/test-e2e/DeviceCodeSplit/split-per-source-main.cpp index 7cea0450f90df..4f9063c18e784 100644 --- a/sycl/test-e2e/DeviceCodeSplit/split-per-source-main.cpp +++ b/sycl/test-e2e/DeviceCodeSplit/split-per-source-main.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-device-code-split=per_source -I %S/Inputs -o %t.out %S/Inputs/split-per-source-second-file.cpp \ +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-device-code-split=per_source -I %S/Inputs -o %t.out %S/Inputs/split-per-source-second-file.cpp \ // RUN: -fsycl-dead-args-optimization // RUN: %{run} %t.out // diff --git a/sycl/test-e2e/DeviceLib/ITTAnnotations/atomic.cpp b/sycl/test-e2e/DeviceLib/ITTAnnotations/atomic.cpp index b6650ed166bba..272c21885365f 100644 --- a/sycl/test-e2e/DeviceLib/ITTAnnotations/atomic.cpp +++ b/sycl/test-e2e/DeviceLib/ITTAnnotations/atomic.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-instrument-device-code -o %t.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-instrument-device-code -o %t.out // RUN: %{run} %t.out #include "sycl/atomic_ref.hpp" diff --git a/sycl/test-e2e/DeviceLib/ITTAnnotations/barrier.cpp b/sycl/test-e2e/DeviceLib/ITTAnnotations/barrier.cpp index 42156b8710922..6597b06576744 100644 --- a/sycl/test-e2e/DeviceLib/ITTAnnotations/barrier.cpp +++ b/sycl/test-e2e/DeviceLib/ITTAnnotations/barrier.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-instrument-device-code -o %t.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-instrument-device-code -o %t.out // RUN: %{run} %t.out #include "sycl/detail/core.hpp" diff --git a/sycl/test-e2e/DeviceLib/built-ins/scalar_relational.cpp b/sycl/test-e2e/DeviceLib/built-ins/scalar_relational.cpp index 0eab2036a98b8..d67cc5d79e5df 100644 --- a/sycl/test-e2e/DeviceLib/built-ins/scalar_relational.cpp +++ b/sycl/test-e2e/DeviceLib/built-ins/scalar_relational.cpp @@ -1,5 +1,5 @@ // DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%} -// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out %{mathflags} +// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-device-code-split=per_kernel -o %t.out %{mathflags} // RUN: %{run} %t.out #include diff --git a/sycl/test-e2e/DeviceLib/cmath_test.cpp b/sycl/test-e2e/DeviceLib/cmath_test.cpp index 8206cba22bc8b..54e0c14d08bfa 100644 --- a/sycl/test-e2e/DeviceLib/cmath_test.cpp +++ b/sycl/test-e2e/DeviceLib/cmath_test.cpp @@ -4,7 +4,7 @@ // RUN: %{build} -fno-builtin %{mathflags} -o %t.out // RUN: %{run} %t.out -// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link %{mathflags} -o %t.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fno-builtin -fsycl-device-lib-jit-link %{mathflags} -o %t.out // RUN: %if !gpu %{ %{run} %t.out %} // // // Check that --fast-math works with cmath funcs for CUDA diff --git a/sycl/test-e2e/DeviceLib/math_override_test.cpp b/sycl/test-e2e/DeviceLib/math_override_test.cpp index 491f21d76a486..27929099f7fc7 100644 --- a/sycl/test-e2e/DeviceLib/math_override_test.cpp +++ b/sycl/test-e2e/DeviceLib/math_override_test.cpp @@ -1,5 +1,5 @@ // UNSUPPORTED: windows -// RUN: %clangxx -fsycl %s -o %t.out -fno-builtin +// RUN: %clangxx -fsycl %s -Wno-error=unused-command-line-argument -o %t.out -fno-builtin #include #include #include diff --git a/sycl/test-e2e/DeviceLib/math_test.cpp b/sycl/test-e2e/DeviceLib/math_test.cpp index ccc368a21e668..0380234575061 100644 --- a/sycl/test-e2e/DeviceLib/math_test.cpp +++ b/sycl/test-e2e/DeviceLib/math_test.cpp @@ -5,7 +5,7 @@ // RUN: %{build} %{mathflags} -o %t.out // RUN: %{run} %t.out -// RUN: %{build} -fsycl-device-lib-jit-link %{mathflags} -o %t.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-device-lib-jit-link %{mathflags} -o %t.out // RUN: %if !gpu %{ %{run} %t.out %} #include "math_utils.hpp" diff --git a/sycl/test-e2e/DeviceLib/separate_compile_test.cpp b/sycl/test-e2e/DeviceLib/separate_compile_test.cpp index 6d9d23e438b1c..a453c3c638d30 100644 --- a/sycl/test-e2e/DeviceLib/separate_compile_test.cpp +++ b/sycl/test-e2e/DeviceLib/separate_compile_test.cpp @@ -3,13 +3,13 @@ // RUN: %clangxx -fsycl -fsycl-link %S/std_complex_math_test.cpp -o %t_device.o %{mathflags} // RUN: %clangxx -fsycl-device-only -Xclang -fsycl-int-header=std_complex_math_test_ihdr.h %S/std_complex_math_test.cpp -Wno-sycl-strict %{mathflags} // >> host compilation... -// RUN: %clangxx %cxx_std_optionc++17 %include_option std_complex_math_test_ihdr.h -c %S/std_complex_math_test.cpp -o %t_host.o %sycl_options -Wno-sycl-strict %{mathflags} +// RUN: %clangxx -Wno-error=unused-command-line-argument -Wno-error=ignored-attributes %cxx_std_optionc++17 %include_option std_complex_math_test_ihdr.h -c %S/std_complex_math_test.cpp -o %t_host.o %sycl_options -Wno-sycl-strict %{mathflags} // RUN: %clangxx %t_host.o %t_device.o -o %t.out %sycl_options %{mathflags} // RUN: %{run} %t.out // RUN: %clangxx -fsycl -fsycl-link %S/std_complex_math_fp64_test.cpp -o %t_fp64_device.o %{mathflags} // RUN: %clangxx -fsycl-device-only -Xclang -fsycl-int-header=std_complex_math_fp64_test_ihdr.h %S/std_complex_math_fp64_test.cpp -Wno-sycl-strict %{mathflags} // >> host compilation... -// RUN: %clangxx %cxx_std_optionc++17 %include_option std_complex_math_fp64_test_ihdr.h -c %S/std_complex_math_fp64_test.cpp -o %t_fp64_host.o %sycl_options -Wno-sycl-strict %{mathflags} +// RUN: %clangxx -Wno-error=unused-command-line-argument -Wno-error=ignored-attributes %cxx_std_optionc++17 %include_option std_complex_math_fp64_test_ihdr.h -c %S/std_complex_math_fp64_test.cpp -o %t_fp64_host.o %sycl_options -Wno-sycl-strict %{mathflags} // RUN: %clangxx %t_fp64_host.o %t_fp64_device.o -o %t_fp64.out %sycl_options %{mathflags} // RUN: %{run} %t.out diff --git a/sycl/test-e2e/DeviceLib/string_test.cpp b/sycl/test-e2e/DeviceLib/string_test.cpp index a52f7684424c6..c518661303b6e 100644 --- a/sycl/test-e2e/DeviceLib/string_test.cpp +++ b/sycl/test-e2e/DeviceLib/string_test.cpp @@ -1,8 +1,8 @@ // UNSUPPORTED: hip -// RUN: %{build} -fno-builtin -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -Wno-error=pointer-to-int-cast -fno-builtin -o %t.out // RUN: %{run} %t.out // -// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out +// RUN: %{build} -Wno-error=unused-command-line-argument -Wno-error=deprecated-declarations -Wno-error=pointer-to-int-cast -fno-builtin -fsycl-device-lib-jit-link -o %t.out // RUN: %if !gpu %{ %{run} %t.out %} // UNSUPPORTED: accelerator diff --git a/sycl/test-e2e/DiscardEvents/discard_events_accessors.cpp b/sycl/test-e2e/DiscardEvents/discard_events_accessors.cpp index e6f298cbb1be6..aa0499bb4c99b 100644 --- a/sycl/test-e2e/DiscardEvents/discard_events_accessors.cpp +++ b/sycl/test-e2e/DiscardEvents/discard_events_accessors.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // // RUN: env SYCL_UR_TRACE=1 %{run} %t.out &> %t.txt ; FileCheck %s --input-file %t.txt // diff --git a/sycl/test-e2e/ESIMD/lit.local.cfg b/sycl/test-e2e/ESIMD/lit.local.cfg index 239c2e46e691b..2f910e5bed07e 100644 --- a/sycl/test-e2e/ESIMD/lit.local.cfg +++ b/sycl/test-e2e/ESIMD/lit.local.cfg @@ -12,3 +12,11 @@ if 'gpu-intel-gen9' in config.available_features and platform.system() == 'Windo # We should investigate why OCL fails separately. if 'gpu-intel-dg2' in config.available_features: config.required_features += ['level_zero'] + +# TODO: Remove this once the warnings are resolved +original_clangxx="" +for substitution in config.substitutions: + if substitution[0] == "%clangxx": + original_clangxx=substitution[1] +config.substitutions.insert(0, + ("%clangxx", original_clangxx+" -Wno-error=deprecated-declarations")) diff --git a/sycl/test-e2e/ESIMD/lsc/lsc_usm_store_u32.cpp b/sycl/test-e2e/ESIMD/lsc/lsc_usm_store_u32.cpp index 58a3ef70fd4fd..45ca8e44b06a1 100644 --- a/sycl/test-e2e/ESIMD/lsc/lsc_usm_store_u32.cpp +++ b/sycl/test-e2e/ESIMD/lsc/lsc_usm_store_u32.cpp @@ -13,7 +13,7 @@ // optimizations to produce correct result. // DEFINE: %{fpflags} = %if cl_options %{/clang:-ffp-exception-behavior=maytrap%} %else %{-ffp-exception-behavior=maytrap%} -// RUN: %{build} %{fpflags} -o %t.out +// RUN: %{build} -Wno-error=unsupported-floating-point-opt %{fpflags} -o %t.out // RUN: %{run} %t.out #include "Inputs/lsc_usm_store.hpp" diff --git a/sycl/test-e2e/ESIMD/lsc/lsc_usm_store_u32_64.cpp b/sycl/test-e2e/ESIMD/lsc/lsc_usm_store_u32_64.cpp index 14851907dbc9f..0098b8d388406 100644 --- a/sycl/test-e2e/ESIMD/lsc/lsc_usm_store_u32_64.cpp +++ b/sycl/test-e2e/ESIMD/lsc/lsc_usm_store_u32_64.cpp @@ -13,7 +13,7 @@ // optimizations to produce correct result. // DEFINE: %{fpflags} = %if cl_options %{/clang:-ffp-exception-behavior=maytrap%} %else %{-ffp-exception-behavior=maytrap%} -// RUN: %{build} %{fpflags} -o %t.out +// RUN: %{build} -Wno-error=unsupported-floating-point-opt %{fpflags} -o %t.out // RUN: %{run} %t.out // 64 bit offset variant of the test - uses 64 bit offsets. diff --git a/sycl/test-e2e/ESIMD/regression/dgetrf.cpp b/sycl/test-e2e/ESIMD/regression/dgetrf.cpp index f704ed4c5d8f6..33209e39a93f9 100644 --- a/sycl/test-e2e/ESIMD/regression/dgetrf.cpp +++ b/sycl/test-e2e/ESIMD/regression/dgetrf.cpp @@ -5,7 +5,7 @@ // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// -// RUN: %{build} -I%S/.. -o %t.out +// RUN: %{build} -Wno-error=format -I%S/.. -o %t.out // RUN: %{run} %t.out 3 2 1 // // This test checks the correctness of ESIMD program for batched LU diff --git a/sycl/test-e2e/ESIMD/regression/dgetrf_ref.cpp b/sycl/test-e2e/ESIMD/regression/dgetrf_ref.cpp index 0712554f12ef8..bfaa7c43c9ffe 100644 --- a/sycl/test-e2e/ESIMD/regression/dgetrf_ref.cpp +++ b/sycl/test-e2e/ESIMD/regression/dgetrf_ref.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -// RUN: %{build} -DUSE_REF -I%S/.. -o %t.ref.out +// RUN: %{build} -Wno-error=format -DUSE_REF -I%S/.. -o %t.ref.out // RUN: %{run} %t.ref.out 3 2 1 // // This test checks the correctness of ESIMD program for batched LU diff --git a/sycl/test-e2e/EnqueueNativeCommand/custom-command-cuda.cpp b/sycl/test-e2e/EnqueueNativeCommand/custom-command-cuda.cpp index 2aa8d9a4c590f..ff73a763b2dae 100644 --- a/sycl/test-e2e/EnqueueNativeCommand/custom-command-cuda.cpp +++ b/sycl/test-e2e/EnqueueNativeCommand/custom-command-cuda.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out %cuda_options +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out %cuda_options // RUN: %{run} %t.out // REQUIRES: cuda, cuda_dev_kit diff --git a/sycl/test-e2e/FilterSelector/reuse.cpp b/sycl/test-e2e/FilterSelector/reuse.cpp index d738386ab921a..e2fa81ab92b43 100644 --- a/sycl/test-e2e/FilterSelector/reuse.cpp +++ b/sycl/test-e2e/FilterSelector/reuse.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t1.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t1.out // RUN: %{run} %t1.out //==----------------- reuse.cpp - filter_selector reuse test ---------------==// diff --git a/sycl/test-e2e/FilterSelector/select.cpp b/sycl/test-e2e/FilterSelector/select.cpp index bccd564e89a04..7bec788e23a6e 100644 --- a/sycl/test-e2e/FilterSelector/select.cpp +++ b/sycl/test-e2e/FilterSelector/select.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t1.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t1.out // RUN: %{run} %t1.out //==------------------- select.cpp - filter_selector test ------------------==// diff --git a/sycl/test-e2e/FilterSelector/select_device_level_zero.cpp b/sycl/test-e2e/FilterSelector/select_device_level_zero.cpp index 5d962d2a51948..53d16b798ebcc 100644 --- a/sycl/test-e2e/FilterSelector/select_device_level_zero.cpp +++ b/sycl/test-e2e/FilterSelector/select_device_level_zero.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: env ONEAPI_DEVICE_SELECTOR=level_zero:gpu %{run-unfiltered-devices} %t.out // // Checks if only specified device types can be acquired from select_device diff --git a/sycl/test-e2e/GroupAlgorithm/different_types.cpp b/sycl/test-e2e/GroupAlgorithm/different_types.cpp index 79bba3745cf87..915f14431ee88 100644 --- a/sycl/test-e2e/GroupAlgorithm/different_types.cpp +++ b/sycl/test-e2e/GroupAlgorithm/different_types.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-device-code-split=per_kernel -I . -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-device-code-split=per_kernel -I . -o %t.out // RUN: %{run} %t.out #include "../helpers.hpp" diff --git a/sycl/test-e2e/GroupAlgorithm/exclusive_scan_sycl2020.cpp b/sycl/test-e2e/GroupAlgorithm/exclusive_scan_sycl2020.cpp index e90b70137473a..7e925a783afb2 100644 --- a/sycl/test-e2e/GroupAlgorithm/exclusive_scan_sycl2020.cpp +++ b/sycl/test-e2e/GroupAlgorithm/exclusive_scan_sycl2020.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-device-code-split=per_kernel -I . -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-device-code-split=per_kernel -I . -o %t.out // RUN: %{run} %t.out #include "../helpers.hpp" diff --git a/sycl/test-e2e/GroupAlgorithm/inclusive_scan_sycl2020.cpp b/sycl/test-e2e/GroupAlgorithm/inclusive_scan_sycl2020.cpp index e73215714a7c7..32ef97fbc2837 100644 --- a/sycl/test-e2e/GroupAlgorithm/inclusive_scan_sycl2020.cpp +++ b/sycl/test-e2e/GroupAlgorithm/inclusive_scan_sycl2020.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-device-code-split=per_kernel -I . -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-device-code-split=per_kernel -I . -o %t.out // RUN: %{run} %t.out #include "../helpers.hpp" diff --git a/sycl/test-e2e/GroupAlgorithm/load_store/odd_wg_size.cpp b/sycl/test-e2e/GroupAlgorithm/load_store/odd_wg_size.cpp index c5e0ce225427a..adce5e9f588bc 100644 --- a/sycl/test-e2e/GroupAlgorithm/load_store/odd_wg_size.cpp +++ b/sycl/test-e2e/GroupAlgorithm/load_store/odd_wg_size.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=incorrect-sub-group-size -o %t.out // RUN: %{run} %t.out #include diff --git a/sycl/test-e2e/GroupAlgorithm/load_store/partial_sg.cpp b/sycl/test-e2e/GroupAlgorithm/load_store/partial_sg.cpp index e74563fae97d2..72b87364f0ee9 100644 --- a/sycl/test-e2e/GroupAlgorithm/load_store/partial_sg.cpp +++ b/sycl/test-e2e/GroupAlgorithm/load_store/partial_sg.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=incorrect-sub-group-size -o %t.out // RUN: %{run} %t.out #include diff --git a/sycl/test-e2e/GroupLocalMemory/group_local_memory.cpp b/sycl/test-e2e/GroupLocalMemory/group_local_memory.cpp index 29f75b0ece1d1..7356f94a69ff8 100644 --- a/sycl/test-e2e/GroupLocalMemory/group_local_memory.cpp +++ b/sycl/test-e2e/GroupLocalMemory/group_local_memory.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: %{run} %t.out // // XFAIL: hip_nvidia diff --git a/sycl/test-e2e/GroupLocalMemory/no_early_opt.cpp b/sycl/test-e2e/GroupLocalMemory/no_early_opt.cpp index 0039e2b872a30..1091cf90b6dca 100644 --- a/sycl/test-e2e/GroupLocalMemory/no_early_opt.cpp +++ b/sycl/test-e2e/GroupLocalMemory/no_early_opt.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fno-sycl-early-optimizations -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -fno-sycl-early-optimizations -o %t.out // RUN: %{run} %t.out // // XFAIL: hip_nvidia diff --git a/sycl/test-e2e/HostInteropTask/interop-task-hip.cpp b/sycl/test-e2e/HostInteropTask/interop-task-hip.cpp index 7682f4ad25160..6daadc97888fc 100644 --- a/sycl/test-e2e/HostInteropTask/interop-task-hip.cpp +++ b/sycl/test-e2e/HostInteropTask/interop-task-hip.cpp @@ -1,6 +1,6 @@ // FIXME: the rocm include path and link path are highly platform dependent, // we should set this with some variable instead. -// RUN: %{build} -o %t.out -I/opt/rocm/include -L/opt/rocm/lib -lamdhip64 +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out -I/opt/rocm/include -L/opt/rocm/lib -lamdhip64 // RUN: %{run} %t.out // REQUIRES: hip diff --git a/sycl/test-e2e/HostInteropTask/interop-task.cpp b/sycl/test-e2e/HostInteropTask/interop-task.cpp index 668affc96a7c0..e9a22bc816a21 100644 --- a/sycl/test-e2e/HostInteropTask/interop-task.cpp +++ b/sycl/test-e2e/HostInteropTask/interop-task.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out %threads_lib %opencl_lib +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out %threads_lib %opencl_lib // RUN: %{run} %t.out // UNSUPPORTED: level_zero, cuda // REQUIRES: opencl, opencl_icd diff --git a/sycl/test-e2e/KernelAndProgram/kernel-bundle-merge-options-env.cpp b/sycl/test-e2e/KernelAndProgram/kernel-bundle-merge-options-env.cpp index c2589dcd42f88..d41e188cc2b0c 100644 --- a/sycl/test-e2e/KernelAndProgram/kernel-bundle-merge-options-env.cpp +++ b/sycl/test-e2e/KernelAndProgram/kernel-bundle-merge-options-env.cpp @@ -3,7 +3,7 @@ // RUN: %{build} -DSYCL_DISABLE_FALLBACK_ASSERT=1 -o %t.out %debug_option // RUN: env SYCL_UR_TRACE=1 SYCL_PROGRAM_COMPILE_OPTIONS=-DENV_COMPILE_OPTS SYCL_PROGRAM_LINK_OPTIONS=-DENV_LINK_OPTS SYCL_PROGRAM_APPEND_COMPILE_OPTIONS=-DENV_APPEND_COMPILE_OPTS SYCL_PROGRAM_APPEND_LINK_OPTIONS=-DENV_APPEND_LINK_OPTS %{run} %t.out | FileCheck %s // Check that options are overrided -// RUN: %{build} -DSYCL_DISABLE_FALLBACK_ASSERT=1 -Xsycl-target-linker=spir64 -DBAR -Xsycl-target-frontend=spir64 -DBAR_COMPILE -o %t.out +// RUN: %{build} -Wno-error=unused-command-line-argument -DSYCL_DISABLE_FALLBACK_ASSERT=1 -Xsycl-target-linker=spir64 -DBAR -Xsycl-target-frontend=spir64 -DBAR_COMPILE -o %t.out // RUN: env SYCL_UR_TRACE=1 SYCL_PROGRAM_COMPILE_OPTIONS=-DENV_COMPILE_OPTS SYCL_PROGRAM_LINK_OPTIONS=-DENV_LINK_OPTS SYCL_PROGRAM_APPEND_COMPILE_OPTIONS=-DENV_APPEND_COMPILE_OPTS SYCL_PROGRAM_APPEND_LINK_OPTIONS=-DENV_APPEND_LINK_OPTS %{run} %t.out | FileCheck %s // UNSUPPORTED: hip diff --git a/sycl/test-e2e/KernelAndProgram/target_compile_fast.cpp b/sycl/test-e2e/KernelAndProgram/target_compile_fast.cpp index 2501ca0b6e2df..0e0fd4ffb0693 100644 --- a/sycl/test-e2e/KernelAndProgram/target_compile_fast.cpp +++ b/sycl/test-e2e/KernelAndProgram/target_compile_fast.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -ftarget-compile-fast -o %t_with.out +// RUN: %{build} -Wno-error=unused-command-line-argument -ftarget-compile-fast -o %t_with.out // RUN: %{build} -o %t_without.out // RUN: env SYCL_UR_TRACE=1 %{run} %t_with.out 2>&1 | FileCheck %if !gpu || hip || cuda %{ --check-prefix=CHECK-WITHOUT %} %else %{ --check-prefix=CHECK-INTEL-GPU-WITH %} %s diff --git a/sycl/test-e2e/KernelParams/struct_kernel_param.cpp b/sycl/test-e2e/KernelParams/struct_kernel_param.cpp index f204ee0ccaa8c..bb9206b295762 100644 --- a/sycl/test-e2e/KernelParams/struct_kernel_param.cpp +++ b/sycl/test-e2e/KernelParams/struct_kernel_param.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: %{run} %t.out //==-struct_kernel_param.cpp-Checks passing structs as kernel params--------==// diff --git a/sycl/test-e2e/LLVMIntrinsicLowering/bitreverse.cpp b/sycl/test-e2e/LLVMIntrinsicLowering/bitreverse.cpp index c5e71243f59b7..05d171e1f8085 100644 --- a/sycl/test-e2e/LLVMIntrinsicLowering/bitreverse.cpp +++ b/sycl/test-e2e/LLVMIntrinsicLowering/bitreverse.cpp @@ -9,7 +9,7 @@ // will lower llvm.bitreverse.* intrinsics instead of relying on SPIRV // BitReverse instruction. // Also build executable with SPV dump. -// RUN: %{build} -o %t.out -O2 -Xspirv-translator --spirv-ext=-SPV_KHR_bit_instructions -fsycl-dump-device-code=%t.spvdir +// RUN: %{build} -Wno-error=psabi -Wno-error=constant-conversion -o %t.out -O2 -Xspirv-translator --spirv-ext=-SPV_KHR_bit_instructions -fsycl-dump-device-code=%t.spvdir // Rename SPV file to explictly known filename. // RUN: mv %t.spvdir/*.spv %t.spvdir/dump.spv @@ -26,7 +26,7 @@ ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Build without lowering explicitly disabled. -// RUN: %{build} -o %t.bitinstructions.out +// RUN: %{build} -Wno-error=psabi -Wno-error=constant-conversion -o %t.bitinstructions.out // Execution should still be correct. // RUN: %{run} %t.bitinstructions.out diff --git a/sycl/test-e2e/NewOffloadDriver/multisource.cpp b/sycl/test-e2e/NewOffloadDriver/multisource.cpp index ec0f3ad1b4569..83223d4b68e09 100644 --- a/sycl/test-e2e/NewOffloadDriver/multisource.cpp +++ b/sycl/test-e2e/NewOffloadDriver/multisource.cpp @@ -10,7 +10,7 @@ // Test with `--offload-new-driver` // RUN: %{build} --offload-new-driver -c -o %t.kernel.o -DINIT_KERNEL -DCALC_KERNEL // RUN: %{build} --offload-new-driver -c -o %t.main.o -DMAIN_APP -// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.kernel.o %t.main.o -o %t.fat +// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.kernel.o %t.main.o -o %t.fat // RUN: %{run} %t.fat // Multiple sources with kernel code @@ -18,7 +18,7 @@ // RUN: %{build} --offload-new-driver -c -o %t.init.o -DINIT_KERNEL // RUN: %{build} --offload-new-driver -c -o %t.calc.o -DCALC_KERNEL // RUN: %{build} --offload-new-driver -c -o %t.main.o -DMAIN_APP -// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.init.o %t.calc.o %t.main.o -o %t.fat +// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t.init.o %t.calc.o %t.main.o -o %t.fat // RUN: %{run} %t.fat #include diff --git a/sycl/test-e2e/NewOffloadDriver/split-per-source-main.cpp b/sycl/test-e2e/NewOffloadDriver/split-per-source-main.cpp index 1996e93ad3382..a2e130fa34d1b 100644 --- a/sycl/test-e2e/NewOffloadDriver/split-per-source-main.cpp +++ b/sycl/test-e2e/NewOffloadDriver/split-per-source-main.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-device-code-split=per_source -I %S/Inputs -o %t.out %S/Inputs/split-per-source-second-file.cpp \ +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-device-code-split=per_source -I %S/Inputs -o %t.out %S/Inputs/split-per-source-second-file.cpp \ // RUN: --offload-new-driver -fsycl-dead-args-optimization // RUN: %{run} %t.out // diff --git a/sycl/test-e2e/NewOffloadDriver/sycl-external-with-optional-features.cpp b/sycl/test-e2e/NewOffloadDriver/sycl-external-with-optional-features.cpp index 38268ad5efb6f..d1e8ef20a9a70 100644 --- a/sycl/test-e2e/NewOffloadDriver/sycl-external-with-optional-features.cpp +++ b/sycl/test-e2e/NewOffloadDriver/sycl-external-with-optional-features.cpp @@ -1,7 +1,7 @@ // Test with `--offload-new-driver` // RUN: %{build} -DSOURCE1 --offload-new-driver -c -o %t1.o // RUN: %{build} -DSOURCE2 --offload-new-driver -c -o %t2.o -// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t1.o %t2.o -o %t.exe +// RUN: %clangxx -Wno-error=unused-command-line-argument -fsycl -fsycl-targets=%{sycl_triple} --offload-new-driver %t1.o %t2.o -o %t.exe // RUN: %{run} %t.exe #ifdef SOURCE1 diff --git a/sycl/test-e2e/OnlineCompiler/online_compiler_L0.cpp b/sycl/test-e2e/OnlineCompiler/online_compiler_L0.cpp index 58fe10e30ea69..fc92d8957ef31 100644 --- a/sycl/test-e2e/OnlineCompiler/online_compiler_L0.cpp +++ b/sycl/test-e2e/OnlineCompiler/online_compiler_L0.cpp @@ -1,6 +1,6 @@ // REQUIRES: level_zero, level_zero_dev_kit, cm-compiler -// RUN: %{build} -DRUN_KERNELS %level_zero_options -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -DRUN_KERNELS %level_zero_options -o %t.out // RUN: %{run} %t.out // This test checks ext::intel feature class online_compiler for Level-Zero. diff --git a/sycl/test-e2e/OnlineCompiler/online_compiler_OpenCL.cpp b/sycl/test-e2e/OnlineCompiler/online_compiler_OpenCL.cpp index 57cd957d3a1df..8a0d67d3b02c3 100644 --- a/sycl/test-e2e/OnlineCompiler/online_compiler_OpenCL.cpp +++ b/sycl/test-e2e/OnlineCompiler/online_compiler_OpenCL.cpp @@ -1,7 +1,7 @@ // REQUIRES: opencl, opencl_icd, cm-compiler // UNSUPPORTED: accelerator -// RUN: %{build} -DRUN_KERNELS %opencl_lib -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -DRUN_KERNELS %opencl_lib -o %t.out // RUN: %{run} %t.out // This test checks ext::intel feature class online_compiler for OpenCL. diff --git a/sycl/test-e2e/OptionalKernelFeatures/is_compatible/is_compatible_with_aspects.cpp b/sycl/test-e2e/OptionalKernelFeatures/is_compatible/is_compatible_with_aspects.cpp index 535c3647793c7..68a8c19f1de0a 100644 --- a/sycl/test-e2e/OptionalKernelFeatures/is_compatible/is_compatible_with_aspects.cpp +++ b/sycl/test-e2e/OptionalKernelFeatures/is_compatible/is_compatible_with_aspects.cpp @@ -1,7 +1,7 @@ // requires: cpu, gpu, accelerator // UNSUPPORTED: hip // FIXME: enable the test back, see intel/llvm#8146 -// RUN: %{build} -O0 -o %t.out +// RUN: %{build} -Wno-error=incorrect-sub-group-size -O0 -o %t.out // RUN: %{run} %t.out #include diff --git a/sycl/test-e2e/Plugin/enqueue-arg-order-buffer.cpp b/sycl/test-e2e/Plugin/enqueue-arg-order-buffer.cpp index 2a7d0db62df94..387b72fb2dbb8 100644 --- a/sycl/test-e2e/Plugin/enqueue-arg-order-buffer.cpp +++ b/sycl/test-e2e/Plugin/enqueue-arg-order-buffer.cpp @@ -1,5 +1,5 @@ // UNSUPPORTED: hip_nvidia -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: env SYCL_UR_TRACE=1 %{run} %t.out | FileCheck %s #include diff --git a/sycl/test-e2e/Plugin/interop-level-zero-buffer.cpp b/sycl/test-e2e/Plugin/interop-level-zero-buffer.cpp index 9f097992de68d..9ec7f00a10819 100644 --- a/sycl/test-e2e/Plugin/interop-level-zero-buffer.cpp +++ b/sycl/test-e2e/Plugin/interop-level-zero-buffer.cpp @@ -2,7 +2,7 @@ // L0 plugin incorrectly reports memory leaks because it doesn't take into // account direct calls to L0 API. // UNSUPPORTED: ze_debug -// RUN: %{build} %level_zero_options -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations %level_zero_options -o %t.out // RUN: env UR_L0_DEBUG=1 %{run} %t.out // Test interoperability buffer for the Level Zer backend diff --git a/sycl/test-e2e/Plugin/interop-level-zero-thread.cpp b/sycl/test-e2e/Plugin/interop-level-zero-thread.cpp index 334567e5ca59c..129d43dc3ceb1 100644 --- a/sycl/test-e2e/Plugin/interop-level-zero-thread.cpp +++ b/sycl/test-e2e/Plugin/interop-level-zero-thread.cpp @@ -1,5 +1,5 @@ // REQUIRES: level_zero, level_zero_dev_kit -// RUN: %{build} -o %t.out %level_zero_options %threads_lib +// RUN: %{build} -Wno-error=deprecated-declarations -Wno-error=#warnings -o %t.out %level_zero_options %threads_lib // RUN: %{run} %t.out // // CHECK: Running iteration 0 diff --git a/sycl/test-e2e/Plugin/level_zero_eager_init.cpp b/sycl/test-e2e/Plugin/level_zero_eager_init.cpp index bb672ea6eea72..3d51e754f1489 100644 --- a/sycl/test-e2e/Plugin/level_zero_eager_init.cpp +++ b/sycl/test-e2e/Plugin/level_zero_eager_init.cpp @@ -1,6 +1,6 @@ // REQUIRES: level_zero, level_zero_dev_kit -// RUN: %{build} %level_zero_options -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations %level_zero_options -o %t.out // RUN: env UR_L0_DEBUG=1 SYCL_EAGER_INIT=1 %{run} %t.out 2>&1 | FileCheck %s // // The test is to check that under SYCL_EAGER_INIT=1 there is no calls to diff --git a/sycl/test-e2e/Plugin/level_zero_ext_intel_cslice.cpp b/sycl/test-e2e/Plugin/level_zero_ext_intel_cslice.cpp index 89d366bf404d3..f49f5a44ea5ff 100644 --- a/sycl/test-e2e/Plugin/level_zero_ext_intel_cslice.cpp +++ b/sycl/test-e2e/Plugin/level_zero_ext_intel_cslice.cpp @@ -2,7 +2,7 @@ // REQUIRES: aspect-ext_intel_device_id // UNSUPPORTED: gpu-intel-pvc-1T -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // TODO: at this time PVC 1T systems are not correctly supporting CSLICE // affinity partitioning So the test is marked as UNSUPPORTED until that is diff --git a/sycl/test-e2e/PreviewBreakingChanges/preview_lib_marker.cpp b/sycl/test-e2e/PreviewBreakingChanges/preview_lib_marker.cpp index 7a14c4067b898..ff5510ac46fd5 100644 --- a/sycl/test-e2e/PreviewBreakingChanges/preview_lib_marker.cpp +++ b/sycl/test-e2e/PreviewBreakingChanges/preview_lib_marker.cpp @@ -1,6 +1,6 @@ // REQUIRES: preview-breaking-changes-supported -// RUN: %clangxx -fsycl -fpreview-breaking-changes %s -o %t.out +// RUN: %clangxx -fsycl -fpreview-breaking-changes %s -Wno-error=unused-command-line-argument -o %t.out // RUN: %{run} %t.out // Test to help identify that E2E testing correctly detects and uses the preview diff --git a/sycl/test-e2e/Regression/check_vector_of_opencl_event.cpp b/sycl/test-e2e/Regression/check_vector_of_opencl_event.cpp index 5dd574dc5f6d8..4691523fb36c3 100644 --- a/sycl/test-e2e/Regression/check_vector_of_opencl_event.cpp +++ b/sycl/test-e2e/Regression/check_vector_of_opencl_event.cpp @@ -17,7 +17,8 @@ int main() { cgh.single_task([]() {}); }); // Check that get_native function returns a vector - std::vector ClEventVec = get_native(event); + std::vector ClEventVec = + sycl::get_native(event); // Check that make_event is working properly with vector as a // param sycl::event SyclEvent = diff --git a/sycl/test-e2e/Regression/commandlist/gpu.cpp b/sycl/test-e2e/Regression/commandlist/gpu.cpp index 1fd677f9b5274..a2133a62a1318 100644 --- a/sycl/test-e2e/Regression/commandlist/gpu.cpp +++ b/sycl/test-e2e/Regression/commandlist/gpu.cpp @@ -2,5 +2,5 @@ // UNSUPPORTED: ze_debug -// RUN: %clangxx -fsycl -fsycl-targets=%{sycl_triple} %S/Inputs/FindPrimesSYCL.cpp %S/Inputs/main.cpp -o %t.out -lpthread +// RUN: %clangxx -Wno-error=vla-cxx-extension -fsycl -fsycl-targets=%{sycl_triple} %S/Inputs/FindPrimesSYCL.cpp %S/Inputs/main.cpp -o %t.out -lpthread // RUN: %{run} %t.out diff --git a/sycl/test-e2e/Regression/get_subgroup_sizes.cpp b/sycl/test-e2e/Regression/get_subgroup_sizes.cpp index 38a07ce20ef79..f076d18494244 100644 --- a/sycl/test-e2e/Regression/get_subgroup_sizes.cpp +++ b/sycl/test-e2e/Regression/get_subgroup_sizes.cpp @@ -4,7 +4,7 @@ // UNSUPPORTED: cuda || hip // TODO: Similar issue to FPGAs -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: %{run} %t.out //==-- get_subgroup_sizes.cpp - Test for bug fix in subgroup sizes query --==// diff --git a/sycl/test-e2e/Regression/implicit_atomic_conversion.cpp b/sycl/test-e2e/Regression/implicit_atomic_conversion.cpp index ee89b993eedce..8adfc00d37048 100644 --- a/sycl/test-e2e/Regression/implicit_atomic_conversion.cpp +++ b/sycl/test-e2e/Regression/implicit_atomic_conversion.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: %{run} %t.out #include diff --git a/sycl/test-e2e/Regression/mad_sat.cpp b/sycl/test-e2e/Regression/mad_sat.cpp index d2a7254f2bd60..401a2644d1743 100644 --- a/sycl/test-e2e/Regression/mad_sat.cpp +++ b/sycl/test-e2e/Regression/mad_sat.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=integer-overflow -Wno-error=implicitly-unsigned-literal -o %t.out // RUNx: %{run} %t.out #include diff --git a/sycl/test-e2e/Regression/range-rounding-this-id.cpp b/sycl/test-e2e/Regression/range-rounding-this-id.cpp index b383929867948..f6976687d36ce 100644 --- a/sycl/test-e2e/Regression/range-rounding-this-id.cpp +++ b/sycl/test-e2e/Regression/range-rounding-this-id.cpp @@ -1,6 +1,6 @@ // This test ensures that this_id returns the correct value // even when a kernel is wrapped in a range rounding kernel. -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: env SYCL_PARALLEL_FOR_RANGE_ROUNDING_PARAMS=16:32:0 \ // RUN: SYCL_PARALLEL_FOR_RANGE_ROUNDING_TRACE=1 \ // RUN: %{run} %t.out | FileCheck %s diff --git a/sycl/test-e2e/Scheduler/HostAccDestruction.cpp b/sycl/test-e2e/Scheduler/HostAccDestruction.cpp index 99d93bd85bf52..fb41c8f715e29 100644 --- a/sycl/test-e2e/Scheduler/HostAccDestruction.cpp +++ b/sycl/test-e2e/Scheduler/HostAccDestruction.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-dead-args-optimization -o %t.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-dead-args-optimization -o %t.out // RUN: env SYCL_UR_TRACE=1 %{run} %t.out 2>&1 | FileCheck %s // Windows doesn't yet have full shutdown(). diff --git a/sycl/test-e2e/Scheduler/MemObjRemapping.cpp b/sycl/test-e2e/Scheduler/MemObjRemapping.cpp index 0b681149c2999..54ab8ebd8e1d0 100644 --- a/sycl/test-e2e/Scheduler/MemObjRemapping.cpp +++ b/sycl/test-e2e/Scheduler/MemObjRemapping.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: env SYCL_HOST_UNIFIED_MEMORY=1 SYCL_UR_TRACE=1 %{run} %t.out 2>&1 | FileCheck %s // // XFAIL: hip_nvidia diff --git a/sycl/test-e2e/Scheduler/ReleaseResourcesTest.cpp b/sycl/test-e2e/Scheduler/ReleaseResourcesTest.cpp index ba6b91f5acc1b..c7ca4dde5e5bd 100644 --- a/sycl/test-e2e/Scheduler/ReleaseResourcesTest.cpp +++ b/sycl/test-e2e/Scheduler/ReleaseResourcesTest.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-dead-args-optimization -o %t.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-dead-args-optimization -o %t.out // RUN: env SYCL_UR_TRACE=1 %{run} %t.out 2>&1 | FileCheck %s // // TODO: Reenable on Windows, see https://github.com/intel/llvm/issues/14768 diff --git a/sycl/test-e2e/SeparateCompile/test.cpp b/sycl/test-e2e/SeparateCompile/test.cpp index 5c7c34c204cec..27e165865fd37 100644 --- a/sycl/test-e2e/SeparateCompile/test.cpp +++ b/sycl/test-e2e/SeparateCompile/test.cpp @@ -8,13 +8,13 @@ // >> device compilation... // RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT -fno-sycl-dead-args-optimization -fsycl-device-only -Xclang -fsycl-int-header=sycl_ihdr_a.h %s -c -o a_kernel.bc -Wno-sycl-strict // >> host compilation... -// RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT %cxx_std_optionc++17 %include_option sycl_ihdr_a.h %debug_option -c %s -o a.o %sycl_options -fno-sycl-dead-args-optimization -Wno-sycl-strict +// RUN: %clangxx -Wno-error=ignored-attributes -Wno-error=unused-command-line-argument -DSYCL_DISABLE_FALLBACK_ASSERT %cxx_std_optionc++17 %include_option sycl_ihdr_a.h %debug_option -c %s -o a.o %sycl_options -fno-sycl-dead-args-optimization -Wno-sycl-strict // // >> ---- compile src2 // >> device compilation... -// RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT -DB_CPP=1 -fno-sycl-dead-args-optimization -fsycl-device-only -Xclang -fsycl-int-header=sycl_ihdr_b.h %s -c -o b_kernel.bc -Wno-sycl-strict +// RUN: %clangxx -Wno-error=unused-command-line-argument -DSYCL_DISABLE_FALLBACK_ASSERT -DB_CPP=1 -fno-sycl-dead-args-optimization -fsycl-device-only -Xclang -fsycl-int-header=sycl_ihdr_b.h %s -c -o b_kernel.bc -Wno-sycl-strict // >> host compilation... -// RUN: %clangxx -DSYCL_DISABLE_FALLBACK_ASSERT -DB_CPP=1 %cxx_std_optionc++17 %include_option sycl_ihdr_b.h %debug_option -c %s -o b.o %sycl_options -fno-sycl-dead-args-optimization -Wno-sycl-strict +// RUN: %clangxx -Wno-error=ignored-attributes -Wno-error=unused-command-line-argument -DSYCL_DISABLE_FALLBACK_ASSERT -DB_CPP=1 %cxx_std_optionc++17 %include_option sycl_ihdr_b.h %debug_option -c %s -o b.o %sycl_options -fno-sycl-dead-args-optimization -Wno-sycl-strict // // >> ---- bundle .o with .spv // >> run bundler @@ -48,7 +48,7 @@ // RUN: clang-offload-wrapper -o wrapper.bc -host=x86_64 -kind=sycl -target=spir64 -batch test_spv.table // // >> compile .bc to .o -// RUN: %clangxx -c wrapper.bc -o wrapper.o +// RUN: %clangxx -Wno-error=override-module -c wrapper.bc -o wrapper.o // // >> ---- link the full hetero app // RUN: %clangxx wrapper.o a.o b.o -o app.exe %sycl_options diff --git a/sycl/test-e2e/SpecConstants/2020/handler-api.cpp b/sycl/test-e2e/SpecConstants/2020/handler-api.cpp index ff5e586e35651..e08815ca5d9f5 100644 --- a/sycl/test-e2e/SpecConstants/2020/handler-api.cpp +++ b/sycl/test-e2e/SpecConstants/2020/handler-api.cpp @@ -7,7 +7,7 @@ // - test that specialization constant values can be set within command group // scope and correctly retrieved within a kernel -// RUN: %{build} -o %t.out -fsycl-dead-args-optimization +// RUN: %{build} -Wno-error=unused-command-line-argument -o %t.out -fsycl-dead-args-optimization // RUN: %{run} %t.out // FIXME: ACC devices use emulation path, which is not yet supported diff --git a/sycl/test-e2e/SpecConstants/2020/host_apis.cpp b/sycl/test-e2e/SpecConstants/2020/host_apis.cpp index 09820442bfced..fddc661f3f4d8 100644 --- a/sycl/test-e2e/SpecConstants/2020/host_apis.cpp +++ b/sycl/test-e2e/SpecConstants/2020/host_apis.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -o %t.out -fsycl-dead-args-optimization +// RUN: %{build} -Wno-error=unused-command-line-argument -o %t.out -fsycl-dead-args-optimization // RUN: %{run} %t.out #include diff --git a/sycl/test-e2e/SubGroup/barrier.cpp b/sycl/test-e2e/SubGroup/barrier.cpp index facdbd0c1a456..b346e7f246e41 100644 --- a/sycl/test-e2e/SubGroup/barrier.cpp +++ b/sycl/test-e2e/SubGroup/barrier.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-device-code-split=per_kernel -o %t.out // RUN: %{run} %t.out //==---------- barrier.cpp - SYCL sub_group barrier test -------*- C++ -*---==// diff --git a/sycl/test-e2e/SubGroup/load_store.cpp b/sycl/test-e2e/SubGroup/load_store.cpp index 61014d152fcbe..ceeb40c9ec0aa 100644 --- a/sycl/test-e2e/SubGroup/load_store.cpp +++ b/sycl/test-e2e/SubGroup/load_store.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -fsycl-device-code-split=per_kernel -o %t.out // RUN: %{run} %t.out // // TODO: Flaky reenable, see https://github.com/intel/llvm/issues/14765 diff --git a/sycl/test-e2e/SubGroupMask/GroupSize.cpp b/sycl/test-e2e/SubGroupMask/GroupSize.cpp index 024205f264500..84d13c3ff7603 100644 --- a/sycl/test-e2e/SubGroupMask/GroupSize.cpp +++ b/sycl/test-e2e/SubGroupMask/GroupSize.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out +// RUN: %{build} -Wno-error=incorrect-sub-group-size -fsycl-device-code-split=per_kernel -o %t.out // REQUIRES: gpu diff --git a/sycl/test-e2e/USM/pfor_flatten.cpp b/sycl/test-e2e/USM/pfor_flatten.cpp index b2cc58713f775..0af26abb2b92d 100644 --- a/sycl/test-e2e/USM/pfor_flatten.cpp +++ b/sycl/test-e2e/USM/pfor_flatten.cpp @@ -1,4 +1,4 @@ -// RUN: %{build} -fsycl-dead-args-optimization -o %t1.out +// RUN: %{build} -Wno-error=unused-command-line-argument -fsycl-dead-args-optimization -o %t1.out // RUN: %{run} %t1.out //==--------------- pfor_flatten.cpp - Kernel Launch Flattening test -------==// diff --git a/sycl/test-e2e/USM/usm_leak_check.cpp b/sycl/test-e2e/USM/usm_leak_check.cpp index c4ade6a7619c2..8787512de7b9f 100644 --- a/sycl/test-e2e/USM/usm_leak_check.cpp +++ b/sycl/test-e2e/USM/usm_leak_check.cpp @@ -1,6 +1,6 @@ // REQUIRES: level_zero -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: %{l0_leak_check} %{run} %t.out u 2>&1 | FileCheck %s --implicit-check-not=LEAK // RUN: %{l0_leak_check} %{run} %t.out s 2>&1 | FileCheck %s --implicit-check-not=LEAK diff --git a/sycl/test-e2e/WeakObject/lit.local.cfg b/sycl/test-e2e/WeakObject/lit.local.cfg new file mode 100644 index 0000000000000..3d15db684c3a1 --- /dev/null +++ b/sycl/test-e2e/WeakObject/lit.local.cfg @@ -0,0 +1,7 @@ +# TODO: Remove this once the warnings are resolved +original_clangxx="" +for substitution in config.substitutions: + if substitution[0] == "%clangxx": + original_clangxx=substitution[1] +config.substitutions.insert(0, + ("%clangxx", original_clangxx+" -Wno-error=deprecated-declarations")) diff --git a/sycl/test-e2e/XPTI/buffer/accessors.cpp b/sycl/test-e2e/XPTI/buffer/accessors.cpp index 65f1b62d6b2b5..bbad451a06a15 100644 --- a/sycl/test-e2e/XPTI/buffer/accessors.cpp +++ b/sycl/test-e2e/XPTI/buffer/accessors.cpp @@ -1,6 +1,6 @@ // REQUIRES: xptifw, opencl // RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=deprecated-declarations -o %t.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.out | FileCheck %s #ifdef XPTI_COLLECTOR diff --git a/sycl/test-e2e/XPTI/kernel/content.cpp b/sycl/test-e2e/XPTI/kernel/content.cpp index 548c9f20b322c..0e68788100a2a 100644 --- a/sycl/test-e2e/XPTI/kernel/content.cpp +++ b/sycl/test-e2e/XPTI/kernel/content.cpp @@ -1,8 +1,8 @@ // REQUIRES: xptifw, opencl // RUN: %clangxx %s -DXPTI_COLLECTOR -DXPTI_CALLBACK_API_EXPORTS %xptifw_lib %shared_lib %fPIC %cxx_std_optionc++17 -o %t_collector.dll -// RUN: %{build} -O2 -o %t.opt.out +// RUN: %{build} -Wno-error=deprecated-declarations -O2 -o %t.opt.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.opt.out | FileCheck %s --check-prefix=CHECK-OPT -// RUN: %{build} -fno-sycl-dead-args-optimization -o %t.noopt.out +// RUN: %{build} -Wno-error=deprecated-declarations -fno-sycl-dead-args-optimization -o %t.noopt.out // RUN: env XPTI_TRACE_ENABLE=1 XPTI_FRAMEWORK_DISPATCHER=%xptifw_dispatcher XPTI_SUBSCRIBERS=%t_collector.dll %{run} %t.noopt.out | FileCheck %s --check-prefix=CHECK-NOOPT #ifdef XPTI_COLLECTOR diff --git a/sycl/test-e2e/helpers.hpp b/sycl/test-e2e/helpers.hpp index 71cf891c5fb97..6b7434f4c7a9d 100644 --- a/sycl/test-e2e/helpers.hpp +++ b/sycl/test-e2e/helpers.hpp @@ -35,7 +35,7 @@ class VecPrinter { printHelper(Out, Elem1); } template <> - static void printHelper(std::ostream &Out, const VecT &Elem1) {} + inline void printHelper(std::ostream &Out, const VecT &Elem1) {} VecT MVec; }; diff --git a/sycl/test-e2e/syclcompat/device/device.cpp b/sycl/test-e2e/syclcompat/device/device.cpp index 180db72afc9f8..98ac69fa513e2 100644 --- a/sycl/test-e2e/syclcompat/device/device.cpp +++ b/sycl/test-e2e/syclcompat/device/device.cpp @@ -29,7 +29,7 @@ // //===----------------------------------------------------------------------===// -// RUN: %{build} -o %t.out +// RUN: %{build} -Wno-error=user-defined-warnings -o %t.out // RUN: %{run} %t.out #include diff --git a/sycl/test-e2e/syclcompat/lit.local.cfg b/sycl/test-e2e/syclcompat/lit.local.cfg new file mode 100644 index 0000000000000..621766a7c01f1 --- /dev/null +++ b/sycl/test-e2e/syclcompat/lit.local.cfg @@ -0,0 +1,7 @@ +# TODO: Remove this once the warnings are resolved +original_clangxx="" +for substitution in config.substitutions: + if substitution[0] == "%clangxx": + original_clangxx=substitution[1] +config.substitutions.insert(0, + ("%clangxx", original_clangxx + ' -Wno-error=c++20-extensions -Wno-error=#warnings -Wno-error=deprecated-declarations'))