Skip to content

Commit 07df60f

Browse files
v-klochkovvladimirlaz
authored andcommitted
[SYCL] Propagate the env var OCL_ICD_FILENAMES to SYCL-LIT test scripts
Setting the environment variable OCL_ICD_FILENAMES tells to OCL ICD Loader what runtime must be loaded first. For example: export OCL_ICD_FILENAMES=<path_to_rt>/intelocl64.dll Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 4b2eddb commit 07df60f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/test/lit.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ else:
5151
else:
5252
config.environment['PATH'] = config.llvm_build_bins_dir
5353

54+
# propagate the environment variable OCL_ICD_FILANEMES to use proper runtime.
55+
if 'OCL_ICD_FILENAMES' in os.environ:
56+
config.environment['OCL_ICD_FILENAMES'] = os.environ['OCL_ICD_FILENAMES']
57+
5458
config.substitutions.append( ('%clang_cc1', ' ' + config.clang + ' -cc1 ') )
5559
config.substitutions.append( ('%clangxx', ' ' + config.clangxx + ' -I'+config.opencl_include ) )
5660
config.substitutions.append( ('%clang', ' ' + config.clang + ' -I'+config.opencl_include ) )

0 commit comments

Comments
 (0)