P4 to Git Change 1279733 by gandryey@gera-w8 on 2016/06/14 15:36:09

SWDEV-95917 - OpenCL on PAL - add device info query to get the number of aysnc queues
	- Correct the number of normal compute queues
	- Fix concurrency test workloads

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/perf/OCLPerfConcurrency.cpp#19 edit
... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/perf/OCLPerfConcurrency.h#5 edit


[ROCm/clr commit: c7522d11c4]
This commit is contained in:
foreman
2016-06-14 16:10:52 -04:00
parent a0f0cc1977
commit 6a712e8c60
@@ -414,7 +414,7 @@ void NullDevice::fillDeviceInfo(
info_.simdWidth_ = hwInfo()->simdWidth_;
info_.simdInstructionWidth_ = hwInfo()->simdInstructionWidth_;
info_.wavefrontWidth_ = palProp.gfxipProperties.shaderCore.wavefrontSize;
//info_.globalMemChannels_ = calAttr.memBusWidth / 32;
//info_.globalMemChannels_ = palProp.gpuMemoryProperties.performance.vramBusBitWidth / 32;
//info_.globalMemChannelBanks_ = calAttr.numMemBanks;
info_.globalMemChannelBankWidth_ = hwInfo()->memChannelBankWidth_;
info_.localMemSizePerCU_ = hwInfo()->localMemSizePerCU_;
@@ -647,7 +647,8 @@ Device::create(Pal::IDevice* device)
// Find the number of available engines
numComputeEngines_ =
properties().engineProperties[Pal::QueueTypeCompute].engineCount;
properties().engineProperties[Pal::QueueTypeCompute].engineCount -
properties().engineProperties[Pal::QueueTypeCompute].numExclusiveComputeEngines;
numDmaEngines_ =
properties().engineProperties[Pal::QueueTypeDma].engineCount;
@@ -655,6 +656,7 @@ Device::create(Pal::IDevice* device)
// Modify settings here
// palSettings ...
palSettings->textureOptLevel = Pal::TextureFilterOptimizationsDisabled;
//palSettings->forceHighClocks = appProfile_.enableHighPerformanceState();
// Commit the new settings for the device
result = iDev()->CommitSettingsAndInit();