Skip to content

Commit 2c85e99

Browse files
[SYCL] Update test scripts and sycl-ls to use 'fpga' with ONEAPI_DEVICE_SELECTOR (#12596)
As per the ONEAPI_DEVICE_SELECTOR [documentation](https://github.com/intel/llvm/blob/sycl/sycl/doc/EnvironmentVariables.md#oneapi_device_selector), the device type can only be cpu, gpu, or fpga (or any combination of those). Currently, 'acc' is also accepted by ONEAPI_DEVICE_SELECTOR as a valid device type, which is incorrect. This PR modifies lit.cfg.py and sycl-ls to use 'fpga' instead of 'acc' in ONEAPI_DEVICE_SELECTOR.
1 parent 2f253a9 commit 2c85e99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sycl/test-e2e/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@
427427
config.sycl_devices = [x.replace("ext_oneapi_", "") for x in config.sycl_devices]
428428

429429
available_devices = {
430-
"opencl": ("cpu", "gpu", "acc"),
430+
"opencl": ("cpu", "gpu", "fpga"),
431431
"cuda": "gpu",
432432
"level_zero": "gpu",
433433
"hip": "gpu",

sycl/tools/sycl-ls/sycl-ls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ std::string getDeviceTypeName(const device &Device) {
4949
case info::device_type::host:
5050
return "host";
5151
case info::device_type::accelerator:
52-
return "acc";
52+
return "fpga";
5353
default:
5454
return "unknown";
5555
}

0 commit comments

Comments
 (0)