SWDEV-288708 - Rationalize HIP runtime and device version reporting

Change-Id: I49a7ee1fa9ae3ef5f26d99d18c0b8bb58cb9d5ce
This commit is contained in:
agodavar
2021-05-31 04:02:56 -07:00
کامیت شده توسط Anusha Godavarthy Surya
والد 9ba66fc157
کامیت eb2c98bb00
+4 -7
مشاهده پرونده
@@ -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);
}