From 7a8fb46797d6697b4e414a8717bf913e5e963da3 Mon Sep 17 00:00:00 2001 From: randyh62 <42045079+randyh62@users.noreply.github.com> Date: Fri, 22 Aug 2025 14:28:42 -0700 Subject: [PATCH] Update env_variables.rst Add note regarding changing HSA_SCRATCH_SINGLE_LIMIT. --- runtime/docs/data/env_variables.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtime/docs/data/env_variables.rst b/runtime/docs/data/env_variables.rst index 4ae0c3e9a..ffabec72f 100644 --- a/runtime/docs/data/env_variables.rst +++ b/runtime/docs/data/env_variables.rst @@ -27,6 +27,8 @@ * - | ``HSA_SCRATCH_SINGLE_LIMIT`` | Specifies the threshold for the amount of scratch memory allocated and reclaimed in kernel dispatches. | Enabling ``HSA_NO_SCRATCH_RECLAIM`` circumvents ``HSA_SCRATCH_SINGLE_LIMIT``, and treats ``HSA_SCRATCH_SINGLE_LIMIT`` as the maximum value. + | + | **NOTE:** In the 7.0 release the developer can use the HIP enumerator ``hipExtLimitScratchCurrent`` to programmatically change the default scratch memory allocation size. For more information, see `Global enums and defines `_. - ``146800640`` - 0 to 4GB per XCC