Skip to content

Commit

Permalink
Using 'zero()' instead of '0.'
Browse files Browse the repository at this point in the history
  • Loading branch information
eeprude committed Mar 19, 2024
1 parent 2de4d0a commit 32a9874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perf_test/blas/blas2/KokkosBlas2_ger_perf_test_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static void KokkosBlas2_GER(benchmark::State& state) {
const auto m = state.range(1);
const auto n = state.range(2);
const auto yIsTranspose = state.range(3);
tScalar a(0.);
tScalar a(Kokkos::ArithTraits<tScalar>::zero());

if (verbosity > 0) {
std::cout << "Entering KokkosBlas2_GER()"
Expand All @@ -148,7 +148,7 @@ static void KokkosBlas2_GER(benchmark::State& state) {
char yMode('t');
if (!yIsTranspose) yMode = 'H';

tScalar rangeValue(0.);
tScalar rangeValue(Kokkos::ArithTraits<tScalar>::zero());
if constexpr (Kokkos::ArithTraits<tScalar>::isOrdinal) {
rangeValue = 10;
a = 3;
Expand Down

0 comments on commit 32a9874

Please sign in to comment.