Skip to content
Merged
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/detail/group_sort_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ uint32_t getBucketValue(ValT value, uint32_t radix_iter) {
}
template <typename ValT> ValT getDefaultValue(bool is_comp_asc) {
if (is_comp_asc)
return std::numeric_limits<ValT>::max();
return (std::numeric_limits<ValT>::max)();
else
return std::numeric_limits<ValT>::lowest();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class radix_sorter {
radix_sorter(sycl::span<std::byte, Extent> scratch_,
const std::bitset<sizeof(ValT) *CHAR_BIT> mask =
std::bitset<sizeof(ValT) * CHAR_BIT>(
std::numeric_limits<unsigned long long>::max()))
(std::numeric_limits<unsigned long long>::max)()))
: scratch(scratch_.data()), scratch_size(scratch_.size()) {
static_assert((std::is_arithmetic<ValT>::value ||
std::is_same<ValT, sycl::half>::value ||
Expand Down Expand Up @@ -187,8 +187,8 @@ class radix_sorter {
sycl::range<dimensions> local_range) {
// Scope is not important so far
(void)scope;
return std::max(local_range.size() * sizeof(ValT),
local_range.size() * (1 << bits) * sizeof(uint32_t));
return (std::max)(local_range.size() * sizeof(ValT),
local_range.size() * (1 << bits) * sizeof(uint32_t));
}
};

Expand Down