From e23796552efd657576558f6f3b1bc8b2c6629f8f Mon Sep 17 00:00:00 2001 From: Julia Jiang Date: Fri, 3 Nov 2023 14:35:22 -0400 Subject: [PATCH] SWDEV-415343 - Update hipLimit Change-Id: I88e617043d2f97415f49ef483095a024916759a2 [ROCm/hip commit: d5878533a383d2f61d419eb709c81f61f8df5599] --- projects/hip/include/hip/hip_runtime_api.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/hip/include/hip/hip_runtime_api.h b/projects/hip/include/hip/hip_runtime_api.h index 4571c7b47f..ab5067a248 100644 --- a/projects/hip/include/hip/hip_runtime_api.h +++ b/projects/hip/include/hip/hip_runtime_api.h @@ -634,8 +634,14 @@ typedef struct hipFuncAttributes { size_t sharedSizeBytes; } hipFuncAttributes; typedef struct ihipEvent_t* hipEvent_t; + +/** + * HIP limit + * + * @note Any other limit value will be default, as "UnsupportedLimit". + */ enum hipLimit_t { - hipLimitStackSize = 0x0, ///< limit of stack size in bytes on the current device + hipLimitStackSize = 0x0, ///< limit of thread stack size in bytes on the current device hipLimitPrintfFifoSize = 0x01, ///< size limit in bytes of fifo used by printf call on the device hipLimitMallocHeapSize = 0x02, ///< limit of heap size in bytes on the current device hipLimitRange ///< supported limit range