diff --git a/src/cuda/cudapolisher.cpp b/src/cuda/cudapolisher.cpp index abfd0be..d77d56e 100644 --- a/src/cuda/cudapolisher.cpp +++ b/src/cuda/cudapolisher.cpp @@ -104,6 +104,7 @@ void CUDAPolisher::find_overlap_breaking_points(std::vector(RACON_LOGGER_BIN_SIZE)) + else if (log_bar_idx < static_cast(RACON_LOGGER_BIN_SIZE)) { logger_->bar("[racon::CUDAPolisher::initialize] aligning overlaps"); log_bar_idx_prev = log_bar_idx; @@ -277,6 +278,7 @@ void CUDAPolisher::polish(std::vector>& dst, // Variables for keeping track of logger progress bar. uint32_t logger_step = windows_.size() / RACON_LOGGER_BIN_SIZE; + logger_step = std::max(logger_step, (uint32_t)1); int32_t log_bar_idx = 0, log_bar_idx_prev = -1; uint32_t window_idx = 0; std::mutex mutex_log_bar_idx; @@ -315,7 +317,7 @@ void CUDAPolisher::polish(std::vector>& dst, if (log_bar_idx == log_bar_idx_prev) { continue; } - else if (logger_step != 0 && log_bar_idx < static_cast(RACON_LOGGER_BIN_SIZE)) + else if (log_bar_idx < static_cast(RACON_LOGGER_BIN_SIZE)) { while(log_bar_idx_prev <= log_bar_idx) {