SWDEV-288708 - Rationalize HIP runtime and device version reporting

Change-Id: I49a7ee1fa9ae3ef5f26d99d18c0b8bb58cb9d5ce


[ROCm/hip commit: eb2c98bb00]
Šī revīzija ir iekļauta:
agodavar authored and Anusha Godavarthy Surya committed 2021-06-01 05:09:36 -04:00
1 vecāks 230088d790
revīzija 001f7d9494
1 file changed
+4 -7
+4 -7
Parādīt failu
@@ -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);
}