change hipgetPCIID to take int as third parameter
Change-Id: I4429b36756a6d868a769abd783bf28a55147c0d0
此提交包含在:
+1
-11
@@ -337,16 +337,7 @@ hipError_t hipDeviceGetName(char *name,int len,hipDevice_t device)
|
|||||||
return ihipLogStatus(e);
|
return ihipLogStatus(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
// hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len,hipDevice_t device)
|
hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len, int device)
|
||||||
// {
|
|
||||||
// HIP_INIT_API(pciBusId, len, device);
|
|
||||||
// hipError_t e = hipSuccess;
|
|
||||||
// int deviceId= device->_deviceId;
|
|
||||||
// e = ihipDeviceGetAttribute((int*)pciBusId, hipDeviceAttributePciBusId, deviceId);
|
|
||||||
// return ihipLogStatus(e);
|
|
||||||
// }
|
|
||||||
|
|
||||||
hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len,int device)
|
|
||||||
{
|
{
|
||||||
HIP_INIT_API(pciBusId, len, device);
|
HIP_INIT_API(pciBusId, len, device);
|
||||||
hipError_t e = hipSuccess;
|
hipError_t e = hipSuccess;
|
||||||
@@ -358,7 +349,6 @@ hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len,int device)
|
|||||||
}
|
}
|
||||||
return ihipLogStatus(e);
|
return ihipLogStatus(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
hipError_t hipDeviceTotalMem (size_t *bytes,hipDevice_t device)
|
hipError_t hipDeviceTotalMem (size_t *bytes,hipDevice_t device)
|
||||||
{
|
{
|
||||||
HIP_INIT_API(bytes, device);
|
HIP_INIT_API(bytes, device);
|
||||||
|
|||||||
新增問題並參考
封鎖使用者