From 4515a4835529ab47e525bbf183d94ece2ce83664 Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Mon, 26 May 2025 20:33:06 +0000 Subject: [PATCH] rocr: Update async-scratch reclaim API doc [ROCm/ROCR-Runtime commit: c3978d03a4f3d526d4055d5c0b7a37c50c13a04c] --- projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h b/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h index 5dbbbaf788..30412be1f8 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h +++ b/projects/rocr-runtime/runtime/hsa-runtime/inc/hsa_ext_amd.h @@ -3526,6 +3526,10 @@ hsa_status_t hsa_amd_vmem_get_alloc_properties_from_handle( * of additional scratch memory. Decreasing this threshold will result in a release in scratch memory * on queues where the current amount of allocated scratch exceeds the new limit. * + * If this API call would result in a release in scratch memory and there are dispatches that are + * currently using scratch memory on this agent, this will result into a blocking call until the + * current dispatches are completed. + * * This API is only supported on devices that support asynchronous scratch reclaim. * * @param[in] agent A valid agent.