P4 to Git Change 1780298 by gandryey@gera-win10 on 2019/05/08 17:04:56
SWDEV-188605 - [CQE OCL][QR][mGPU][Vega][DTB-Blocker][Windows][RS5] Observed Failure of OCLP2PBuffer sub test of ocltst_runtime both 64 &32 bit due to faultyCL 1775995
- Count offline GPU devices during PAL device detection
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#132 edit
[ROCm/clr commit: 54021e0264]
This commit is contained in:
@@ -1056,7 +1056,7 @@ bool Device::create(Pal::IDevice* device) {
|
||||
|
||||
if ((glb_ctx_ == nullptr) && (gNumDevices > 1) && (device == gDeviceList[gNumDevices - 1])) {
|
||||
std::vector<amd::Device*> devices;
|
||||
uint32_t numDevices = amd::Device::numDevices(CL_DEVICE_TYPE_GPU, false);
|
||||
uint32_t numDevices = amd::Device::numDevices(CL_DEVICE_TYPE_GPU, true);
|
||||
// Add all PAL devices
|
||||
for (uint32_t i = gStartDevice; i < numDevices; ++i) {
|
||||
devices.push_back(amd::Device::devices()[i]);
|
||||
@@ -1282,7 +1282,7 @@ static void parseRequestedDeviceList(const char* requestedDeviceList,
|
||||
}
|
||||
|
||||
bool Device::init() {
|
||||
gStartDevice = amd::Device::numDevices(CL_DEVICE_TYPE_GPU, false);
|
||||
gStartDevice = amd::Device::numDevices(CL_DEVICE_TYPE_GPU, true);
|
||||
bool useDeviceList = false;
|
||||
requestedDevices_t requestedDevices;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user