Skip to content

Commit

Permalink
#5: Rebased on develop and added kernels print_configuration call
Browse files Browse the repository at this point in the history
  • Loading branch information
meriadeg perrinel authored and cz4rs committed Mar 9, 2023
1 parent 8be3032 commit 3ec0cb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions perf_test/Benchmark_Context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#ifndef KOKKOSKERNELS_PERFTEST_BENCHMARK_CONTEXT_HPP
#define KOKKOSKERNELS_PERFTEST_BENCHMARK_CONTEXT_HPP

#include "KokkosKernels_PrintConfiguration.hpp"

#include <string>

#include <benchmark/benchmark.h>
Expand Down Expand Up @@ -46,6 +48,7 @@ std::string remove_unwanted_characters(std::string str) {
void add_kokkos_configuration(bool verbose) {
std::ostringstream msg;
Kokkos::print_configuration(msg, verbose);
KokkosKernels::print_configuration(msg);

// Iterate over lines returned from kokkos and extract key:value pairs
std::stringstream ss{msg.str()};
Expand Down

0 comments on commit 3ec0cb7

Please sign in to comment.