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 удалений
-7
Просмотреть файл
@@ -1260,13 +1260,6 @@ hipError_t hipCtxDisablePeerAccess (hipCtx_t peerCtx);
* @}
*/
// TODO-ctx
/**
* @return hipSuccess, hipErrorInvalidDevice
*/
hipError_t hipDeviceGetFromId(hipDevice_t *device, int deviceId);
/**
* @brief Returns a handle to a compute device
* @param [out] device
-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);