File tree Expand file tree Collapse file tree 2 files changed +2
-27
lines changed Expand file tree Collapse file tree 2 files changed +2
-27
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 282
282
else :
283
283
arch_flag = ""
284
284
285
- # Add an extra include directory which points to a fake sycl/sycl.hpp (which just points to CL/sycl.hpp)
286
- # location to workaround compiler versions which do not provide this header
287
- check_sycl_hpp_file = 'sycl_hpp_include.cpp'
288
- with open (check_sycl_hpp_file , 'w' ) as fp :
289
- fp .write ('#include <sycl/sycl.hpp>\n ' )
290
- fp .write ('int main() {}' )
291
-
292
- extra_sycl_include = ""
293
- sycl_hpp_available = subprocess .getstatusoutput (config .dpcpp_compiler + ' -fsycl ' + check_sycl_hpp_file + ' ' + ("/c" if cl_options else "-c" ))
294
- if sycl_hpp_available [0 ] != 0 :
295
- lit_config .note ('Simple include of sycl/sycl.hpp failed with output: ' + sycl_hpp_available [1 ] +
296
- '\n Using fake sycl/sycl.hpp (which just points to CL/sycl.hpp)' )
297
- extra_sycl_include = " " + ("/I" if cl_options else "-I" ) + config .extra_include
298
-
299
285
if lit_config .params .get ('compatibility_testing' , False ):
300
286
config .substitutions .append ( ('%clangxx' , ' true ' ) )
301
287
config .substitutions .append ( ('%clang' , ' true ' ) )
302
288
else :
303
- config .substitutions .append ( ('%clangxx' , ' ' + config .dpcpp_compiler + ' ' + config .cxx_flags + ' ' + arch_flag + extra_sycl_include ) )
304
- config .substitutions .append ( ('%clang' , ' ' + config .dpcpp_compiler + ' ' + config .c_flags + extra_sycl_include ) )
289
+ config .substitutions .append ( ('%clangxx' , ' ' + config .dpcpp_compiler + ' ' + config .cxx_flags + ' ' + arch_flag ) )
290
+ config .substitutions .append ( ('%clang' , ' ' + config .dpcpp_compiler + ' ' + config .c_flags ) )
305
291
306
292
config .substitutions .append ( ('%threads_lib' , config .sycl_threads_lib ) )
307
293
You can’t perform that action at this time.
0 commit comments