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]
Tá an tiomantas seo le fáil i:
Alex Xu
2024-10-08 10:22:33 -04:00
tiomanta ag Alex Xu
tuismitheoir 733d918cdc
tiomantas 3aa1aefe3d
+4
Féach ar an gComhad
@@ -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__``