[Bf-blender-cvs] [b465e0b6b47] cycles_oneapi: Cycles oneAPI: fix oneapi_check_usm debug function
Xavier Hallade
noreply at git.blender.org
Wed Jun 22 18:31:35 CEST 2022
Commit: b465e0b6b475b0ec6d25aed6590b60f8dad2a892
Author: Xavier Hallade
Date: Wed Jun 22 18:29:20 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rBb465e0b6b475b0ec6d25aed6590b60f8dad2a892
Cycles oneAPI: fix oneapi_check_usm debug function
===================================================================
M intern/cycles/kernel/device/oneapi/kernel.cpp
===================================================================
diff --git a/intern/cycles/kernel/device/oneapi/kernel.cpp b/intern/cycles/kernel/device/oneapi/kernel.cpp
index da676ec92b2..64e3e0a5a23 100644
--- a/intern/cycles/kernel/device/oneapi/kernel.cpp
+++ b/intern/cycles/kernel/device/oneapi/kernel.cpp
@@ -40,9 +40,10 @@ void oneapi_check_usm(SyclQueue *queue_, const void *usm_ptr, bool allow_host =
queue->get_device().get_info<sycl::info::device::device_type>();
sycl::usm::alloc usm_type = get_pointer_type(usm_ptr, queue->get_context());
(void)usm_type;
- assert(
- usm_type == sycl::usm::alloc::device ||
- ((device_type == sycl::info::device_type::host || (device_type == sycl::info::device_type::is_cpu || allow_host) && usm_type == sycl::usm::alloc::host));
+ assert(usm_type == sycl::usm::alloc::device ||
+ ((device_type == sycl::info::device_type::host ||
+ device_type == sycl::info::device_type::is_cpu || allow_host) &&
+ usm_type == sycl::usm::alloc::host));
# endif
}
More information about the Bf-blender-cvs
mailing list