Skip to content

Commit

Permalink
Update sycl.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
icfaust authored Feb 3, 2025
1 parent 45e15f9 commit 16b6d0c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions onedal/common/sycl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,10 @@ void instantiate_sycl_interfaces(py::module& m) {
}
return py::str(filter + ":") + py::str(py::int_(outidx));
})
.def_property_readonly("device_id",
[](const sycl::device& device) {
// assumes we are not working with accelerators
return get_device_id(device).value();
})
.def("get_device_id",
[](const sycl::device& device) {
return get_device_id(device).value();
})
.def_property_readonly("is_cpu", &sycl::device::is_cpu)
.def_property_readonly("is_gpu", &sycl::device::is_gpu);
}
Expand Down

0 comments on commit 16b6d0c

Please sign in to comment.