[SYCL] Add __SYCL_INLINE attribute to cl namespace in library sources#986
[SYCL] Add __SYCL_INLINE attribute to cl namespace in library sources#986bader merged 3 commits intointel:syclfrom
Conversation
This change aligns class/functions definitions with the declarations in the headers. Signed-off-by: Alexey Bader <alexey.bader@intel.com>
Signed-off-by: Alexey Bader <alexey.bader@intel.com> Co-authored-by: Vlad Romoanov <vlad.romanov@intel.com>
Signed-off-by: Alexey Bader <alexey.bader@intel.com>
74367b6 to
ac04b52
Compare
|
This doesn't work if the user sets |
According to my understanding it works. We need to align declarations with definitions at library compilation time to avoid compiler warnings, which are treated as errors. When compiled, these symbols use exposed as fully qualified to the linker, which do not have |
No concerns left. I didn't realize that the mangled name is identical between inline and non-inline namespace. Given that this happens to be the case, it should be fine. |
This change aligns class/functions definitions with the declarations in the headers.