From 2418a0aa68b2d4c1484c1c8dd38156dfe27fb858 Mon Sep 17 00:00:00 2001 From: Jatin Chaudhary Date: Thu, 11 Jul 2024 22:15:56 +0100 Subject: [PATCH] SWDEV-467414 - add sharedMemPerBlockOptin = sharedMemPerBlock On some platforms user can ask for extended shared memory for a particular kernel in some cases. This feature does not exist on HIP at the moment. So we are setting it to sharedMemPerBlock which is the maximum user can expect for their kernels. Change-Id: I81005cf0d1c9fb941e77d34fb8385241ffe5bdd0 [ROCm/clr commit: 4b95e7bc87f6a5d704c78a3bd2173e29a0aef8f6] --- projects/clr/hipamd/src/hip_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_device.cpp b/projects/clr/hipamd/src/hip_device.cpp index 0fa2a56d3c..802a94177e 100644 --- a/projects/clr/hipamd/src/hip_device.cpp +++ b/projects/clr/hipamd/src/hip_device.cpp @@ -580,7 +580,7 @@ hipError_t ihipGetDeviceProperties(hipDeviceProp_tR0600* props, int device) { deviceProps.localL1CacheSupported = 1; deviceProps.persistingL2CacheMaxSize = info.l2CacheSize_; deviceProps.reservedSharedMemPerBlock = 0; - deviceProps.sharedMemPerBlockOptin = 0; + deviceProps.sharedMemPerBlockOptin = info.localMemSizePerCU_; // Unsupported features // Single to double precision perf ratio