Fix confusion in hipFuncGetAttribute()

Cuda shared == OpenCL local

Cuda local == OpenCL private

Change-Id: I5a204945ecde35919b9e9def20bbb2662fffea2b
Αυτή η υποβολή περιλαμβάνεται σε:
Vlad Sytchenko authored and Vladislav Sytchenko committed 2020-05-08 14:36:36 -04:00
1 γονέας 1ff46e24c5
υποβολή 276bfc9667
2 files changed
+6 -6

No files matched your search

@@ -310,8 +310,9 @@ bool ihipGetFuncAttributes(const char* func_name, amd::Program* program, hipFunc
}
const device::Kernel::WorkGroupInfo* wginfo = it->second->workGroupInfo();
func_attr->localSizeBytes = wginfo->localMemSize_;
func_attr->sharedSizeBytes = wginfo->size_;
func_attr->localSizeBytes = wginfo->privateMemSize_;
func_attr->sharedSizeBytes = wginfo->localMemSize_;
func_attr->maxDynamicSharedSizeBytes = wginfo->availableLDSSize_ - wginfo->localMemSize_;
func_attr->maxThreadsPerBlock = wginfo->wavefrontSize_;
func_attr->numRegs = wginfo->usedVGPRs_;