P4 to Git Change 1572945 by jatang@jatang-opencl-hsa-stg5 on 2018/06/26 16:09:41

SWDEV-155654 - TDR\BSOD observed while running Nuke Performance Benchmark test on Hawaii Asics.

	Need to support the new power-related appprofile parameters for gfx8 ASICs.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuappprofile.cpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuappprofile.hpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#592 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#183 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.h#64 edit
This commit is contained in:
foreman
2018-06-26 16:18:18 -04:00
rodzic a7bd1f9ece
commit 717c0e3e6c
5 zmienionych plików z 201 dodań i 13 usunięć
+15 -5
Wyświetl plik
@@ -840,11 +840,21 @@ bool Device::create(CALuint ordinal, CALuint numOfDevices) {
bool noSVM = LP64_SWITCH(true, false) && !GPU_FORCE_OCL20_32BIT;
// Open GSL device
if (!open(ordinal, appProfile_.enableHighPerformanceState(),
(smallMemSystem ||
appProfile_.reportAsOCL12Device() ||
(OPENCL_VERSION < 200) ||
noSVM))) {
CALGSLDevice::OpenParams openData = {0};
openData.enableHighPerformanceState = appProfile_.enableHighPerformanceState();
openData.reportAsOCL12Device = (smallMemSystem ||
appProfile_.reportAsOCL12Device() ||
(OPENCL_VERSION < 200) ||
noSVM);
openData.sclkThreshold = appProfile_.GetSclkThreshold().c_str();
openData.downHysteresis = appProfile_.GetDownHysteresis().c_str();
openData.upHysteresis = appProfile_.GetUpHysteresis().c_str();
openData.powerLimit = appProfile_.GetPowerLimit().c_str();
openData.mclkThreshold = appProfile_.GetMclkThreshold().c_str();
openData.mclkUpHyst = appProfile_.GetMclkUpHyst().c_str();
openData.mclkDownHyst = appProfile_.GetMclkDownHyst().c_str();
if (!open(ordinal, openData)) {
return false;
}