P4 to Git Change 1344681 by lmoriche@lmoriche_opencl_dev on 2016/11/22 12:27:06
SWDEV-94610 - Migrate the program loading code to HSA 1.1 (loader v2). Remove the hsaCodeObject_, brigModule_ and brigContainer_.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#28 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#46 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.hpp#15 edit
[ROCm/clr commit: ed20536075]
This commit is contained in:
@@ -441,13 +441,13 @@ bool Device::init()
|
||||
}
|
||||
|
||||
uint32_t isaNameLength = 0;
|
||||
if (hsa_isa_get_info(isa, HSA_ISA_INFO_NAME_LENGTH, 0, &isaNameLength)
|
||||
if (hsa_isa_get_info_alt(isa, HSA_ISA_INFO_NAME_LENGTH, &isaNameLength)
|
||||
!= HSA_STATUS_SUCCESS) {
|
||||
continue;
|
||||
}
|
||||
|
||||
char *isaName = (char*)alloca((size_t)isaNameLength + 1);
|
||||
if (hsa_isa_get_info(isa, HSA_ISA_INFO_NAME, 0, isaName)
|
||||
if (hsa_isa_get_info_alt(isa, HSA_ISA_INFO_NAME, isaName)
|
||||
!= HSA_STATUS_SUCCESS) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user