Cycles: oneAPI: fix check_usm for debug builds

This commit is contained in:
Xavier Hallade 2022-10-17 10:15:57 +02:00
parent 5d67fb0f18
commit d816bae7bf
1 changed files with 2 additions and 1 deletions

View File

@ -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_;