Added hipRuntimeGetVersion function

Change-Id: I59ec2beacb5a94439deed0dcc8eb37d6de1cc900
Tá an tiomantas seo le fáil i:
Rahul Garg
2016-09-22 15:21:23 +05:30
tuismitheoir a5e951e3d9
tiomantas bfc033cc3e
D'athraigh 3 comhad le 44 breiseanna agus 3 scriosta
+20 -3
Féach ar an gComhad
@@ -76,15 +76,32 @@ hipError_t hipDeviceGet(hipDevice_t *device, int deviceId)
return ihipLogStatus(e);
};
hipError_t hipDriverGetVersion(int *driverVersion)
pError_t hipDriverGetVersion(int *driverVersion)
{
HIP_INIT_API(driverVersion);
hipError_t e = hipSuccess;
if (driverVersion) {
*driverVersion = 4;
}
else {
e = hipErrorInvalidValue;
}
return ihipLogStatus(hipSuccess);
return ihipLogStatus(e);
}
hipError_t hipRuntimeGetVersion(int *runtimeVersion)
{
HIP_INIT_API(runtimeVersion);
hipError_t e = hipSuccess;
if (runtimeVersion) {
*runtimeVersion = HIP_VERSION_PATCH;
}
else {
e = hipErrorInvalidValue;
}
return ihipLogStatus(e);
}
hipError_t hipCtxDestroy(hipCtx_t ctx)