Skip to content

Commit 834d941

Browse files
committed
Remove wait() in syclcompat::free for USM case
Not sure why this was needed.
1 parent 7b88d79 commit 834d941

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

sycl/include/syclcompat/memory.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,9 +1016,6 @@ namespace {
10161016
/// \param ptr Point to free.
10171017
/// \returns no return value.
10181018
static inline void free(void *ptr, sycl::queue q = get_default_queue()) {
1019-
#ifndef SYCLCOMPAT_USM_LEVEL_NONE
1020-
get_device(get_device_id(q.get_device())).queues_wait_and_throw();
1021-
#endif
10221019
detail::free(ptr, q);
10231020
}
10241021
} // namespace

0 commit comments

Comments
 (0)