P4 to Git Change 1338972 by scharupa@scharupa_temp on 2016/11/09 16:33:58

SWDEV-95488 - Limiting max cap Context on ROCm, it is limited to 100

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#204 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#279 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#25 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.hpp#7 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocsettings.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#16 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#4 edit
This commit is contained in:
foreman committed 2016-11-09 17:07:33 -05:00
1 szülő 621f70b372
commit 2d64dbab44
7 files changed
+28 -2

No files matched your search

@@ -450,6 +450,8 @@ bool VirtualGPU::releaseGpuMemoryFence() {
VirtualGPU::VirtualGPU(Device &device)
: device::VirtualDevice(device)
, roc_device_(device)
, index_(device_.numOfVgpus_++) // Virtual gpu unique index incrementing
, gpuDevice_(device)
{
gpu_device_ = device.getBackendDevice();
// Initialize the last signal and dispatch flags
@@ -477,6 +479,7 @@ VirtualGPU::~VirtualGPU()
}
tools_lib_ = NULL;
--gpuDevice_.numOfVgpus_; // Virtual gpu unique index decrementing
}
bool
@@ -494,6 +497,11 @@ VirtualGPU::create(bool profilingEna)
tools_lib_ = amd::Os::loadLibrary(tools_lib_name);
}
// Checking Virtual gpu unique index for ROCm backend
if (index() > device().settings().commandQueues_) {
return false;
}
uint32_t queue_max_packets = 0;
if (HSA_STATUS_SUCCESS !=
hsa_agent_get_info(