We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1504a07 commit e0de9afCopy full SHA for e0de9af
SYCL/lit.cfg.py
@@ -101,6 +101,14 @@
101
cl_options=True
102
config.available_features.add('cl_options')
103
104
+check_l0_file='l0_include.cpp'
105
+with open(check_l0_file, 'w') as fp:
106
+ fp.write("#include<level_zero/ze_api.h>")
107
+
108
+sp = subprocess.getstatusoutput(config.dpcpp_compiler+' -fsycl -c '+check_l0_file)
109
+if sp[0] == 0:
110
+ config.available_features.add('level_zero_headers')
111
112
if config.opencl_libs_dir:
113
if cl_options:
114
config.substitutions.append( ('%opencl_lib', ' '+config.opencl_libs_dir+'/OpenCL.lib') )
0 commit comments