intel / intel/llvm

[SYCL] Add capability for sycl-ls to print out all device information/descriptors

Open
#9,104 1 comment 2 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**
I want to be able to check e.g. the `max_work_group_size` of all available SYCL devices on my system without having to create my own mini-program just to print the output of `sycl::device::get_info()` (for a suitable `device`).

**Describe the solution you would like**
It would be great if a flag could be passed to `sycl-ls` such that [all `sycl::info::device::*` descriptors](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#_device_information_descriptors) are printed for all detected SYCL devices on my system. This is already available with OpenSYCL using the `opensycl-info` command (see [source here](https://github.com/OpenSYCL/OpenSYCL/blob/develop/src/tools/opensycl-info/opensycl-info.cpp)).

**Describe alternatives you have considered**
I could write my own program to do this but I think this is a feature which should ship with the Intel DPC++ compiler.

**Additional context**
For OpenCL, there is a `clinfo` command often available (source [here](https://github.com/Oblomov/clinfo)). I'm not sure if a SYCL implementation-independent code is possible...

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.