-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Nahuel Espinosa <nespinosa@ekumenlabs.com>
- Loading branch information
1 parent
ae824d8
commit 861d977
Showing
22 changed files
with
403 additions
and
162 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# ----------------------------- | ||
# Options affecting formatting. | ||
# ----------------------------- | ||
with section("format"): | ||
# Force vertical layout if an argument group contains more than this many sub-groups. | ||
max_subgroups_hwrap = 2 | ||
# Force vertical layout if a positional argument group contains more than this many arguments. | ||
max_pargs_hwrap = 3 | ||
|
||
# ------------------------------------------------ | ||
# Options affecting comment reflow and formatting. | ||
# ------------------------------------------------ | ||
with section("markup"): | ||
# Disable comment markup parsing and reflow. | ||
enable_markup = False |
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
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,23 +1,39 @@ | ||
# Copyright 2023 Ekumen, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
option(BELUGA_RUN_PERFORMANCE_TESTS | ||
"Enable performance tests instead of unconditionally skipping them" OFF) | ||
"Enable performance tests instead of unconditionally skipping them" OFF) | ||
|
||
add_executable(benchmark_beluga | ||
add_executable( | ||
benchmark_beluga | ||
benchmark_likelihood_field_model.cpp | ||
benchmark_raycasting.cpp | ||
benchmark_sampling.cpp | ||
benchmark_spatial_hash.cpp | ||
benchmark_tuple_vector.cpp | ||
benchmark_main.cpp) | ||
target_include_directories(benchmark_beluga PRIVATE ../beluga/include) | ||
target_link_libraries(benchmark_beluga | ||
target_link_libraries( | ||
benchmark_beluga | ||
PUBLIC benchmark::benchmark | ||
PRIVATE ${PROJECT_NAME} beluga_compile_options) | ||
set(TEST_RESULTS_DIR "${CMAKE_BINARY_DIR}/test_results/${PROJECT_NAME}") | ||
file(MAKE_DIRECTORY ${TEST_RESULTS_DIR}) | ||
|
||
set(benchmark_out "${TEST_RESULTS_DIR}/benchmark_beluga.google_benchmark.json") | ||
set(BENCHMARK_OUT "${TEST_RESULTS_DIR}/benchmark_beluga.google_benchmark.json") | ||
if(BELUGA_RUN_PERFORMANCE_TESTS) | ||
add_test( | ||
NAME benchmark_beluga | ||
COMMAND benchmark_beluga "--benchmark_out_format=json" "--benchmark_out=${benchmark_out}") | ||
add_test(NAME benchmark_beluga | ||
COMMAND benchmark_beluga "--benchmark_out_format=json" | ||
"--benchmark_out=${BENCHMARK_OUT}") | ||
endif() |
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
Oops, something went wrong.