Skip to content

Commit 502089f

Browse files
author
Mark
committed
float conversion fixes
1 parent bf73456 commit 502089f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

core/include/traccc/gbts_seeding/gbts_seeding_config.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ struct gbts_consts {
4848
static constexpr unsigned short max_cca_iter = 15;
4949
// shared memory allocation sizes
5050
static constexpr unsigned short node_buffer_length = 128;
51-
static constexpr unsigned short live_path_buffer = 1048;
51+
static constexpr unsigned short live_path_buffer = 1024;
5252

5353
// access into output graph
5454
static constexpr char node1 = 0;
@@ -118,7 +118,7 @@ struct gbts_seed_extraction_params {
118118
// max qual = add_hit*max_length*qual_scale
119119
float qual_scale =
120120
0.01 * static_cast<float>(INT_MAX) /
121-
static_cast<float>(add_hit * traccc::device::gbts_consts::max_cca_iter);
121+
(add_hit * static_cast<float>(traccc::device::gbts_consts::max_cca_iter));
122122

123123
float inv_max_curvature = 900.0f;
124124
float max_z0 = 160.0f;

device/cuda/src/gbts_seeding/kernels/GbtsGraphProcessingKernels.cuh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,8 +605,13 @@ fit_segments(float4* d_sp_params, int* d_output_graph, int2* d_path_store,
605605
if (length < minLevel) {
606606
return;
607607
}
608-
int qual = static_cast<int>(1e5 * state1.m_J);
609-
608+
int qual = 0;
609+
if(toggle) {
610+
qual = static_cast<int>(seed_extraction_params.qual_scale * state2.m_J);
611+
}
612+
else {
613+
qual = static_cast<int>(seed_extraction_params.qual_scale * state1.m_J);
614+
}
610615
int prop_idx = atomicAdd(&d_counters[8], 1);
611616
// perform first round of bidding for disambiguation
612617
// only on the outermost edge

0 commit comments

Comments
 (0)