@@ -1413,20 +1413,22 @@ typename Param::return_type get_device_info(const DeviceImplPtr &Dev) {
14131413
14141414template <>
14151415inline typename info::device::preferred_interop_user_sync::return_type
1416- get_device_info<info::device::preferred_interop_user_sync>(const DeviceImplPtr &Dev){
1417- if (Dev->getBackend () != backend::opencl){
1418- throw sycl::exception (errc::backend_mismatch,
1419- " the info::device::preferred_interop_user_sync info descriptor can "
1420- " only be queried with an OpenCL backend" );
1416+ get_device_info<info::device::preferred_interop_user_sync>(
1417+ const DeviceImplPtr &Dev) {
1418+ if (Dev->getBackend () != backend::opencl) {
1419+ throw sycl::exception (
1420+ errc::backend_mismatch,
1421+ " the info::device::preferred_interop_user_sync info descriptor can "
1422+ " only be queried with an OpenCL backend" );
14211423 }
14221424 using Param = info::device::preferred_interop_user_sync;
14231425 return get_device_info_impl<Param::return_type, Param>::get (Dev);
14241426}
14251427
14261428template <>
14271429inline typename info::device::profile::return_type
1428- get_device_info<info::device::profile>(const DeviceImplPtr &Dev){
1429- if (Dev->getBackend () != backend::opencl){
1430+ get_device_info<info::device::profile>(const DeviceImplPtr &Dev) {
1431+ if (Dev->getBackend () != backend::opencl) {
14301432 throw sycl::exception (errc::backend_mismatch,
14311433 " the info::device::profile info descriptor can "
14321434 " only be queried with an OpenCL backend" );
0 commit comments