File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change
1
+ // DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
1
2
// UNSUPPORTED: gpu
2
- // RUN: %clangxx -fsycl -fsycl-link %S/std_complex_math_test.cpp -o %t_device.o
3
- // RUN: %clangxx -fsycl-device-only -Xclang -fsycl-int-header=std_complex_math_test_ihdr.h %S/std_complex_math_test.cpp -Wno-sycl-strict
3
+ // RUN: %clangxx -fsycl -fsycl-link %S/std_complex_math_test.cpp -o %t_device.o %{mathflags}
4
+ // 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}
4
5
// >> host compilation...
5
- // 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
6
- // RUN: %clangxx %t_host.o %t_device.o -o %t.out %sycl_options
6
+ // 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}
7
+ // RUN: %clangxx %t_host.o %t_device.o -o %t.out %sycl_options %{mathflags}
7
8
// RUN: %{run} %t.out
8
9
9
- // RUN: %clangxx -fsycl -fsycl-link %S/std_complex_math_fp64_test.cpp -o %t_fp64_device.o
10
- // 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
10
+ // RUN: %clangxx -fsycl -fsycl-link %S/std_complex_math_fp64_test.cpp -o %t_fp64_device.o %{mathflags}
11
+ // 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}
11
12
// >> host compilation...
12
- // 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
13
- // RUN: %clangxx %t_fp64_host.o %t_fp64_device.o -o %t_fp64.out %sycl_options
13
+ // 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}
14
+ // RUN: %clangxx %t_fp64_host.o %t_fp64_device.o -o %t_fp64.out %sycl_options %{mathflags}
14
15
// RUN: %{run} %t.out
Original file line number Diff line number Diff line change
1
+ // DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
1
2
// UNSUPPORTED: gpu
2
- // RUN: %{build} -o %t.out
3
+ // RUN: %{build} %{mathflags} -o %t.out
3
4
// RUN: %{run} %t.out
4
5
5
- // RUN: %{build} -fsycl-device-lib-jit-link -o %t.out
6
+ // RUN: %{build} -fsycl-device-lib-jit-link %{mathflags} -o %t.out
6
7
// RUN: %{run} %t.out
7
8
8
9
#include < array>
Original file line number Diff line number Diff line change 196
196
config .substitutions .append ( ('%opencl_include_dir' , config .opencl_include_dir ) )
197
197
198
198
if cl_options :
199
- config .substitutions .append ( ('%sycl_options' , ' ' + config .sycl_libs_dir + '/../lib/sycl7.lib /I' +
199
+ config .substitutions .append ( ('%sycl_options' , ' ' + os . path . normpath ( os . path . join ( config .sycl_libs_dir + '/../lib/sycl7.lib' )) + ' /I' +
200
200
config .sycl_include + ' /I' + os .path .join (config .sycl_include , 'sycl' )) )
201
201
config .substitutions .append ( ('%include_option' , '/FI' ) )
202
202
config .substitutions .append ( ('%debug_option' , '/DEBUG' ) )
You can’t perform that action at this time.
0 commit comments