Skip to content

Commit

Permalink
Avoid undefined behavior in TestTaskScheduker.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jun 28, 2023
1 parent 70a4a0a commit 9d5759a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/unit_test/TestTaskScheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ struct TestMultipleDependence {
using value_type = int;
KOKKOS_INLINE_FUNCTION
void operator()(typename Scheduler::member_type&, int& result) {
double value = 0;
double value = 1;
// keep this one busy for a while
for (int i = 0; i < 10000; ++i) {
value += i * i / 7.138 / value;
Expand Down

0 comments on commit 9d5759a

Please sign in to comment.