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]
Este cometimento está contido em:
Alex Xu criou e Alex Xu cometeu 2024-10-16 18:44:35 -04:00
1 ascendente 733d918cdc
cometimento 3aa1aefe3d
1 ficheiro modificado
+4
+4
Ver ficheiro
@@ -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__``