Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit d964c43

Browse files
committed
Replaced obsolete exception::get_cl_code() calls with exception::code().value()
1 parent 7f6ab8d commit d964c43

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

SYCL/ESIMD/histogram.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ int main(int argc, char *argv[]) {
228228
// make sure data is given back to the host at the end of this scope
229229
} catch (cl::sycl::exception const &e) {
230230
std::cout << "SYCL exception caught: " << e.what() << '\n';
231-
return e.get_cl_code();
231+
return e.code().value();
232232
}
233233

234234
// End timer.

SYCL/ESIMD/histogram_256_slm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ int main() {
183183
}
184184
} catch (cl::sycl::exception const &e) {
185185
std::cout << "SYCL exception caught: " << e.what() << '\n';
186-
return e.get_cl_code();
186+
return e.code().value();
187187
}
188188

189189
// End timer.

SYCL/ESIMD/histogram_256_slm_spec_2020.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ int main(int argc, char **argv) {
191191
}
192192
} catch (cl::sycl::exception const &e) {
193193
std::cout << "SYCL exception caught: " << e.what() << '\n';
194-
return e.get_cl_code();
194+
return e.code().value();
195195
}
196196

197197
// End timer.

SYCL/ESIMD/histogram_2d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ int main(int argc, char *argv[]) {
229229
// make sure data is given back to the host at the end of this scope
230230
} catch (cl::sycl::exception const &e) {
231231
std::cout << "SYCL exception caught: " << e.what() << '\n';
232-
return e.get_cl_code();
232+
return e.code().value();
233233
}
234234

235235
// End timer.

SYCL/ESIMD/histogram_raw_send.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ int main(int argc, char *argv[]) {
254254
// make sure data is given back to the host at the end of this scope
255255
} catch (cl::sycl::exception const &e) {
256256
std::cout << "SYCL exception caught: " << e.what() << '\n';
257-
return e.get_cl_code();
257+
return e.code().value();
258258
}
259259

260260
// End timer.

0 commit comments

Comments
 (0)