diff options
author | Xavier Hallade <xavier.hallade@intel.com> | 2022-10-17 11:15:57 +0300 |
---|---|---|
committer | Xavier Hallade <xavier.hallade@intel.com> | 2022-10-19 17:42:10 +0300 |
commit | d816bae7bf38069ab3f6ad9043fde0294af79c82 (patch) | |
tree | a37f21b22ba6d38bb53064e17f4abe3e5a5ee985 /intern/cycles | |
parent | 5d67fb0f18291d3aa6ee2bde0972cf90881f187c (diff) |
Cycles: oneAPI: fix check_usm for debug builds
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/device/oneapi/device_impl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/cycles/device/oneapi/device_impl.cpp b/intern/cycles/device/oneapi/device_impl.cpp index 91f53fd1eae..f14eada071d 100644 --- a/intern/cycles/device/oneapi/device_impl.cpp +++ b/intern/cycles/device/oneapi/device_impl.cpp @@ -432,7 +432,8 @@ void OneapiDevice::check_usm(SyclQueue *queue_, const void *usm_ptr, bool allow_ assert(usm_type == sycl::usm::alloc::device || ((device_type == sycl::info::device_type::host || device_type == sycl::info::device_type::cpu || allow_host) && - usm_type == sycl::usm::alloc::host)); + usm_type == sycl::usm::alloc::host || + usm_type == sycl::usm::alloc::unknown)); # else /* Silence warning about unused arguments. */ (void)queue_; |