|
312 | 312 | if platform.system() == "Linux":
|
313 | 313 | cpu_run_on_linux_substitute = cpu_run_substitute
|
314 | 314 | cpu_check_on_linux_substitute = "| FileCheck %s"
|
| 315 | + |
| 316 | + if config.run_launcher: |
| 317 | + cpu_run_substitute += " {}".format(config.run_launcher) |
315 | 318 | else:
|
316 | 319 | lit_config.warning("CPU device not used")
|
317 | 320 |
|
|
353 | 356 | if config.sycl_be == "ext_oneapi_cuda":
|
354 | 357 | gpu_run_substitute += "SYCL_PI_CUDA_ENABLE_IMAGE_SUPPORT=1 "
|
355 | 358 |
|
| 359 | + if config.run_launcher: |
| 360 | + gpu_run_substitute += " {}".format(config.run_launcher) |
356 | 361 | else:
|
357 | 362 | lit_config.warning("GPU device not used")
|
358 | 363 |
|
|
370 | 375 | acc_run_substitute = " env ONEAPI_DEVICE_SELECTOR='*:acc' "
|
371 | 376 | acc_check_substitute = "| FileCheck %s"
|
372 | 377 | config.available_features.add('accelerator')
|
| 378 | + |
| 379 | + if config.run_launcher: |
| 380 | + acc_run_substitute += " {}".format(config.run_launcher) |
373 | 381 | else:
|
374 | 382 | lit_config.warning("Accelerator device not used")
|
375 | 383 | config.substitutions.append( ('%ACC_RUN_PLACEHOLDER', acc_run_substitute) )
|
376 | 384 | config.substitutions.append( ('%ACC_CHECK_PLACEHOLDER', acc_check_substitute) )
|
377 | 385 |
|
| 386 | +if config.run_launcher: |
| 387 | + config.substitutions.append(('%e2e_tests_root', config.test_source_root)) |
| 388 | + config.recursiveExpansionLimit = 10 |
| 389 | + |
378 | 390 | if config.sycl_be == 'ext_oneapi_cuda' or (config.sycl_be == 'ext_oneapi_hip' and config.hip_platform == 'NVIDIA'):
|
379 | 391 | config.substitutions.append( ('%sycl_triple', "nvptx64-nvidia-cuda" ) )
|
380 | 392 | elif config.sycl_be == 'ext_oneapi_hip' and config.hip_platform == 'AMD':
|
|
0 commit comments