Change the parameter type of hipDeviceGetPCIBusID to char*

Change-Id: Ia72f403126e95f65da53208fc246f45d1417381f
이 커밋은 다음에 포함됨:
pensun
2016-11-28 10:47:18 -06:00
부모 ce92a53f25
커밋 2fbbf2b136
3개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
+4 -4
파일 보기
@@ -306,7 +306,7 @@ hipError_t hipSetDeviceFlags( unsigned int flags)
}
}
unsigned supportedFlags = hipDeviceScheduleMask | hipDeviceMapHost | hipDeviceLmemResizeToMax;
unsigned supportedFlags = hipDeviceScheduleMask | hipDeviceMapHost | hipDeviceLmemResizeToMax;
if (flags & (~supportedFlags)) {
e = hipErrorInvalidValue;
@@ -338,12 +338,12 @@ hipError_t hipDeviceGetName(char *name,int len,hipDevice_t device)
return ihipLogStatus(e);
}
hipError_t hipDeviceGetPCIBusId (int *pciBusId,int len,hipDevice_t device)
hipError_t hipDeviceGetPCIBusId (char *pciBusId,int len,hipDevice_t device)
{
HIP_INIT_API(pciBusId,len, device);
HIP_INIT_API(pciBusId, len, device);
hipError_t e = hipSuccess;
int deviceId= device->_deviceId;
e = ihipDeviceGetAttribute(pciBusId, hipDeviceAttributePciBusId, deviceId);
e = ihipDeviceGetAttribute((int*)pciBusId, hipDeviceAttributePciBusId, deviceId);
return ihipLogStatus(e);
}