Remove redundant API hipDeviceGetFromId from HCC path

Change-Id: Id6b4f1374b12cb3949d725f0859425cd8de6d868
Esse commit está contido em:
Maneesh Gupta committed 2016-09-09 12:06:19 +05:30
1 pai f8f75faba3
commit 0c56f707f0
2 files changed
-23

No files matched your search

-16
Ver Arquivo
@@ -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);