From 91f196afc6c1208b678822a42530e24326d1905e Mon Sep 17 00:00:00 2001 From: "Klochkov, Denis" Date: Wed, 27 Nov 2024 06:26:22 -0800 Subject: [PATCH 1/7] [SYCL] fix include path flag --- sycl/test-e2e/SeparateCompile/test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sycl/test-e2e/SeparateCompile/test.cpp b/sycl/test-e2e/SeparateCompile/test.cpp index 82306b28b20d7..e33b5762d6e55 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 -o a_kernel.bc -Wno-sycl-strict // >> host compilation... -// RUN: %clangxx -Wno-error=ignored-attributes -isystem %sycl_include -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 +// RUN: %clangxx -Wno-error=ignored-attributes /imsvc %sycl_include -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 -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 -o b_kernel.bc -Wno-sycl-strict // >> host compilation... -// RUN: %clangxx -Wno-error=ignored-attributes -isystem %sycl_include -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 +// RUN: %clangxx -Wno-error=ignored-attributes /imsvc %sycl_include -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 From b97a4722e47ac1361f0fd4ed2d9036ee2da0a0bd Mon Sep 17 00:00:00 2001 From: "Klochkov, Denis" Date: Wed, 27 Nov 2024 06:40:01 -0800 Subject: [PATCH 2/7] [SYCL] check if OS is windows or not --- sycl/test-e2e/SeparateCompile/test.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sycl/test-e2e/SeparateCompile/test.cpp b/sycl/test-e2e/SeparateCompile/test.cpp index e33b5762d6e55..7ba80a6781913 100644 --- a/sycl/test-e2e/SeparateCompile/test.cpp +++ b/sycl/test-e2e/SeparateCompile/test.cpp @@ -8,13 +8,15 @@ // >> 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 -o a_kernel.bc -Wno-sycl-strict // >> host compilation... -// RUN: %clangxx -Wno-error=ignored-attributes /imsvc %sycl_include -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 +// RUN: %if !windows %{ %clangxx -Wno-error=ignored-attributes -isystem %sycl_include -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 %} +// RUN: %if windows %{ %clangxx -Wno-error=ignored-attributes /imsvc %sycl_include -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 -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 -o b_kernel.bc -Wno-sycl-strict // >> host compilation... -// RUN: %clangxx -Wno-error=ignored-attributes /imsvc %sycl_include -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 +// RUN: %if !windows %{ %clangxx -Wno-error=ignored-attributes -isystem %sycl_include -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 %} +// RUN: %if windows %{ %clangxx -Wno-error=ignored-attributes /imsvc %sycl_include -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 From 3a54abc0e1614f1adab83a2ddd5fdcedf6ab9ef6 Mon Sep 17 00:00:00 2001 From: "Klochkov, Denis" Date: Wed, 27 Nov 2024 08:16:20 -0800 Subject: [PATCH 3/7] [SYCL] change substitution instead of compiler flags --- sycl/test-e2e/DeviceLib/separate_compile_test.cpp | 2 +- sycl/test-e2e/SeparateCompile/test.cpp | 6 ++---- sycl/test-e2e/lit.cfg.py | 3 ++- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/sycl/test-e2e/DeviceLib/separate_compile_test.cpp b/sycl/test-e2e/DeviceLib/separate_compile_test.cpp index b0f7b1a2528fc..b2b6b4a8b579f 100644 --- a/sycl/test-e2e/DeviceLib/separate_compile_test.cpp +++ b/sycl/test-e2e/DeviceLib/separate_compile_test.cpp @@ -10,6 +10,6 @@ // 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 -Wno-error=unused-command-line-argument -isystem %sycl_include -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 -Wno-error=unused-command-line-argument %sycl_include -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 -Wno-unused-command-line-argument -o %t_fp64.out %sycl_options %{mathflags} // RUN: %{run} %t.out diff --git a/sycl/test-e2e/SeparateCompile/test.cpp b/sycl/test-e2e/SeparateCompile/test.cpp index 7ba80a6781913..dd2c9b41bfc18 100644 --- a/sycl/test-e2e/SeparateCompile/test.cpp +++ b/sycl/test-e2e/SeparateCompile/test.cpp @@ -8,15 +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 -o a_kernel.bc -Wno-sycl-strict // >> host compilation... -// RUN: %if !windows %{ %clangxx -Wno-error=ignored-attributes -isystem %sycl_include -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 %} -// RUN: %if windows %{ %clangxx -Wno-error=ignored-attributes /imsvc %sycl_include -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 %} +// RUN: %clangxx -Wno-error=ignored-attributes %sycl_include -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 -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 -o b_kernel.bc -Wno-sycl-strict // >> host compilation... -// RUN: %if !windows %{ %clangxx -Wno-error=ignored-attributes -isystem %sycl_include -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 %} -// RUN: %if windows %{ %clangxx -Wno-error=ignored-attributes /imsvc %sycl_include -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 %} +// RUN: %clangxx -Wno-error=ignored-attributes %sycl_include -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 diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index 2ef9ac91ce299..72e6be02cf0d0 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -151,10 +151,11 @@ ("%sycl_static_libs_dir", config.sycl_libs_dir + "/../lib") ) config.substitutions.append(("%obj_ext", ".obj")) + config.substitutions.append(("/imsvc %sycl_include", config.sycl_include)) elif platform.system() == "Linux": config.substitutions.append(("%sycl_static_libs_dir", config.sycl_libs_dir)) config.substitutions.append(("%obj_ext", ".o")) -config.substitutions.append(("%sycl_include", config.sycl_include)) + config.substitutions.append(("-isystem %sycl_include", config.sycl_include)) # Intel GPU FAMILY availability if lit_config.params.get("gpu-intel-gen11", False): From 065af3fdb259a707d1829fb43813d90c22647098 Mon Sep 17 00:00:00 2001 From: "Klochkov, Denis" Date: Thu, 28 Nov 2024 05:28:30 -0800 Subject: [PATCH 4/7] [SYCL][E2E] fix lit config file --- sycl/test-e2e/Basic/windows_version_agnostic_sycl_lib.cpp | 2 +- sycl/test-e2e/lit.cfg.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sycl/test-e2e/Basic/windows_version_agnostic_sycl_lib.cpp b/sycl/test-e2e/Basic/windows_version_agnostic_sycl_lib.cpp index c1f43fa724c34..c9487829314d8 100644 --- a/sycl/test-e2e/Basic/windows_version_agnostic_sycl_lib.cpp +++ b/sycl/test-e2e/Basic/windows_version_agnostic_sycl_lib.cpp @@ -1,7 +1,7 @@ // REQUIRES: windows // REQUIRES: build-and-run-mode -// RUN: %clangxx --driver-mode=cl /std:c++17 /EHsc /imsvc %sycl_include -I%opencl_include_dir %s -o %t.out /link /defaultlib:%sycl_static_libs_dir/sycl.lib +// RUN: %clangxx --driver-mode=cl /std:c++17 /EHsc %sycl_include -I%opencl_include_dir %s -o %t.out /link /defaultlib:%sycl_static_libs_dir/sycl.lib // RUN: %{run} %t.out // This test checks that if program is linked with version-agnostic import library sycl.lib then sycl program works as expected. diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index 72e6be02cf0d0..909c4572fbf93 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -151,11 +151,11 @@ ("%sycl_static_libs_dir", config.sycl_libs_dir + "/../lib") ) config.substitutions.append(("%obj_ext", ".obj")) - config.substitutions.append(("/imsvc %sycl_include", config.sycl_include)) + config.substitutions.append(("%sycl_include", "/imsvc " + config.sycl_include)) elif platform.system() == "Linux": config.substitutions.append(("%sycl_static_libs_dir", config.sycl_libs_dir)) config.substitutions.append(("%obj_ext", ".o")) - config.substitutions.append(("-isystem %sycl_include", config.sycl_include)) + config.substitutions.append(("%sycl_include", "-isystem " + config.sycl_include)) # Intel GPU FAMILY availability if lit_config.params.get("gpu-intel-gen11", False): From 6aa55ea71af3528b737acea5d77b3f09898b04c6 Mon Sep 17 00:00:00 2001 From: "Klochkov, Denis" Date: Thu, 28 Nov 2024 07:43:41 -0800 Subject: [PATCH 5/7] [SYCL][E2E] remove old flags --- sycl/test-e2e/Config/kernel_from_file.cpp | 2 +- .../DeviceLib/separate_compile_test.cpp | 2 +- sycl/test-e2e/lit.cfg.py | 24 +++++++++++-------- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/sycl/test-e2e/Config/kernel_from_file.cpp b/sycl/test-e2e/Config/kernel_from_file.cpp index e4db298b604c7..ad99ff3705556 100644 --- a/sycl/test-e2e/Config/kernel_from_file.cpp +++ b/sycl/test-e2e/Config/kernel_from_file.cpp @@ -14,7 +14,7 @@ // RUN: %if linux %{ llvm-link -o=%t_app.bc %t.bc %t_compiler_wrappers.bc %t_asan.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 -Wno-error=ignored-attributes -isystem %sycl_include -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 %sycl_include -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/DeviceLib/separate_compile_test.cpp b/sycl/test-e2e/DeviceLib/separate_compile_test.cpp index b2b6b4a8b579f..d2264a26ab436 100644 --- a/sycl/test-e2e/DeviceLib/separate_compile_test.cpp +++ b/sycl/test-e2e/DeviceLib/separate_compile_test.cpp @@ -3,7 +3,7 @@ // 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 -Wno-error=unused-command-line-argument -isystem %sycl_include -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 -Wno-error=unused-command-line-argument %sycl_include -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 -Wno-unused-command-line-argument -o %t.out %sycl_options %{mathflags} // RUN: %{run} %t.out diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index 909c4572fbf93..9d10ecb0b3f45 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -146,16 +146,6 @@ llvm_config.with_environment(var, "") config.substitutions.append(("%sycl_libs_dir", config.sycl_libs_dir)) -if platform.system() == "Windows": - config.substitutions.append( - ("%sycl_static_libs_dir", config.sycl_libs_dir + "/../lib") - ) - config.substitutions.append(("%obj_ext", ".obj")) - config.substitutions.append(("%sycl_include", "/imsvc " + config.sycl_include)) -elif platform.system() == "Linux": - config.substitutions.append(("%sycl_static_libs_dir", config.sycl_libs_dir)) - config.substitutions.append(("%obj_ext", ".o")) - config.substitutions.append(("%sycl_include", "-isystem " + config.sycl_include)) # Intel GPU FAMILY availability if lit_config.params.get("gpu-intel-gen11", False): @@ -213,6 +203,20 @@ def open_check_file(file_name): cl_options = True config.available_features.add("cl_options") +if platform.system() == "Windows": + config.substitutions.append( + ("%sycl_static_libs_dir", config.sycl_libs_dir + "/../lib") + ) + config.substitutions.append(("%obj_ext", ".obj")) + if cl_options: + config.substitutions.append(("%sycl_include", "/imsvc " + config.sycl_include)) + else: + config.substitutions.append(("%sycl_include", "-isystem " + config.sycl_include)) +elif platform.system() == "Linux": + config.substitutions.append(("%sycl_static_libs_dir", config.sycl_libs_dir)) + config.substitutions.append(("%obj_ext", ".o")) + config.substitutions.append(("%sycl_include", "-isystem " + config.sycl_include)) + # check if the compiler was built in NDEBUG configuration has_ndebug = False ps = subprocess.Popen( From a8f8e59afbe2c9f309dd298adda50335eaf3e1d3 Mon Sep 17 00:00:00 2001 From: "Klochkov, Denis" Date: Mon, 2 Dec 2024 01:33:01 -0800 Subject: [PATCH 6/7] [SYCL][E2E] pass -isystem to all tests in lit config file --- sycl/test-e2e/lit.cfg.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index 9d10ecb0b3f45..1795c6e79a186 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -208,10 +208,7 @@ def open_check_file(file_name): ("%sycl_static_libs_dir", config.sycl_libs_dir + "/../lib") ) config.substitutions.append(("%obj_ext", ".obj")) - if cl_options: - config.substitutions.append(("%sycl_include", "/imsvc " + config.sycl_include)) - else: - config.substitutions.append(("%sycl_include", "-isystem " + config.sycl_include)) + config.substitutions.append(("%sycl_include", "-Xclang -isystem -Xclang " + config.sycl_include)) elif platform.system() == "Linux": config.substitutions.append(("%sycl_static_libs_dir", config.sycl_libs_dir)) config.substitutions.append(("%obj_ext", ".o")) From eca03b7320c70d657c07826c74181d42beddf5da Mon Sep 17 00:00:00 2001 From: "Klochkov, Denis" Date: Mon, 2 Dec 2024 03:00:26 -0800 Subject: [PATCH 7/7] [SYCL][E2E] fix formatting --- sycl/test-e2e/lit.cfg.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/sycl/test-e2e/lit.cfg.py b/sycl/test-e2e/lit.cfg.py index 1795c6e79a186..0af75958e5914 100644 --- a/sycl/test-e2e/lit.cfg.py +++ b/sycl/test-e2e/lit.cfg.py @@ -146,6 +146,18 @@ llvm_config.with_environment(var, "") config.substitutions.append(("%sycl_libs_dir", config.sycl_libs_dir)) +if platform.system() == "Windows": + config.substitutions.append( + ("%sycl_static_libs_dir", config.sycl_libs_dir + "/../lib") + ) + config.substitutions.append(("%obj_ext", ".obj")) + config.substitutions.append( + ("%sycl_include", "-Xclang -isystem -Xclang " + config.sycl_include) + ) +elif platform.system() == "Linux": + config.substitutions.append(("%sycl_static_libs_dir", config.sycl_libs_dir)) + config.substitutions.append(("%obj_ext", ".o")) + config.substitutions.append(("%sycl_include", "-isystem " + config.sycl_include)) # Intel GPU FAMILY availability if lit_config.params.get("gpu-intel-gen11", False): @@ -203,17 +215,6 @@ def open_check_file(file_name): cl_options = True config.available_features.add("cl_options") -if platform.system() == "Windows": - config.substitutions.append( - ("%sycl_static_libs_dir", config.sycl_libs_dir + "/../lib") - ) - config.substitutions.append(("%obj_ext", ".obj")) - config.substitutions.append(("%sycl_include", "-Xclang -isystem -Xclang " + config.sycl_include)) -elif platform.system() == "Linux": - config.substitutions.append(("%sycl_static_libs_dir", config.sycl_libs_dir)) - config.substitutions.append(("%obj_ext", ".o")) - config.substitutions.append(("%sycl_include", "-isystem " + config.sycl_include)) - # check if the compiler was built in NDEBUG configuration has_ndebug = False ps = subprocess.Popen(