Skip to content
Merged
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
6 changes: 6 additions & 0 deletions sycl/include/sycl/ext/oneapi/experimental/cuda/barrier.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ class barrier {
#endif
}

// On Windows certain headers define macros min/max
#pragma push_macro("max")
#ifdef max
#undef max
#endif
static constexpr uint64_t max() { return (1 << 20) - 1; }
#pragma pop_macro("max")
};

} // namespace sycl::ext::oneapi::experimental::cuda
Expand Down