From ee124dda09f666f214f5ffbd6194e23293bb02be Mon Sep 17 00:00:00 2001 From: "Chaudhary, Jatin Jaikishan" Date: Mon, 11 Aug 2025 05:47:18 +0100 Subject: [PATCH] SWDEV-508540 - fix the max blocks per multiprocessor calculation (#737) --- hipamd/src/hip_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hipamd/src/hip_device.cpp b/hipamd/src/hip_device.cpp index fef71fb7b7..8f1ceff2fb 100644 --- a/hipamd/src/hip_device.cpp +++ b/hipamd/src/hip_device.cpp @@ -499,7 +499,7 @@ hipError_t ihipGetDeviceProperties(hipDeviceProp_tR0600* props, int device) { deviceProps.multiProcessorCount = info.maxComputeUnits_; deviceProps.l2CacheSize = info.l2CacheSize_; deviceProps.maxThreadsPerMultiProcessor = info.maxThreadsPerCU_; - deviceProps.maxBlocksPerMultiProcessor = int(info.maxThreadsPerCU_ / info.maxWorkGroupSize_); + deviceProps.maxBlocksPerMultiProcessor = int(info.maxThreadsPerCU_ / info.wavefrontWidth_); deviceProps.computeMode = 0; deviceProps.clockInstructionRate = info.timeStampFrequency_; deviceProps.arch.hasGlobalInt32Atomics = 1;