From d0098787c83d2fec9f0a7c35d517eba32c9bfdce Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 11 Sep 2018 16:08:44 -0400
Subject: [PATCH] P4 to Git Change 1604364 by cpaquot@cpaquot-ocl-lc-lnx on
2018/09/11 15:43:44
SWDEV-145570 - [HIP] Added hipCtxGetSharedMemConfig
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/hip/hip_context.cpp#14 edit
[ROCm/clr commit: 86c038863b202dabff721b620088801fe582544b]
---
projects/clr/hipamd/api/hip/hip_context.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/projects/clr/hipamd/api/hip/hip_context.cpp b/projects/clr/hipamd/api/hip/hip_context.cpp
index 0ac257df83..a4971d50d4 100644
--- a/projects/clr/hipamd/api/hip/hip_context.cpp
+++ b/projects/clr/hipamd/api/hip/hip_context.cpp
@@ -131,6 +131,14 @@ hipError_t hipCtxGetCurrent(hipCtx_t* ctx) {
HIP_RETURN(hipSuccess);
}
+hipError_t hipCtxGetSharedMemConfig(hipSharedMemConfig* pConfig) {
+ HIP_INIT_API(pConfig);
+
+ *pConfig = hipSharedMemBankSizeFourByte;
+
+ HIP_RETURN(hipSuccess);
+}
+
hipError_t hipRuntimeGetVersion(int *runtimeVersion) {
HIP_INIT_API(runtimeVersion);