codeplaysoftware / standards-proposals

Repository for publicly sharing proposals in various standards groups
Apache License 2.0
27 stars 17 forks source link

Global device symbol management proposal. #132

Open Naghasan opened 4 years ago

Naghasan commented 4 years ago

Some devices can manage global values to push and pull different values. In the CUDA runtime, this is covered by cudaMemcpyToSymbol/cudaMemcpyFromSymbol functions. But other APIs may offer similar functionalities.

This proposal add the possibilities to manage such global values via a new class and new sycl::handler member functions.

The proposal is still a bit incomplete as regular C++ global variable can potentially be handled by the sycl::handler extension without requiring the new 'sycl::symbol' class. but limitation have yet to be explored.