Skip to content
#

sycl

Here are 42 public repositories matching this topic...

kbobrovs
kbobrovs commented Jun 3, 2020

If it is needed to pass the same option from driver to both host and device compilers, then it must be added two-times - see clang/lib/Driver/ToolChains/Clang.cpp, for example:
4124:CmdArgs.push_back("-fsycl");
...
6150:CmdArgs.push_back("-fsycl");

This is quite error prone and inconvenient - should be automated: option placed in one place, driver does the duplication itself.

oleksandr-pavlyk
oleksandr-pavlyk commented Oct 19, 2020

ctx.get_sycl_devices() should give a list of SyclDevice objects associated with this context.

This is Python equivalent to cl::sycl::context::get_divices(). See table 4.14 in the provisional 2020 standard, here is an excerpt:

std::vector<device> get_devices() const | Returns a std::vector containing all SYCLdevices that are associated with this SYCLcontext. The value returned must beeq

Improve this page

Add a description, image, and links to the sycl topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the sycl topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.