@@ -231,8 +231,6 @@ def runConfig(config):
231
231
elif (compiler .startswith ("dpcpp" )):
232
232
233
233
if os .environ ["DPCPP_ROOT" ] and os .environ ["GFX_DRIVER_ROOT" ] :
234
- DPCPP_VERSION = os .environ ["DPCPP_VERSION" ]
235
- GFX_VERSION = os .environ ["GFX_DRIVER_VERSION" ]
236
234
dpcpp_dir = os .environ ["DPCPP_ROOT" ]
237
235
gfx_dir = os .environ ["GFX_DRIVER_ROOT" ]
238
236
else :
@@ -273,17 +271,13 @@ def runConfig(config):
273
271
conf .append ("-D CMAKE_CXX_COMPILER=icpx -D CMAKE_C_COMPILER=icx" )
274
272
if enable_sycl_support :
275
273
if os .environ ["GFX_DRIVER_ROOT" ] :
276
- GFX_VERSION = os .environ ["GFX_DRIVER_VERSION" ]
277
- gfx_dir = os .environ ["GFX_DRIVER_ROOT" ]
274
+ gfx_dir = os .environ ["GFX_DRIVER_ROOT" ] + "/install"
278
275
else :
279
276
print ("Error GFX_DRIVER_ROOT is not set" )
280
277
sys .exit (1 )
281
278
282
279
# set up backend
283
280
env .append ("export SYCL_DEVICE_FILTER=level_zero" )
284
-
285
- gfx_dir = "" + NAS + "/gfx-driver-linux/" + GFX_VERSION + "/install"
286
-
287
281
sys .stderr .write ("gfx_dir = " + gfx_dir + "\n " )
288
282
289
283
env .append ("export PATH=" + gfx_dir + "/usr/bin:" + gfx_dir + "/usr/local/bin:$PATH" )
@@ -302,10 +296,8 @@ def runConfig(config):
302
296
elif (compiler .startswith ("dpcpp" )):
303
297
304
298
if os .environ ["DPCPP_ROOT" ] and os .environ ["GFX_DRIVER_ROOT" ] :
305
- DPCPP_VERSION = os .environ ["DPCPP_VERSION" ]
306
- GFX_VERSION = os .environ ["GFX_DRIVER_VERSION" ]
307
299
dpcpp_dir = os .environ ["DPCPP_ROOT" ]
308
- gfx_dir = os .environ ["GFX_DRIVER_ROOT" ]+ "/install"
300
+ gfx_dir = os .environ ["GFX_DRIVER_ROOT" ] + "/install"
309
301
else :
310
302
print ("Error DPCPP_ROOT or GFX_DRIVER_ROOT is not set" )
311
303
sys .exit (1 )
@@ -552,12 +544,10 @@ def runConfig(config):
552
544
if OS == "linux" and compiler .startswith ("dpcpp" ):
553
545
# some additional debug output of gfx and dpcpp version
554
546
which_clang = str (subprocess .check_output (escape (" && " .join (env )) + " && which clang++" , shell = True , stderr = subprocess .PIPE ).decode ('utf-8' ).rstrip ("\n " ))
555
- print ("DEBUG - DPCPP version:" , DPCPP_VERSION , " - which clang++: " , which_clang )
556
- assert which_clang == NAS + "/dpcpp-compiler-linux/" + DPCPP_VERSION + "/bin/clang++"
547
+ print ("DEBUG - DPCPP version:" , dpcpp_dir , " - which clang++: " , which_clang )
557
548
558
549
which_ocloc = str (subprocess .check_output (escape (" && " .join (env )) + " && which ocloc" , shell = True , stderr = subprocess .PIPE ).decode ('utf-8' ).rstrip ("\n " ))
559
- print ("DEBUG - GFX version:" , GFX_VERSION , " - which ocloc: " , which_ocloc )
560
- assert which_ocloc == NAS + "/gfx-driver-linux/" + GFX_VERSION + "/install/usr/bin/ocloc" or which_ocloc == NAS + "/gfx-driver-linux/" + GFX_VERSION + "/install/usr/local/bin/ocloc"
550
+ print ("DEBUG - GFX version:" , gfx_dir , " - which ocloc: " , which_ocloc )
561
551
562
552
if rtcore :
563
553
conf .append ("-D EMBREE_CONFIG=" + ("," .join (rtcore )))
0 commit comments