P4 to Git Change 1313439 by lmoriche@lmoriche_opencl_dev on 2016/09/12 16:05:39

SWDEV-94610 - Revert to the HSA 1.0 API for now.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#16 edit


[ROCm/clr commit: fe6ef85918]
This commit is contained in:
foreman
2016-09-12 16:12:26 -04:00
förälder 9a0b935753
incheckning bb8ebe5ed4
@@ -377,13 +377,13 @@ hsa_status_t Device::iterateAgentCallback(hsa_agent_t agent, void *data) {
}
uint32_t isaNameLength = 0;
if (hsa_isa_get_info_alt(isa, HSA_ISA_INFO_NAME_LENGTH, &isaNameLength)
if (hsa_isa_get_info(isa, HSA_ISA_INFO_NAME_LENGTH, 0, &isaNameLength)
!= HSA_STATUS_SUCCESS) {
return HSA_STATUS_ERROR;
}
char *isaName = (char*)alloca((size_t)isaNameLength + 1);
if (hsa_isa_get_info_alt(isa, HSA_ISA_INFO_NAME, isaName)
if (hsa_isa_get_info(isa, HSA_ISA_INFO_NAME, 0, isaName)
!= HSA_STATUS_SUCCESS) {
return HSA_STATUS_ERROR;
}