From 5ce8259c9a81271168a102e2c62098eb0ffacac7 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Mon, 26 Sep 2022 07:39:12 +0530 Subject: [PATCH] SWDEV-354045 - Update hipModuleLoad comments about releasing file and other resources. (#2927) Change-Id: I88e5a37d3fd56b874eba19f73b0be0217caa58f8 [ROCm/hip commit: 7731299752b91f12f9d322e6a9098bf77690e0a4] --- projects/hip/include/hip/hip_runtime_api.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/projects/hip/include/hip/hip_runtime_api.h b/projects/hip/include/hip/hip_runtime_api.h index c3c11c883b..1d8a6cc731 100644 --- a/projects/hip/include/hip/hip_runtime_api.h +++ b/projects/hip/include/hip/hip_runtime_api.h @@ -4483,6 +4483,8 @@ hipError_t hipDevicePrimaryCtxSetFlags(hipDevice_t dev, unsigned int flags); * @param [in] fname * @param [out] module * + * @warning File/memory resources allocated in this function are released only in hipModuleUnload. + * * @returns hipSuccess, hipErrorInvalidValue, hipErrorInvalidContext, hipErrorFileNotFound, * hipErrorOutOfMemory, hipErrorSharedObjectInitFailed, hipErrorNotInitialized *