From fd5ad25615e01b862b0115ffebd429cd93469481 Mon Sep 17 00:00:00 2001 From: randyh62 <42045079+randyh62@users.noreply.github.com> Date: Sun, 19 Oct 2025 17:38:06 -0700 Subject: [PATCH] Add note for setting the HSA_SCRATCH_SINGLE_LIMIT (#1391) --- projects/rocr-runtime/runtime/docs/data/env_variables.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/rocr-runtime/runtime/docs/data/env_variables.rst b/projects/rocr-runtime/runtime/docs/data/env_variables.rst index 4ae0c3e9a4..ffabec72f8 100644 --- a/projects/rocr-runtime/runtime/docs/data/env_variables.rst +++ b/projects/rocr-runtime/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