File tree 5 files changed +29
-12
lines changed
core/include/traccc/utils
include/traccc/resolution
5 files changed +29
-12
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ concurrency:
17
17
cancel-in-progress : true
18
18
19
19
jobs :
20
- builds :
20
+ containers :
21
21
name : ${{ matrix.platform.name }}-${{ matrix.build }}
22
22
runs-on : ubuntu-latest
23
23
container : ${{ matrix.platform.container }}
@@ -117,3 +117,19 @@ jobs:
117
117
if : " matrix.platform.name == 'CUDA' && matrix.build == 'Debug'"
118
118
continue-on-error : true
119
119
run : ${GITHUB_WORKSPACE}/.github/find_f64_ptx.py --source ${GITHUB_WORKSPACE} --build build $(find build -name "*.ptx")
120
+
121
+ macos :
122
+ runs-on : macos-14
123
+ name : macOS-Release
124
+ steps :
125
+ - uses : actions/checkout@v4
126
+ - name : Install dependencies
127
+ run : brew install boost
128
+ - name : Configure
129
+ run : cmake --preset base -S ${GITHUB_WORKSPACE} -B build
130
+ - name : Build
131
+ run : cmake --build build
132
+ - name : Download data files
133
+ run : ${GITHUB_WORKSPACE}/data/traccc_data_get_files.sh
134
+ - name : Test
135
+ run : ctest --test-dir build --output-on-failure
Original file line number Diff line number Diff line change 8
8
include ( traccc-compiler-options -cpp )
9
9
10
10
# Set up a common library, shared by all of the tests.
11
- add_library ( traccc_benchmarks_common STATIC
11
+ add_library ( traccc_benchmarks_common INTERFACE
12
12
"common/benchmarks/toy_detector_benchmark.hpp" )
13
13
target_include_directories ( traccc_benchmarks_common
14
- PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} /common )
14
+ INTERFACE ${CMAKE_CURRENT_SOURCE_DIR} /common )
15
15
target_link_libraries ( traccc_benchmarks_common
16
- PUBLIC benchmark::benchmark benchmark::benchmark_main
17
- traccc::core traccc::io traccc::simulation detray::core detray::test_utils
16
+ INTERFACE benchmark::benchmark benchmark::benchmark_main
17
+ traccc::core traccc::io traccc::simulation detray::core detray::test_utils
18
18
vecmem::core Boost::filesystem)
19
19
20
20
add_subdirectory (cpu)
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ struct seed_generator {
41
41
const std::array<scalar, e_bound_size>& stddevs,
42
42
const std::size_t sd = 0 )
43
43
: m_detector(det), m_stddevs(stddevs) {
44
- generator .seed (sd );
44
+ m_generator .seed (static_cast <std::mt19937::result_type>(sd) );
45
45
}
46
46
47
47
// / Seed generator operation
@@ -80,7 +80,7 @@ struct seed_generator {
80
80
for (std::size_t i = 0 ; i < e_bound_size; i++) {
81
81
82
82
bound_param[i] = std::normal_distribution<scalar>(
83
- bound_param[i], m_stddevs[i])(generator );
83
+ bound_param[i], m_stddevs[i])(m_generator );
84
84
85
85
matrix_operator ().element (bound_param.covariance (), i, i) =
86
86
m_stddevs[i] * m_stddevs[i];
@@ -91,8 +91,8 @@ struct seed_generator {
91
91
92
92
private:
93
93
// Random generator
94
- std::random_device rd {};
95
- std::mt19937 generator{ rd ()};
94
+ std::random_device m_rd {};
95
+ std::mt19937 m_generator{ m_rd ()};
96
96
97
97
// Detector object
98
98
const detector_t & m_detector;
Original file line number Diff line number Diff line change 1
1
/* * TRACCC library, part of the ACTS project (R&D line)
2
2
*
3
- * (c) 2022 CERN for the benefit of the ACTS project
3
+ * (c) 2022-2024 CERN for the benefit of the ACTS project
4
4
*
5
5
* Mozilla Public License Version 2.0
6
6
*/
@@ -75,7 +75,7 @@ class fitting_performance_writer {
75
75
76
76
// Find the contributing particle
77
77
// @todo: Use identify_contributing_particles function
78
- std::map<particle, uint64_t > contributing_particles =
78
+ std::map<particle, std:: size_t > contributing_particles =
79
79
meas_to_ptc_map[meas];
80
80
81
81
const particle ptc = contributing_particles.begin ()->first ;
Original file line number Diff line number Diff line change 1
1
/* * TRACCC library, part of the ACTS project (R&D line)
2
2
*
3
- * (c) 2022 CERN for the benefit of the ACTS project
3
+ * (c) 2022-2024 CERN for the benefit of the ACTS project
4
4
*
5
5
* Mozilla Public License Version 2.0
6
6
*/
10
10
11
11
// System include(s).
12
12
#include < cmath>
13
+ #include < numbers>
13
14
14
15
namespace {
15
16
You can’t perform that action at this time.
0 commit comments