Remove redundant API hipDeviceGetFromId from HCC path

Change-Id: Id6b4f1374b12cb3949d725f0859425cd8de6d868


[ROCm/hip commit: 51f25f9271]
此提交包含在:
Maneesh Gupta
2016-09-09 12:06:19 +05:30
父節點 b7e53075ab
當前提交 d50a280d72
共有 2 個檔案被更改,包括 0 行新增 和 23 行删除
-16
查看文件
@@ -245,22 +245,6 @@ hipError_t hipSetDeviceFlags( unsigned int flags)
return ihipLogStatus(e);
};
hipError_t hipDeviceGetFromId(hipDevice_t *device, int deviceId)
{
HIP_INIT_API(device, deviceId);
hipError_t e = hipSuccess;
*device = ihipGetDevice(deviceId);
if (device == nullptr) {
e = hipErrorInvalidDevice;
}
return ihipLogStatus(e);
}
hipError_t hipDeviceComputeCapability(int *major, int *minor, hipDevice_t device)
{
HIP_INIT_API(major,minor, device);