@@ -100,47 +100,47 @@ int main() {
100
100
queue MyQueue1 (hostSelector);
101
101
queue MyQueue2 (hostSelector);
102
102
Result &= multidevice_test (MyQueue1, MyQueue2);
103
- } catch (cl::sycl::invalid_parameter_error &) {
103
+ } catch (cl::sycl::runtime_error &) {
104
104
std::cout << " Skipping host and host" << std::endl;
105
105
}
106
106
107
107
try {
108
108
queue MyQueue1 (hostSelector);
109
109
queue MyQueue2 (CPUSelector);
110
110
Result &= multidevice_test (MyQueue1, MyQueue2);
111
- } catch (cl::sycl::invalid_parameter_error &) {
111
+ } catch (cl::sycl::runtime_error &) {
112
112
std::cout << " Skipping host and CPU" << std::endl;
113
113
}
114
114
115
115
try {
116
116
queue MyQueue1 (CPUSelector);
117
117
queue MyQueue2 (CPUSelector);
118
118
Result &= multidevice_test (MyQueue1, MyQueue2);
119
- } catch (cl::sycl::invalid_parameter_error &) {
119
+ } catch (cl::sycl::runtime_error &) {
120
120
std::cout << " Skipping CPU and CPU" << std::endl;
121
121
}
122
122
123
123
try {
124
124
queue MyQueue1 (CPUSelector);
125
125
queue MyQueue2 (GPUSelector);
126
126
Result &= multidevice_test (MyQueue1, MyQueue2);
127
- } catch (cl::sycl::invalid_parameter_error &) {
127
+ } catch (cl::sycl::runtime_error &) {
128
128
std::cout << " Skipping CPU and GPU" << std::endl;
129
129
}
130
130
131
131
try {
132
132
queue MyQueue1 (hostSelector);
133
133
queue MyQueue2 (GPUSelector);
134
134
Result &= multidevice_test (MyQueue1, MyQueue2);
135
- } catch (cl::sycl::invalid_parameter_error &) {
135
+ } catch (cl::sycl::runtime_error &) {
136
136
std::cout << " Skipping host and GPU" << std::endl;
137
137
}
138
138
139
139
try {
140
140
queue MyQueue1 (GPUSelector);
141
141
queue MyQueue2 (GPUSelector);
142
142
Result &= multidevice_test (MyQueue1, MyQueue2);
143
- } catch (cl::sycl::invalid_parameter_error &) {
143
+ } catch (cl::sycl::runtime_error &) {
144
144
std::cout << " Skipping GPU and GPU" << std::endl;
145
145
}
146
146
0 commit comments