Skip to content

Commit

Permalink
Revert aspect queries to call_nocheck
Browse files Browse the repository at this point in the history
  • Loading branch information
przemektmalon committed Apr 9, 2024
1 parent 54d1812 commit ff907c2
Showing 1 changed file with 33 additions and 24 deletions.
57 changes: 33 additions & 24 deletions sycl/source/detail/device_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,45 +584,54 @@ bool device_impl::has(aspect Aspect) const {
}
case aspect::ext_oneapi_bindless_sampled_image_fetch_1d_usm: {
pi_bool support = PI_FALSE;
getPlugin()->call<detail::PiApiKind::piDeviceGetInfo>(
MDevice, PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_1D_USM,
sizeof(pi_bool), &support, nullptr);
return support;
bool call_successful =
getPlugin()->call_nocheck<detail::PiApiKind::piDeviceGetInfo>(
MDevice,
PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_1D_USM,
sizeof(pi_bool), &support, nullptr) == PI_SUCCESS;
return call_successful && support;
}
case aspect::ext_oneapi_bindless_sampled_image_fetch_1d: {
pi_bool support = PI_FALSE;
getPlugin()->call<detail::PiApiKind::piDeviceGetInfo>(
MDevice, PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_1D,
sizeof(pi_bool), &support, nullptr);
return support;
bool call_successful =
getPlugin()->call_nocheck<detail::PiApiKind::piDeviceGetInfo>(
MDevice, PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_1D,
sizeof(pi_bool), &support, nullptr) == PI_SUCCESS;
return call_successful && support;
}
case aspect::ext_oneapi_bindless_sampled_image_fetch_2d_usm: {
pi_bool support = PI_FALSE;
getPlugin()->call<detail::PiApiKind::piDeviceGetInfo>(
MDevice, PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_2D_USM,
sizeof(pi_bool), &support, nullptr);
return support;
bool call_successful =
getPlugin()->call_nocheck<detail::PiApiKind::piDeviceGetInfo>(
MDevice,
PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_2D_USM,
sizeof(pi_bool), &support, nullptr) == PI_SUCCESS;
return call_successful && support;
}
case aspect::ext_oneapi_bindless_sampled_image_fetch_2d: {
pi_bool support = PI_FALSE;
getPlugin()->call<detail::PiApiKind::piDeviceGetInfo>(
MDevice, PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_2D,
sizeof(pi_bool), &support, nullptr);
return support;
bool call_successful =
getPlugin()->call_nocheck<detail::PiApiKind::piDeviceGetInfo>(
MDevice, PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_2D,
sizeof(pi_bool), &support, nullptr) == PI_SUCCESS;
return call_successful && support;
}
case aspect::ext_oneapi_bindless_sampled_image_fetch_3d_usm: {
pi_bool support = PI_FALSE;
getPlugin()->call<detail::PiApiKind::piDeviceGetInfo>(
MDevice, PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_3D_USM,
sizeof(pi_bool), &support, nullptr);
return support;
bool call_successful =
getPlugin()->call_nocheck<detail::PiApiKind::piDeviceGetInfo>(
MDevice,
PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_3D_USM,
sizeof(pi_bool), &support, nullptr) == PI_SUCCESS;
return call_successful && support;
}
case aspect::ext_oneapi_bindless_sampled_image_fetch_3d: {
pi_bool support = PI_FALSE;
getPlugin()->call<detail::PiApiKind::piDeviceGetInfo>(
MDevice, PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_3D,
sizeof(pi_bool), &support, nullptr);
return support;
bool call_successful =
getPlugin()->call_nocheck<detail::PiApiKind::piDeviceGetInfo>(
MDevice, PI_EXT_ONEAPI_DEVICE_INFO_BINDLESS_SAMPLED_IMAGE_FETCH_3D,
sizeof(pi_bool), &support, nullptr) == PI_SUCCESS;
return call_successful && support;
}
case aspect::ext_intel_esimd: {
pi_bool support = PI_FALSE;
Expand Down

0 comments on commit ff907c2

Please sign in to comment.