Skip to content

Commit

Permalink
Propagate updates from internal branch (388fea1)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonCernWq committed Aug 14, 2023
1 parent 5996a4b commit 6bfe24f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion github-actions
4 changes: 2 additions & 2 deletions ovr/common/vidi_parallel_algorithm.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ template<typename T>
T
findmax(const T* array, size_t size)
{
std::atomic<T> mv(-std::numeric_limits<T>::max());
std::atomic<T> mv(std::numeric_limits<T>::lowest());

tbb::parallel_for((size_t)0, size, [&](const size_t& i) {
T v = array[i];
Expand Down Expand Up @@ -113,7 +113,7 @@ compute_scalar_minmax(const void* _array, size_t count, size_t stride)

T init;

init = std::numeric_limits<T>::min();
init = std::numeric_limits<T>::lowest();
T actual_max = tbb::parallel_reduce(
tbb::blocked_range<size_t>(0, count), init,
[value](const tbb::blocked_range<size_t>& r, T v) -> T {
Expand Down
2 changes: 1 addition & 1 deletion ovr/devices/optix7/array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ compute_scalar_range(const void* _array, size_t count, size_t stride)

T init;

init = std::numeric_limits<T>::min();
init = std::numeric_limits<T>::lowest();
T actual_max = tbb::parallel_reduce(
tbb::blocked_range<size_t>(0, count), init,
[value](const tbb::blocked_range<size_t>& r, T v) -> T {
Expand Down
2 changes: 1 addition & 1 deletion projects/experiment/mini_optix7/volume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ compute_scalar_minmax(void* _array, size_t count, size_t stride)

T init;

init = std::is_signed<T>::value ? -std::numeric_limits<T>::max() : T(0);
init = std::numeric_limits<T>::lowest();
T actual_max = tbb::parallel_reduce(
tbb::blocked_range<size_t>(0, count), init,
[value](const tbb::blocked_range<size_t>& r, T v) -> T {
Expand Down

0 comments on commit 6bfe24f

Please sign in to comment.