File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2012,11 +2012,10 @@ void handler::setUserFacingNodeType(ext::oneapi::experimental::node_type Type) {
20122012}
20132013
20142014std::optional<std::array<size_t , 3 >> handler::getMaxWorkGroups () {
2015- const auto &DeviceImpl =
2016- MQueue ? MQueue->getDeviceImplPtr () : impl->MGraph ->getDeviceImplPtr ();
2015+ auto Dev = detail::getSyclObjImpl (detail::getDeviceFromHandler (*this ));
20172016 std::array<size_t , 3 > UrResult = {};
2018- auto Ret = DeviceImpl ->getAdapter ()->call_nocheck <UrApiKind::urDeviceGetInfo>(
2019- DeviceImpl ->getHandleRef (),
2017+ auto Ret = Dev ->getAdapter ()->call_nocheck <UrApiKind::urDeviceGetInfo>(
2018+ Dev ->getHandleRef (),
20202019 UrInfoCode<
20212020 ext::oneapi::experimental::info::device::max_work_groups<3 >>::value,
20222021 sizeof (UrResult), &UrResult, nullptr );
You can’t perform that action at this time.
0 commit comments