Added hipRuntimeGetVersion function

Change-Id: I59ec2beacb5a94439deed0dcc8eb37d6de1cc900
此提交包含在:
Rahul Garg
2016-09-22 15:21:23 +05:30
父節點 a5e951e3d9
當前提交 bfc033cc3e
共有 3 個檔案被更改,包括 44 行新增3 行删除
+20 -3
查看文件
@@ -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)