From f15514da95cbafbd0cd4c54530fc5a76401dd3f4 Mon Sep 17 00:00:00 2001 From: foreman Date: Wed, 23 Dec 2015 15:47:22 -0500 Subject: [PATCH] P4 to Git Change 1223278 by wchau@wchau_WIN_OCL_HSA on 2015/12/23 15:37:26 SWDEV-66693 - OpenCL Runtime HW Debug support development - use flag, instead of getenv() call, in IOL to indicate the enablement of HW Debug. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#151 edit --- rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp b/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp index b2908d3c57..19de5ed4f9 100644 --- a/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp +++ b/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp @@ -9,6 +9,7 @@ #include "memory/MemObject.h" #include "sampler/SamplerObject.h" #include "texture/TextureResourceObject.h" +#include "../iol/iodrv_if.h" extern gslMemObjectAttribTiling g_CALBETiling_Tiled; @@ -194,6 +195,11 @@ CALGSLDevice::open(uint32 gpuIndex, bool enableHighPerformanceState, bool report m_dcfg.bEnableFlatAddressing.value = reportAsOCL12Device ? false : (OPENCL_MAJOR >= 2); #endif + if (GPU_ENABLE_HW_DEBUG) { + m_dcfg.nPatchDumpLevel.hasValue = true; + m_dcfg.nPatchDumpLevel.value |= NPATCHDUMPLEVEL_BITS_HW_DEBUG; + } + //we can use environment variable CAL_ENABLE_ASYNC_DMA to force dma on or off when we need it char *s = NULL; if((s = getenv("CAL_ENABLE_ASYNC_DMA")))