Skip to content

Commit e89017a

Browse files
authored
Merge pull request #482 from krasznaa/BugFixes-main-20231106
Bug Fixes, main branch (2023.11.06.)
2 parents a960090 + e6259a9 commit e89017a

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/builds.yml

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- name: CPU
2828
container: ghcr.io/acts-project/ubuntu2004:v30
2929
options:
30+
- name: CPU
31+
container: ghcr.io/acts-project/ubuntu2004:v30
32+
options: -DTRACCC_USE_ROOT=FALSE
3033
- name: CUDA
3134
container: ghcr.io/acts-project/ubuntu2004_cuda:v30
3235
options: -DTRACCC_BUILD_CUDA=TRUE

extern/algebra-plugins/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ message( STATUS "Building Algebra Plugins as part of the TRACCC project" )
1818

1919
# Declare where to get Algebra Plugins from.
2020
set( TRACCC_ALGEBRA_PLUGINS_SOURCE
21-
"URL;https://github.com/acts-project/algebra-plugins/archive/refs/tags/v0.19.0.tar.gz;URL_MD5;8357b024b1bcdb70350d8a378055cfee"
21+
"URL;https://github.com/acts-project/algebra-plugins/archive/refs/tags/v0.19.0.tar.gz;URL_MD5;8357b024b1bcdb70350d8a378055cfee"
2222
CACHE STRING "Source for Algebra Plugins, when built as part of this project" )
2323

2424
mark_as_advanced( TRACCC_ALGEBRA_PLUGINS_SOURCE )
@@ -44,6 +44,8 @@ set( ALGEBRA_PLUGINS_SETUP_VECMEM FALSE CACHE BOOL
4444
"Do not set up VecMem in Algebra Plugins" )
4545
set( ALGEBRA_PLUGINS_SETUP_GOOGLETEST FALSE CACHE BOOL
4646
"Do not set up GoogleTest in Algebra Plugins" )
47+
set( ALGEBRA_PLUGINS_SETUP_BENCHMARK FALSE CACHE BOOL
48+
"Do not set up GoogleTest in Algebra Plugins" )
4749

4850
# Get it into the current directory.
4951
FetchContent_MakeAvailable( AlgebraPlugins )

performance/src/resolution/res_plot_tool.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ void res_plot_tool::fill(res_plot_cache& cache,
103103

104104
// Avoid unused variable warnings when building the code without ROOT.
105105
(void)cache;
106+
(void)eta;
107+
(void)pT;
106108

107109
for (std::size_t idx = 0; idx < m_cfg.param_names.size(); idx++) {
108110
std::string par_name = m_cfg.param_names.at(idx);
@@ -129,14 +131,14 @@ void res_plot_tool::fill(res_plot_cache& cache,
129131
(void)residual;
130132
(void)pull;
131133

134+
#ifdef TRACCC_HAVE_ROOT
132135
const auto eta_idx =
133136
std::min(cache.resolutions_eta[par_name]->FindBin(eta) - 1,
134137
cache.resolutions_eta[par_name]->GetNbinsX() - 1);
135138
const auto pT_idx =
136139
std::min(cache.resolutions_pT[par_name]->FindBin(pT) - 1,
137140
cache.resolutions_pT[par_name]->GetNbinsX() - 1);
138141

139-
#ifdef TRACCC_HAVE_ROOT
140142
cache.residuals.at(par_name)->Fill(residual);
141143
cache.pulls.at(par_name)->Fill(pull);
142144
cache.residuals_eta.at(par_name)->Fill(eta, residual);

simulation/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
# Mozilla Public License Version 2.0
66

77
# Set up the "build" of the traccc::io library.
8-
traccc_add_library( traccc_simulation simulation
8+
traccc_add_library( traccc_simulation simulation TYPE INTERFACE
99
# Public headers
1010
"include/traccc/simulation/measurement_smearer.hpp"
1111
"include/traccc/simulation/simulator.hpp"
1212
"include/traccc/simulation/smearing_writer.hpp" )
1313
target_link_libraries( traccc_simulation
14-
PUBLIC traccc::core traccc::io detray::core detray::utils
15-
PRIVATE dfelibs::dfelibs )
14+
INTERFACE traccc::core traccc::io detray::core detray::utils
15+
dfelibs::dfelibs )

0 commit comments

Comments
 (0)