SWDEV-288708 - Rationalize HIP runtime and device version reporting
Change-Id: I49a7ee1fa9ae3ef5f26d99d18c0b8bb58cb9d5ce
[ROCm/hip commit: eb2c98bb00]
This commit is contained in:
committed by
Anusha Godavarthy Surya
parent
230088d790
commit
001f7d9494
@@ -246,16 +246,13 @@ hipError_t hipCtxPushCurrent(hipCtx_t ctx) {
|
||||
hipError_t hipDriverGetVersion(int* driverVersion) {
|
||||
HIP_INIT_API(hipDriverGetVersion, driverVersion);
|
||||
|
||||
auto* deviceHandle = g_devices[0]->devices()[0];
|
||||
const auto& info = deviceHandle->info();
|
||||
|
||||
if (driverVersion) {
|
||||
*driverVersion = AMD_PLATFORM_BUILD_NUMBER * 100 +
|
||||
AMD_PLATFORM_REVISION_NUMBER;
|
||||
} else {
|
||||
if (!driverVersion) {
|
||||
HIP_RETURN(hipErrorInvalidValue);
|
||||
}
|
||||
|
||||
// HIP_VERSION = HIP_VERSION_MAJOR*100 + HIP_MINOR_VERSION
|
||||
*driverVersion = HIP_VERSION;
|
||||
|
||||
HIP_RETURN(hipSuccess);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user