diff --git a/sycl/source/detail/physical_mem_impl.hpp b/sycl/source/detail/physical_mem_impl.hpp index 7c926d2634928..3bc4d6865187c 100644 --- a/sycl/source/detail/physical_mem_impl.hpp +++ b/sycl/source/detail/physical_mem_impl.hpp @@ -48,7 +48,8 @@ class physical_mem_impl { &MPhysicalMem); if (Err == UR_RESULT_ERROR_OUT_OF_RESOURCES || - Err == UR_RESULT_ERROR_OUT_OF_HOST_MEMORY) + Err == UR_RESULT_ERROR_OUT_OF_HOST_MEMORY || + Err == UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY) throw sycl::exception(make_error_code(errc::memory_allocation), "Failed to allocate physical memory."); Adapter.checkUrResult(Err);