Added hipRuntimeGetVersion function

Change-Id: I59ec2beacb5a94439deed0dcc8eb37d6de1cc900
Tá an tiomantas seo le fáil i:
Rahul Garg tiomanta 2016-09-22 15:21:23 +05:30
1 tuismitheoir ba9d9708f7
tiomantas 86e441c769
3 comhad athraithe
+44 -3

Níor tháinig aon chomhaid le do chuardach

+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)