diff --git a/sycl/unittests/helpers/UrMock.hpp b/sycl/unittests/helpers/UrMock.hpp index 7179ac5b65548..c5b3dd47515d4 100644 --- a/sycl/unittests/helpers/UrMock.hpp +++ b/sycl/unittests/helpers/UrMock.hpp @@ -177,6 +177,14 @@ inline ur_result_t mock_urDeviceGetInfo(void *pParams) { **params->ppPropSizeRet = sizeof(MockDeviceName); return UR_RESULT_SUCCESS; } + case UR_DEVICE_INFO_PLATFORM: { + if (*params->ppPropValue) + *static_cast(*params->ppPropValue) = + reinterpret_cast(1); + if (*params->ppPropSizeRet) + **params->ppPropSizeRet = sizeof(ur_platform_handle_t); + return UR_RESULT_SUCCESS; + } case UR_DEVICE_INFO_PARENT_DEVICE: { if (*params->ppPropValue) *static_cast(*params->ppPropValue) = nullptr;