Skip to content

Commit 29f6f85

Browse files
committed
fixed formatting
1 parent 2223f8e commit 29f6f85

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

sycl/source/detail/device_info.hpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,20 +1413,22 @@ typename Param::return_type get_device_info(const DeviceImplPtr &Dev) {
14131413

14141414
template <>
14151415
inline 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

14261428
template <>
14271429
inline 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

Comments
 (0)