From 7731299752b91f12f9d322e6a9098bf77690e0a4 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 --- include/hip/hip_runtime_api.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/hip/hip_runtime_api.h b/include/hip/hip_runtime_api.h index c3c11c883b..1d8a6cc731 100644 --- a/include/hip/hip_runtime_api.h +++ b/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 *