Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fig_6_9_queries, need better documentation of get_info possible return types #23

Open
jnorwood opened this issue Jul 31, 2021 · 0 comments

Comments

@jnorwood
Copy link

jnorwood commented Jul 31, 2021

The get_info return types are documented in a sycl manual
// device info of type described in Table 4.20 of SYCL Spec
and are in a device_traits.def file
// types are in /opt/intel/oneapi/compiler/2021.3.0/linux/include/sycl/CL/sycl/info/device_traits.def
The types aren't easy to find in the debugger source browsing and aren't easy to obtain by any type of introspection that I could find.
I ended up just doing assign to auto variables and then running a linux demangle utility, __cxa_demangle, on the typeid(var).name(), and printing out return types. I don't believe MSVC has this particular demangle utility available.
__cxa_demangle doc
fig_6_9_queries_return_types.zip

Several of the get_info calls can throw exceptions.
fig_6_9_queries_return_types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant