Skip to content

Commit

Permalink
#78: handle case where selected_phase is not given
Browse files Browse the repository at this point in the history
  • Loading branch information
cwschilly authored and lifflander committed Jun 25, 2024
1 parent 83e59bb commit 0dbcec4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vt-tv/render/render.cc
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ Render::Render(Info in_info)
, n_ranks_(in_info.getNumRanks())
, n_phases_(in_info.getNumPhases())
{
// Generically set rank grid dimensions according to the total number of ranks
// If selected_phase is not provided, use all phases
selected_phase_ = std::numeric_limits<PhaseType>::max();

// Generically set rank grid dimensions according to the total number of ranks
grid_size_[2] = 1; // we assume 2D representation

int sqrt_n_ranks = std::sqrt(n_ranks_);
Expand Down

0 comments on commit 0dbcec4

Please sign in to comment.