-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge support for different precisions in benchmark
This PR exports the precision all benchmark code is compiled in into the file `benchmark/utils/types.hpp`. The `etype` defines in which precision the benchmark code is compiled in. All benchmark code is now compiled with the following precisions: - single - double - single complex - double complex Each generating a different binary, allowing the benchmarks to be run for different precisions with the `run_all_benchmarks.sh` script variable `BENCHMARK_PRECISION` or by appending a precision suffix to the benchmark binaries. Related PR: #675
- Loading branch information
Showing
23 changed files
with
302 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
add_executable(conversions conversions.cpp) | ||
target_link_libraries(conversions ginkgo gflags rapidjson) | ||
ginkgo_add_typed_benchmark_executables(conversions "NO" conversions.cpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
add_executable(matrix_generator matrix_generator.cpp) | ||
target_link_libraries(matrix_generator ginkgo gflags rapidjson) | ||
ginkgo_add_typed_benchmark_executables(matrix_generator "NO" matrix_generator.cpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
add_executable(matrix_statistics matrix_statistics.cpp) | ||
target_link_libraries(matrix_statistics ginkgo gflags rapidjson) | ||
ginkgo_add_typed_benchmark_executables(matrix_statistics "NO" matrix_statistics.cpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
add_executable(preconditioner preconditioner.cpp) | ||
target_link_libraries(preconditioner ginkgo gflags rapidjson) | ||
ginkgo_add_typed_benchmark_executables(preconditioner "NO" preconditioner.cpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
add_executable(solver solver.cpp) | ||
target_link_libraries(solver ginkgo gflags rapidjson) | ||
if (GINKGO_BUILD_CUDA) | ||
ginkgo_benchmark_cusp_linops(solver) | ||
endif() | ||
if (GINKGO_BUILD_HIP) | ||
ginkgo_benchmark_hipsp_linops(solver) | ||
endif() | ||
ginkgo_add_typed_benchmark_executables(solver "YES" solver.cpp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1 @@ | ||
add_executable(spmv spmv.cpp) | ||
target_link_libraries(spmv ginkgo gflags rapidjson) | ||
if (GINKGO_BUILD_CUDA) | ||
ginkgo_benchmark_cusp_linops(spmv) | ||
endif() | ||
if (GINKGO_BUILD_HIP) | ||
ginkgo_benchmark_hipsp_linops(spmv) | ||
endif() | ||
ginkgo_add_typed_benchmark_executables(spmv "YES" spmv.cpp) |
Oops, something went wrong.