SWDEV-268864 - Use new isa class to access isa related information (part 2)
Change-Id: If7ed535b3012aec3f2cb4eb7ab93d8f5aed9783f
This commit is contained in:
1 parent
c45b74c9de
commit
040bc455d4
2 files changed
+5
-5
No files matched your search
@@ -82,9 +82,9 @@ hipError_t hipDeviceComputeCapability(int *major, int *minor, hipDevice_t device
|
|||||||
}
|
}
|
||||||
|
|
||||||
auto* deviceHandle = g_devices[device]->devices()[0];
|
auto* deviceHandle = g_devices[device]->devices()[0];
|
||||||
const auto& info = deviceHandle->info();
|
const auto& isa = deviceHandle->isa();
|
||||||
*major = info.gfxipMajor_;
|
*major = isa.versionMajor();
|
||||||
*minor = info.gfxipMinor_;
|
*minor = isa.versionMinor();
|
||||||
|
|
||||||
HIP_RETURN(hipSuccess);
|
HIP_RETURN(hipSuccess);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -329,10 +329,10 @@ hipError_t ihipOccupancyMaxActiveBlocksPerMultiprocessor(
|
|||||||
size_t GprWaves = VgprWaves;
|
size_t GprWaves = VgprWaves;
|
||||||
if (wrkGrpInfo->usedSGPRs_ > 0) {
|
if (wrkGrpInfo->usedSGPRs_ > 0) {
|
||||||
size_t maxSGPRs;
|
size_t maxSGPRs;
|
||||||
if (device.info().gfxipMajor_ < 8) {
|
if (device.isa().versionMajor() < 8) {
|
||||||
maxSGPRs = 512;
|
maxSGPRs = 512;
|
||||||
}
|
}
|
||||||
else if (device.info().gfxipMajor_ < 10) {
|
else if (device.isa().versionMajor() < 10) {
|
||||||
maxSGPRs = 800;
|
maxSGPRs = 800;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in new issue
Block a user