We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d69668 commit 0a282f5Copy full SHA for 0a282f5
test/backend_tests.cc
@@ -96,6 +96,7 @@ struct host_or_device {
96
97
std::pair<host_or_device, host_or_device> select_source_and_target(const copy_test_type test_type, const sycl::platform& platform) {
98
const auto devices = platform.get_devices();
99
+ if(devices.empty()) { throw std::runtime_error(fmt::format("Platform {} has no devices", platform.get_info<sycl::info::platform::name>())); }
100
switch(test_type) {
101
case copy_test_type::intra_device: {
102
return std::pair{host_or_device{sycl::queue{devices[0]}}, host_or_device{sycl::queue{devices[0]}}};
0 commit comments