|
198 | 198 | if 'host' in config.target_devices.split(','):
|
199 | 199 | found_at_least_one_device = True
|
200 | 200 | lit_config.note("Test HOST device")
|
201 |
| - host_run_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:host ".format(SYCL_PLUGIN=config.sycl_be) |
| 201 | + host_run_substitute = "env SYCL_DEVICE_FILTER=host " |
202 | 202 | host_check_substitute = "| FileCheck %s"
|
203 | 203 | config.available_features.add('host')
|
204 | 204 | if platform.system() == "Linux":
|
205 |
| - host_run_on_linux_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:host ".format(SYCL_PLUGIN=config.sycl_be) |
| 205 | + host_run_on_linux_substitute = "env SYCL_DEVICE_FILTER=host " |
206 | 206 | host_check_on_linux_substitute = "| FileCheck %s"
|
207 | 207 | else:
|
208 | 208 | lit_config.warning("HOST device not used")
|
|
220 | 220 | if 'cpu' in config.target_devices.split(','):
|
221 | 221 | found_at_least_one_device = True
|
222 | 222 | lit_config.note("Test CPU device")
|
223 |
| - cpu_run_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:cpu ".format(SYCL_PLUGIN=config.sycl_be) |
| 223 | + cpu_run_substitute = "env SYCL_DEVICE_FILTER=cpu,host " |
224 | 224 | cpu_check_substitute = "| FileCheck %s"
|
225 | 225 | config.available_features.add('cpu')
|
226 | 226 | if platform.system() == "Linux":
|
227 |
| - cpu_run_on_linux_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:cpu ".format(SYCL_PLUGIN=config.sycl_be) |
| 227 | + cpu_run_on_linux_substitute = "env SYCL_DEVICE_FILTER=cpu,host " |
228 | 228 | cpu_check_on_linux_substitute = "| FileCheck %s"
|
229 | 229 | else:
|
230 | 230 | lit_config.warning("CPU device not used")
|
|
244 | 244 | if 'gpu' in config.target_devices.split(','):
|
245 | 245 | found_at_least_one_device = True
|
246 | 246 | lit_config.note("Test GPU device")
|
247 |
| - gpu_run_substitute = " env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:gpu ".format(SYCL_PLUGIN=config.sycl_be) |
| 247 | + gpu_run_substitute = " env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:gpu,host ".format(SYCL_PLUGIN=config.sycl_be) |
248 | 248 | gpu_check_substitute = "| FileCheck %s"
|
249 | 249 | config.available_features.add('gpu')
|
250 | 250 |
|
251 | 251 | if config.sycl_be == "level_zero":
|
252 | 252 | gpu_l0_check_substitute = "| FileCheck %s"
|
253 | 253 |
|
254 | 254 | if platform.system() == "Linux":
|
255 |
| - gpu_run_on_linux_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:gpu ".format(SYCL_PLUGIN=config.sycl_be) |
| 255 | + gpu_run_on_linux_substitute = "env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:gpu,host ".format(SYCL_PLUGIN=config.sycl_be) |
256 | 256 | gpu_check_on_linux_substitute = "| FileCheck %s"
|
257 | 257 |
|
258 | 258 | else:
|
|
269 | 269 | if 'acc' in config.target_devices.split(','):
|
270 | 270 | found_at_least_one_device = True
|
271 | 271 | lit_config.note("Tests accelerator device")
|
272 |
| - acc_run_substitute = " env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:acc ".format(SYCL_PLUGIN=config.sycl_be) |
| 272 | + acc_run_substitute = " env SYCL_DEVICE_FILTER=acc " |
273 | 273 | acc_check_substitute = "| FileCheck %s"
|
274 | 274 | config.available_features.add('accelerator')
|
275 | 275 | else:
|
|
0 commit comments