SWDEV-508540 - fix the max blocks per multiprocessor calculation (#737)

Ta zmiana jest zawarta w:
Chaudhary, Jatin Jaikishan authored and GitHub committed 2025-08-11 10:17:18 +05:30
1 rodzic ed903e8889
złożenie ee124dda09
Plik 1 zmieniony
+1 -1
+1 -1
Wyświetl plik
@@ -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;