From bb8ebe5ed446007d89cfda894decf0cde92d82cb Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 12 Sep 2016 16:12:26 -0400
Subject: [PATCH] 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: fe6ef85918c7f59ddced9bd45384f1f0aa21506f]
---
projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp b/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp
index f1eaa5ef59..539721cb31 100644
--- a/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp
+++ b/projects/clr/rocclr/runtime/device/rocm/rocdevice.cpp
@@ -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;
}