Skip to content

Commit

Permalink
Fail fast nolonger incorrectly prints the number of succesful runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robadob committed Jul 24, 2023
1 parent 1860e38 commit 3a1c2ce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/flamegpu/simulation/CUDAEnsemble.cu
Original file line number Diff line number Diff line change
Expand Up @@ -501,12 +501,16 @@ unsigned int CUDAEnsemble::simulate(const RunPlanVector& plans) {
ensemble_elapsed_time = ensemble_timer.getElapsedSeconds();

// Ensemble has finished, print summary
if (config.verbosity > Verbosity::Quiet && (!config.mpi || world_rank == 0)) {
if (config.verbosity > Verbosity::Quiet &&
(!config.mpi || world_rank == 0) &&
(config.error_level != EnsembleConfig::Fast || err_count == 0)) {
printf("\rCUDAEnsemble completed %u runs successfully!\n", static_cast<unsigned int>(plans.size() - err_count));
if (err_count)
printf("There were a total of %u errors.\n", err_count);
}
if (config.timing || config.verbosity >= Verbosity::Verbose && (!config.mpi || world_rank == 0)) {
if (config.verbosity > Verbosity::Quiet &&
(!config.mpi || world_rank == 0) &&
(config.error_level != EnsembleConfig::Fast || err_count == 0)) {
printf("Ensemble time elapsed: %fs\n", ensemble_elapsed_time);
}

Expand Down

0 comments on commit 3a1c2ce

Please sign in to comment.