P4 to Git Change 1740048 by wchau@wchau_OCL_Linux on 2019/02/05 14:10:40

SWDEV-134107 - Add support for respecting target's xnack setting
	- Enable the XNACK feature for all the APU system and remove the xnackEnabled_ field in AMDDeviceInfo struct

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#332 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdefs.hpp#23 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#116 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocprogram.cpp#98 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#41 edit
This commit is contained in:
foreman
2019-02-05 14:44:09 -05:00
parent fad3d44aa9
commit 1fa47a7398
5 changed files with 25 additions and 27 deletions
+2 -2
View File
@@ -112,7 +112,7 @@ bool Program::initClBinary(char* binaryIn, size_t size) {
}
HSAILProgram::HSAILProgram(roc::NullDevice& device) : roc::Program(device) {
xnackEnabled_ = dev().deviceInfo().xnackEnabled_;
xnackEnabled_ = dev().settings().enableXNACK_;
machineTarget_ = dev().deviceInfo().complibTarget_;
}
@@ -318,7 +318,7 @@ bool HSAILProgram::setKernels(amd::option::Options* options, void* binary, size_
LightningProgram::LightningProgram(roc::NullDevice& device)
: roc::Program(device) {
isLC_ = true;
xnackEnabled_ = dev().deviceInfo().xnackEnabled_;
xnackEnabled_ = dev().settings().enableXNACK_;
machineTarget_ = dev().deviceInfo().machineTargetLC_;
}