P4 to Git Change 1503207 by wchau@wchau_OCL_boltzmann on 2018/01/12 14:51:08

SWDEV-140733 - OpenCL Runtime Support for Raven BU in ROCm
	- Fix OCLMemoryInfo issue of incorrect free memory info
	- Fix OCLPerfMemCreate failure due to memory leak

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocmemory.cpp#31 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#30 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.hpp#12 edit


[ROCm/clr commit: 074f37ac4d]
This commit is contained in:
foreman
2018-01-12 14:59:13 -05:00
parent 2b2b4b036d
commit aeb94403c7
3 changed files with 32 additions and 10 deletions
@@ -72,6 +72,8 @@ Settings::Settings() {
// Don't support Denormals for single precision by default
singleFpDenorm_ = false;
apuSystem_ = false;
}
bool Settings::create(bool fullProfile, int gfxipVersion) {
@@ -124,6 +126,10 @@ bool Settings::create(bool fullProfile, int gfxipVersion) {
}
#endif // WITH_LIGHTNING_COMPILER
if (gfxipVersion == 902) {
apuSystem_ = true;
}
// Override current device settings
override();