Remove redundant API hipDeviceGetFromId from HCC path
Change-Id: Id6b4f1374b12cb3949d725f0859425cd8de6d868
[ROCm/hip commit: 51f25f9271]
Этот коммит содержится в:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Ссылка в новой задаче
Block a user