This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
- // REQUIRES: level_zero
1
+ // REQUIRES: level_zero || cuda
2
2
3
3
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t2.out
4
- // RUN: env SYCL_PI_TRACE=2 ZE_DEBUG=1 %GPU_RUN_PLACEHOLDER %t2.out 2>&1 %GPU_CHECK_PLACEHOLDER
4
+ // RUN: env SYCL_PI_TRACE=2 ZE_DEBUG=1 %GPU_RUN_PLACEHOLDER %t2.out 2>&1 %GPU_L0_CHECK_PLACEHOLDER
5
5
// RUN: %HOST_RUN_PLACEHOLDER %t2.out
6
6
// RUN: %CPU_RUN_PLACEHOLDER %t2.out
7
7
// RUN: %GPU_RUN_PLACEHOLDER %t2.out
Original file line number Diff line number Diff line change 214
214
gpu_run_substitute = "true"
215
215
gpu_run_on_linux_substitute = "true "
216
216
gpu_check_substitute = ""
217
+ gpu_l0_check_substitute = ""
217
218
gpu_check_on_linux_substitute = ""
218
219
219
220
if 'gpu' in config .target_devices .split (',' ):
223
224
gpu_check_substitute = "| FileCheck %s"
224
225
config .available_features .add ('gpu' )
225
226
227
+ if config .sycl_be == "level_zero" :
228
+ gpu_l0_check_substitute = "| FileCheck %s"
229
+
226
230
if platform .system () == "Linux" :
227
231
gpu_run_on_linux_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:gpu " .format (SYCL_PLUGIN = config .sycl_be )
228
232
gpu_check_on_linux_substitute = "| FileCheck %s"
233
237
config .substitutions .append ( ('%GPU_RUN_PLACEHOLDER' , gpu_run_substitute ) )
234
238
config .substitutions .append ( ('%GPU_RUN_ON_LINUX_PLACEHOLDER' , gpu_run_on_linux_substitute ) )
235
239
config .substitutions .append ( ('%GPU_CHECK_PLACEHOLDER' , gpu_check_substitute ) )
240
+ config .substitutions .append ( ('%GPU_L0_CHECK_PLACEHOLDER' , gpu_l0_check_substitute ) )
236
241
config .substitutions .append ( ('%GPU_CHECK_ON_LINUX_PLACEHOLDER' , gpu_check_on_linux_substitute ) )
237
242
238
243
acc_run_substitute = "true"
You can’t perform that action at this time.
0 commit comments