Skip to content

Commit

Permalink
Fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongreig committed Jan 23, 2025
1 parent 3049632 commit ee0fc6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sycl/unittests/helpers/UrMock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ inline ur_result_t mock_urDeviceGetInfo(void *pParams) {
auto params = reinterpret_cast<ur_device_get_info_params_t *>(pParams);
constexpr char MockDeviceName[] = "Mock device";
constexpr char MockSupportedExtensions[] =
"cl_khr_il_program ur_exp_command_buffer";
"cl_khr_fp64 cl_khr_il_program ur_exp_command_buffer";
switch (*params->ppropName) {
case UR_DEVICE_INFO_TYPE: {
// Act like any device is a GPU.
Expand Down
4 changes: 2 additions & 2 deletions sycl/unittests/pipes/host_pipe_registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ ur_result_t redefinedEnqueueWriteHostPipe(void *pParams) {
ur_result_t after_urDeviceGetInfo(void *pParams) {
auto params = *static_cast<ur_device_get_info_params_t *>(pParams);
constexpr char MockSupportedExtensions[] =
"cl_khr_il_program cl_intel_program_scope_host_pipe";
"cl_khr_fp64 cl_khr_il_program ur_exp_command_buffer "
"cl_intel_program_scope_host_pipe";
switch (*params.ppropName) {
case UR_DEVICE_INFO_EXTENSIONS:
if (*params.ppPropValue) {
std::ignore = *params.ppropSize;
assert(*params.ppropSize >= sizeof(MockSupportedExtensions));
std::memcpy(*params.ppPropValue, MockSupportedExtensions,
sizeof(MockSupportedExtensions));
Expand Down

0 comments on commit ee0fc6c

Please sign in to comment.