intel / intel/llvm

[SYCL] Use consistent `DeviceType` across different environment variables

Open
#15,793 0 comments 0 reactions 0 assignees View on GitHub
confirmed enhancement
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

### Is your feature request related to a problem? Please describe

For ONEAPI_DEVICE_SELECTOR, `DeviceType` is `cpu, gpu, fpga`
For SYCL_DEVICE_ALLOWLIST, `DeviceType` is `cpu, gpu, acc, fpga`
For SYCL_REDUCTION_PREFERRED_WORKGROUP_SIZE, `DeviceType` is `cpu, gpu, acc`.

There's inconsistency in the `DeviceType` value accepted by different environment variables.

### Describe the solution you would like

Ideally, we should reconcile the discrepancy in `DeviceType` and use a consistent terminology for all the environment variables.

### Describe alternatives you have considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.