Skip to content

Commit 86abfd4

Browse files
authored
Merge pull request #986 from hdelan/discourage-using-sycl-tc-to-generate-kernels
[UR] Discourage using SYCL tc to generate kernels
2 parents 96797f9 + 0602ce8 commit 86abfd4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

scripts/core/CUDA.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ CUDA device images can be generated by a CUDA-capable compiler toolchain. Most
2121
CUDA compiler toolchains are capable of generating PTX, SASS and/or bundles of
2222
PTX and SASS.
2323

24+
When generating device code to be launched using Unified Runtime, it is
25+
recommended to use a programming model with explicit kernel parameters, such as
26+
OpenCL or CUDA. This is because kernels generated by a programming model with
27+
implicit kernel parameters, such as SYCL, cannot guarantee any specific number
28+
or ordering of kernel parameters. It has been observed that kernel signatures
29+
for the same SYCL kernel may vary significantly when compiled for different
30+
architectures.
31+
2432
PTX
2533
---
2634

scripts/core/HIP.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@ HIPCC can generate device code for a particular arch using the ``--genco`` flag
2727
2828
$ hipcc --genco hello.cu --amdgpu-target=gfx906 -o hello.hsaco
2929
30+
When generating device code to be launched using Unified Runtime, it is
31+
recommended to use a programming model with explicit kernel parameters, such as
32+
OpenCL or HIP. This is because kernels generated by a programming model with
33+
implicit kernel parameters, such as SYCL, cannot guarantee any specific number
34+
or ordering of kernel parameters. It has been observed that kernel signatures
35+
for the same SYCL kernel may vary significantly when compiled for different
36+
architectures.
37+
3038
UR Programs
3139
===========
3240

0 commit comments

Comments
 (0)