Skip to main content

getNumRanks

RankInfo getNumRanks() const;

Returns a RankInfo object containing the number of ranks and threads in the simulation.

Parameters

  • returns The number of ranks and threads in the simulation

Example

Output sim_output = getSimulationOutput();
RankInfo num = getNumRanks();

sim_output.output("This simulation has %u ranks and %u threads on each rank\n", num.rank, num.thread);
#include <sst/core/realtimeAction.h>