P4 to Git Change 1757879 by wchau@wchau_OCL_boltzmann on 2019/03/18 16:14:33

SWDEV-168145 - Add ECC target feature to OpenCL runtime
	- passing the sram-ecc option when using COMGR

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/devprogram.cpp#33 edit
This commit is contained in:
foreman
2019-03-18 17:07:24 -04:00
والد 153ce98b4a
کامیت 5aae5461c3
@@ -1496,6 +1496,14 @@ bool Program::linkImplLC(amd::option::Options* options) {
std::ostream_iterator<std::string>(ostrstr, " "));
codegenOptions.append(" ").append(ostrstr.str());
// Set SRAM ECC option if needed
if (sramEccEnabled_) {
codegenOptions.append(" -msram-ecc");
}
else {
codegenOptions.append(" -mno-sram-ecc");
}
// Force object code v2.
codegenOptions.append(" -mno-code-object-v3");
// Set whole program mode