Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sycl/include/sycl/device_event.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class device_event {

device_event(__ocl_event_t Event) : m_Event(Event) {}

void wait() {
void wait() noexcept {
(void)m_Event;
#ifdef __SYCL_DEVICE_ONLY__
__spirv_GroupWaitEvents(__spv::Scope::Workgroup, 1, &m_Event);
Expand Down
1 change: 1 addition & 0 deletions sycl/test/basic_tests/nd_item_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,6 @@ static_assert(noexcept(std::declval<const Item &>().async_work_group_copy(
std::declval<DecoratedGlobalIntPtr>(),
std::declval<DecoratedLocalConstIntPtr>(), std::size_t{})));

static_assert(noexcept(std::declval<sycl::device_event &>().wait()));
static_assert(noexcept(
std::declval<const Item &>().wait_for(std::declval<sycl::device_event>())));
Loading