Itoyori  v0.0.1
ityr.hpp File Reference
Include dependency graph for ityr.hpp:

Go to the source code of this file.

Namespaces

 ityr
 

Typedefs

using ityr::rank_t = common::topology::rank_t
 Process rank (ID) starting from 0 (corresponding to an MPI rank). More...
 
using ityr::wallclock_t = common::wallclock::wallclock_t
 Wallclock time in nanoseconds. More...
 

Functions

void ityr::init (MPI_Comm comm=MPI_COMM_WORLD)
 Initialize Itoyori (collective). More...
 
void ityr::fini ()
 Finalize Itoyori (collective). More...
 
rank_t ityr::my_rank ()
 Return the rank of the process running the current thread. More...
 
rank_t ityr::n_ranks ()
 Return the total number of processes. More...
 
bool ityr::is_master ()
 Return true if ityr::my_rank() == 0. More...
 
bool ityr::is_root ()
 Return true if the current thread is the root thread. More...
 
void ityr::migrate_to (rank_t target_rank)
 Migrate the current thread to target_rank. For the root thread only. More...
 
void ityr::migrate_to_master ()
 Migrate the current thread to the master worker (of rank 0). More...
 
bool ityr::is_spmd ()
 Return true if the current execution context is within the SPMD region. More...
 
void ityr::barrier ()
 Barrier for all processes (collective). More...
 
wallclock_t ityr::gettime_ns ()
 Return the current wallclock time in nanoseconds. More...
 
void ityr::profiler_begin ()
 Start the profiler (collective). More...
 
void ityr::profiler_end ()
 Stop the profiler (collective). More...
 
void ityr::profiler_flush ()
 Print the profiled results to stdout (collective). More...
 
void ityr::print_compile_options ()
 Print the compile-time options to stdout. More...
 
void ityr::print_runtime_options ()
 Print the runtime options to stdout. More...