Skip to content

Commit

Permalink
Rename BUILD_BENCHMARKING flag to BUILD_BENCHMARKS (SleipnirGroup#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Jan 19, 2025
1 parent 8c988c2 commit bddd64d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ option(BUILD_SHARED_LIBS "Build using shared libraries" ON)

set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS FALSE)

option(BUILD_BENCHMARKING "Build CasADi and Sleipnir benchmarks" OFF)
option(BUILD_BENCHMARKS "Build CasADi and Sleipnir benchmarks" OFF)
option(BUILD_EXAMPLES "Build examples" OFF)
option(BUILD_PYTHON "Build Python module" OFF)
option(DISABLE_DIAGNOSTICS "Disable diagnostics support at compile-time" OFF)
Expand Down Expand Up @@ -177,7 +177,7 @@ install(
)

# Add benchmark executables
if(BUILD_BENCHMARKING)
if(BUILD_BENCHMARKS)
# Perf benchmark
foreach(benchmark "CartPole" "Flywheel")
file(
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ Some test problems generate CSV files containing their solutions. These can be p
Benchmark projects are in the [benchmarks folder](https://github.com/SleipnirGroup/Sleipnir/tree/main/benchmarks). To compile and run them, run the following in the repository root:
```bash
# Install CasADi and [matplotlib, numpy, scipy] pip packages first
cmake -B build -S . -DBUILD_BENCHMARKING=ON
cmake -B build -S . -DBUILD_BENCHMARKS=ON
cmake --build build
./tools/generate-scalability-results.sh
```
Expand Down
2 changes: 1 addition & 1 deletion tools/perf-benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ $# -ne 1 ]] || [[ "$1" != "CartPole" && "$1" != "Flywheel" ]]; then
exit 1
fi

cmake -B build-perf -S . -DCMAKE_BUILD_TYPE=Perf -DBUILD_BENCHMARKING=ON
cmake -B build-perf -S . -DCMAKE_BUILD_TYPE=Perf -DBUILD_BENCHMARKS=ON
cmake --build build-perf --target $1PerfBenchmark
./tools/perf-record.sh ./build-perf/$1PerfBenchmark
./tools/perf-report.sh

0 comments on commit bddd64d

Please sign in to comment.