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
Esse commit está contido em:
foreman
2019-02-05 14:44:09 -05:00
commit 1fa47a7398
5 arquivos alterados com 25 adições e 27 exclusões
+2 -4
Ver Arquivo
@@ -77,10 +77,12 @@ bool Settings::create(bool fullProfile, int gfxipVersion) {
pinnedXferSize_ = 0;
stagedXferSize_ = 0;
xferBufSize_ = 0;
apuSystem_ = true;
} else {
pinnedXferSize_ = std::max(pinnedXferSize_, pinnedMinXferSize_);
stagedXferSize_ = std::max(stagedXferSize_, pinnedMinXferSize_ + 4 * Ki);
}
enableXNACK_ = apuSystem_ ? 1 : 0 ; // enable xnack for APU system
// Enable extensions
enableExtension(ClKhrByteAddressableStore);
@@ -118,10 +120,6 @@ bool Settings::create(bool fullProfile, int gfxipVersion) {
enableExtension(ClAmdFp64);
}
if (gfxipVersion == 902) {
apuSystem_ = true;
}
// Override current device settings
override();