Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion backends/source/dppl_sycl_queue_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,15 @@ class QMgrHelper
vector_class<device> SelectedDevices;
for(auto &d : Devices) {
auto devty = d.get_info<info::device::device_type>();
if(devty == DTy && be == BE)
if(devty == DTy && be == BE) {
SelectedDevices.push_back(d);

// Workaround for situations when in some environments
// get_devices() returns each device TWICE. Then it fails in call
// for context constructor with all doubled devices.
// So use only one first device.
break;
}
}
if (SelectedDevices.size() > 0) {
auto Ctx = context(SelectedDevices);
Expand Down