From 324486b2ec37bc6d15a801ae22c63b48024bae83 Mon Sep 17 00:00:00 2001 From: foreman Date: Mon, 25 Mar 2019 20:32:28 -0400 Subject: [PATCH] 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 --- rocclr/runtime/device/rocm/rocdevice.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rocclr/runtime/device/rocm/rocdevice.cpp b/rocclr/runtime/device/rocm/rocdevice.cpp index cc4f3028e6..96c4792020 100644 --- a/rocclr/runtime/device/rocm/rocdevice.cpp +++ b/rocclr/runtime/device/rocm/rocdevice.cpp @@ -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;