Skip to content

Commit 5e815d6

Browse files
romanovvladbader
authored andcommitted
[SYCL] Fix expected exception type in MultipleDevices
Signed-off-by: Vlad Romanov <[email protected]>
1 parent 4541a7f commit 5e815d6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sycl/test/scheduler/MultipleDevices.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,47 +100,47 @@ int main() {
100100
queue MyQueue1(hostSelector);
101101
queue MyQueue2(hostSelector);
102102
Result &= multidevice_test(MyQueue1, MyQueue2);
103-
} catch(cl::sycl::invalid_parameter_error &) {
103+
} catch(cl::sycl::runtime_error &) {
104104
std::cout << "Skipping host and host" << std::endl;
105105
}
106106

107107
try {
108108
queue MyQueue1(hostSelector);
109109
queue MyQueue2(CPUSelector);
110110
Result &= multidevice_test(MyQueue1, MyQueue2);
111-
} catch(cl::sycl::invalid_parameter_error &) {
111+
} catch(cl::sycl::runtime_error &) {
112112
std::cout << "Skipping host and CPU" << std::endl;
113113
}
114114

115115
try {
116116
queue MyQueue1(CPUSelector);
117117
queue MyQueue2(CPUSelector);
118118
Result &= multidevice_test(MyQueue1, MyQueue2);
119-
} catch(cl::sycl::invalid_parameter_error &) {
119+
} catch(cl::sycl::runtime_error &) {
120120
std::cout << "Skipping CPU and CPU" << std::endl;
121121
}
122122

123123
try {
124124
queue MyQueue1(CPUSelector);
125125
queue MyQueue2(GPUSelector);
126126
Result &= multidevice_test(MyQueue1, MyQueue2);
127-
} catch(cl::sycl::invalid_parameter_error &) {
127+
} catch(cl::sycl::runtime_error &) {
128128
std::cout << "Skipping CPU and GPU" << std::endl;
129129
}
130130

131131
try {
132132
queue MyQueue1(hostSelector);
133133
queue MyQueue2(GPUSelector);
134134
Result &= multidevice_test(MyQueue1, MyQueue2);
135-
} catch(cl::sycl::invalid_parameter_error &) {
135+
} catch(cl::sycl::runtime_error &) {
136136
std::cout << "Skipping host and GPU" << std::endl;
137137
}
138138

139139
try {
140140
queue MyQueue1(GPUSelector);
141141
queue MyQueue2(GPUSelector);
142142
Result &= multidevice_test(MyQueue1, MyQueue2);
143-
} catch(cl::sycl::invalid_parameter_error &) {
143+
} catch (cl::sycl::runtime_error &) {
144144
std::cout << "Skipping GPU and GPU" << std::endl;
145145
}
146146

0 commit comments

Comments
 (0)