SWDEV-489441 - Add a note to __constant__ docs
We observed community user attempting to add __constant__ to template, which is considered as bad practice. Adding a note to address it.
Change-Id: I8aaede26e4e29bf450374e74ef79c033d4f1432b
[ROCm/hip commit: c5e11fcac8]
Этот коммит содержится в:
@@ -174,6 +174,10 @@ while the kernel is running. The functions for accessing constant memory are:
|
||||
* ``hipMemcpyFromSymbol()``
|
||||
* ``hipMemcpyFromSymbolAsync()``
|
||||
|
||||
.. note::
|
||||
|
||||
Add ``__constant__`` to a template can lead to undefined behavior. Refer to `HIP Issue #3201 <https://github.com/ROCm/HIP/issues/3201>`_ for details.
|
||||
|
||||
.. _shared-variable-type:
|
||||
|
||||
``__shared__``
|
||||
|
||||
Ссылка в новой задаче
Block a user