Skip to content

Commit 5ce1a1a

Browse files
author
Mark Brettell
committed
update GBTS not implemented logging
1 parent d5a0e0e commit 5ce1a1a

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

examples/run/alpaka/full_chain_algorithm.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ full_chain_algorithm::full_chain_algorithm(
7979
usingGBTS(useGBTS) {
8080

8181
if (usingGBTS) {
82-
std::cout << "ERROR: GBTS not implemented for alpaka, this will run "
83-
"with default seeding"
84-
<< std::endl;
82+
TRACCC_LOCAL_LOGGER(std::move(log));
83+
TRACCC_ERROR("GBTS not implemented for alpaka, this will run with "
84+
"triplet seeding");
8585
}
8686
std::cout << traccc::alpaka::get_device_info() << std::endl;
8787

examples/run/cpu/full_chain_algorithm.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ full_chain_algorithm::full_chain_algorithm(
4848
usingGBTS(useGBTS) {
4949

5050
if (usingGBTS) {
51-
std::cout << "ERROR: GBTS not implemented for cpu, this will run with "
52-
"default seeding"
53-
<< std::endl;
51+
TRACCC_LOCAL_LOGGER(std::move(logger));
52+
TRACCC_ERROR("GBTS not implemented for CPU, this will run with "
53+
"triplet seeding");
5454
}
5555
}
5656

examples/run/cuda/full_chain_algorithm.cpp

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,8 @@ full_chain_algorithm::output_type full_chain_algorithm::operator()(
190190
// Run the seed-finding (asynchronously).
191191
const spacepoint_formation_algorithm::output_type spacepoints =
192192
m_spacepoint_formation(m_device_detector, measurements);
193-
194-
seeding_algorithm::output_type seeds;
195193

194+
triplet_seeding_algorithm::output_type seeds;
196195
if(usingGBTS) {
197196
seeds = m_gbts_seeding(spacepoints, measurements);
198197
}
@@ -252,15 +251,15 @@ bound_track_parameters_collection_types::host full_chain_algorithm::seeding(
252251
const spacepoint_formation_algorithm::output_type spacepoints =
253252
m_spacepoint_formation(m_device_detector, measurements);
254253

255-
seeding_algorithm::output_type seeds;
256-
if (usingGBTS) {
257-
seeds = m_gbts_seeding(spacepoints, measurements);
258-
} else {
259-
seeds = m_seeding(spacepoints);
260-
}
261-
const seed_parameter_estimation_algorithm::output_type track_params =
262-
m_track_parameter_estimation(m_field, measurements, spacepoints,
263-
seeds);
254+
triplet_seeding_algorithm::output_type seeds;
255+
if (usingGBTS) {
256+
seeds = m_gbts_seeding(spacepoints, measurements);
257+
} else {
258+
seeds = m_seeding(spacepoints);
259+
}
260+
const seed_parameter_estimation_algorithm::output_type track_params =
261+
m_track_parameter_estimation(m_field, measurements, spacepoints,
262+
seeds);
264263

265264
// Copy a limited amount of result data back to the host.
266265
const auto host_seeds = m_copy.to(track_params, m_cached_pinned_host_mr,

examples/run/sycl/full_chain_algorithm.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ full_chain_algorithm::full_chain_algorithm(
9999
usingGBTS(useGBTS) {
100100

101101
if (usingGBTS) {
102-
std::cout << "ERROR: GBTS not implemented for sycl, this will run with "
103-
"default seeding"
104-
<< std::endl;
102+
//TRACCC_LOCAL_LOGGER(std::move(log));
103+
TRACCC_ERROR("GBTS not implemented for sycl, this will run with "
104+
"triplet seeding");
105105
}
106106
// Tell the user what device is being used.
107107
TRACCC_INFO("Using SYCL device: " << m_data->m_queue.device_name());

0 commit comments

Comments
 (0)