P4 to Git Change 1761023 by wchau@wchau_OCL_boltzmann on 2019/03/25 11:21:37
SWDEV-168145 - Add ECC target feature to OpenCL runtime - hard coded SRAM ECC target feature for now since ROCr disable sram-ecc reporting via ISA until HCC is fixed Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#123 edit
This commit is contained in:
@@ -542,7 +542,9 @@ bool Device::init() {
|
||||
|
||||
roc_device->deviceInfo_.gfxipVersion_ = gfxipVersionNum;
|
||||
|
||||
bool sramEccEnabled = (str.find("+sram-ecc") != std::string::npos);
|
||||
// TODO: set sramEccEnabled flag based on target string suffix
|
||||
// when ROCr resumes reporting sram-ecc support
|
||||
bool sramEccEnabled = (gfxipVersionNum == 906 || gfxipVersionNum == 908) ? true : false;
|
||||
if (!roc_device->create(sramEccEnabled)) {
|
||||
LogError("Error creating new instance of Device.");
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user