diff --git a/README.md b/README.md index 2881004..afd1cbd 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ nuTens uses [Googles benchmark library](https://github.com/google/benchmark) to - [x] Integrate linting ( [cpp-linter](https://github.com/cpp-linter)? ) - [x] Add instrumentation library for benchmarking and profiling - [x] Add suite of benchmarking tests -- [x] Integrate benchmarks into CI ( maybe use [hyperfine](https://github.com/sharkdp/hyperfine) and [bencher](https://bencher.dev/) for this? ) +- [ ] Integrate benchmarks into CI ( maybe use [hyperfine](https://github.com/sharkdp/hyperfine) and [bencher](https://bencher.dev/) for this? ) - [ ] Add proper unit tests - [ ] Expand CI to include more platforms - [ ] Add support for modules (see [PyTorch doc](https://pytorch.org/cppdocs/api/classtorch_1_1nn_1_1_module.html)) diff --git a/benchmarks/CMakeLists.txt b/benchmarks/CMakeLists.txt index a06f500..c690c89 100644 --- a/benchmarks/CMakeLists.txt +++ b/benchmarks/CMakeLists.txt @@ -1,3 +1,3 @@ add_executable(benchmarks benchmarks.cpp) -target_link_libraries(benchmarks benchmark tensor propagator benchmark_main) +target_link_libraries(benchmarks benchmark::benchmark benchmark::benchmark_main tensor propagator ) diff --git a/benchmarks/benchmarks.cpp b/benchmarks/benchmarks.cpp index 22848af..e866ee4 100644 --- a/benchmarks/benchmarks.cpp +++ b/benchmarks/benchmarks.cpp @@ -140,10 +140,10 @@ static void BM_constMatterOscillations(benchmark::State &state) } // Register the function as a benchmark -BENCHMARK(BM_vacuumOscillations)->Args({1 << 10, 1 << 10}); +BENCHMARK(BM_vacuumOscillations)->Name("Vacuul Oscillations")->Args({1 << 10, 1 << 10}); // Register the function as a benchmark -BENCHMARK(BM_constMatterOscillations)->Args({1 << 10, 1 << 10}); +BENCHMARK(BM_constMatterOscillations)->Name("Const Density Oscillations")->Args({1 << 10, 1 << 10}); // Run the benchmark BENCHMARK_MAIN();