Go to the documentation of this file.
35 inline int my_node() {
return CkMyNode(); }
50 static_cast<void>(node_index);
51 return CkNodeSize(node_index);
66 static_cast<void>(node_index);
67 return CkNodeFirst(node_index);
74 inline int node_of(
const int proc_index) {
75 static_cast<void>(proc_index);
76 return CkNodeOf(proc_index);
84 static_cast<void>(proc_index);
85 return CkRankOf(proc_index);
92 inline double wall_time() {
return CmiWallTimer(); }
int procs_on_node(const int node_index)
Number of processing elements on the given node.
Definition: ParallelInfo.hpp:41
int number_of_nodes()
Number of nodes.
Definition: ParallelInfo.hpp:29
int my_node()
Index of my node.
Definition: ParallelInfo.hpp:35
int first_proc_on_node(const int node_index)
Index of first processing element on the given node.
Definition: ParallelInfo.hpp:65
int my_local_rank()
The local index of my processing element on my node. This is in the interval 0, .....
Definition: ParallelInfo.hpp:59
int local_rank_of(const int proc_index)
The local index for the given processing element on its node.
Definition: ParallelInfo.hpp:83
double wall_time()
The current wall time in seconds.
Definition: ParallelInfo.hpp:92
int node_of(const int proc_index)
Index of the node for the given processing element.
Definition: ParallelInfo.hpp:74
int number_of_procs()
Number of processing elements.
Definition: ParallelInfo.hpp:17
int my_proc()
Index of my processing element.
Definition: ParallelInfo.hpp:23