Added hipRuntimeGetVersion function

Change-Id: I59ec2beacb5a94439deed0dcc8eb37d6de1cc900


[ROCm/hip commit: bfc033cc3e]
This commit is contained in:
Rahul Garg
2016-09-22 15:21:23 +05:30
parent 77c333f952
commit e729fa1dee
3 changed files with 44 additions and 3 deletions
+20 -3
View File
@@ -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)