From 23075ef5b4e97ae1d2cd245edc2dabf9e3ce3be7 Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 11 Sep 2018 12:26:34 -0400
Subject: [PATCH] P4 to Git Change 1604214 by cpaquot@cpaquot-ocl-lc-lnx on
2018/09/11 12:12:23
SWDEV-145570 - [HIP] Added empty hipModuleGetGlobal function.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#19 edit
[ROCm/hip commit: 18f041c1ff7cf2aa08f419f78f6f411243f09ab8]
---
projects/hip/api/hip/hip_module.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/projects/hip/api/hip/hip_module.cpp b/projects/hip/api/hip/hip_module.cpp
index 389119c128..592b41f9b9 100644
--- a/projects/hip/api/hip/hip_module.cpp
+++ b/projects/hip/api/hip/hip_module.cpp
@@ -132,6 +132,14 @@ hipError_t hipModuleGetFunction(hipFunction_t *hfunc, hipModule_t hmod, const ch
HIP_RETURN(hipSuccess);
}
+
+hipError_t hipModuleGetGlobal(hipDeviceptr_t* dptr, size_t* bytes, hipModule_t hmod, const char* name)
+{
+ HIP_INIT_API(dptr, bytes, hmod, name);
+
+ HIP_RETURN(hipSuccess);
+}
+
hipError_t hipFuncGetAttributes(hipFuncAttributes* attr, const void* func)
{
HIP_INIT_API(attr, func);