DASH  0.3.0
DASH Library Runtime Interface

Functions controlling the initialization and finalization of the DASH library. More...

Functions

void dash::init (int *argc, char ***argv)
 Initialize the DASH library and the underlying runtime system. More...
 
void dash::finalize ()
 Finalize the DASH library and the underlying runtime system. More...
 
bool dash::is_initialized ()
 Check whether DASH has been initialized already. More...
 
bool dash::is_multithreaded ()
 Check whether DASH has been initialized with support for multi-threaded access. More...
 
global_unit_t dash::myid ()
 Shortcut to query the global unit ID of the calling unit. More...
 
size_t dash::size ()
 Return the number of units in the global team. More...
 
void dash::barrier ()
 A global barrier involving all units. More...
 
void dash::abort ()
 Immediately abort the application run. More...
 
void dash::abort (int errorcode)
 Immediately abort the application run with the return value errorcode. More...
 

Detailed Description

Functions controlling the initialization and finalization of the DASH library.

The library has to be initialized using dash::init before any other DASH functionality can be used and should be finalized using dash::finalize before program exit.

Function Documentation

◆ abort() [1/2]

void dash::abort ( )

#include </tmp/tmporruphar/dash/include/dash/Init.h>

Immediately abort the application run.

See also
dash::finalize

◆ abort() [2/2]

void dash::abort ( int  errorcode)

#include </tmp/tmporruphar/dash/include/dash/Init.h>

Immediately abort the application run with the return value errorcode.

See also
dash::finalize

◆ barrier()

◆ finalize()

◆ init()

void dash::init ( int *  argc,
char ***  argv 
)

◆ is_initialized()

bool dash::is_initialized ( )

#include </tmp/tmporruphar/dash/include/dash/Init.h>

Check whether DASH has been initialized already.

Returns
True if DASH has been initialized successfully. False if DASH is not initialized properly or has been finalized.

Referenced by dash::List< ElementType, LocalMemorySpace >::allocate(), dash::Array< signal_t >::allocate(), dash::Coarray< T, IndexType, Arrangement, LocalMemSpaceT >::Coarray(), dash::Coevent::Coevent(), dash::Comutex::Comutex(), dash::List< ElementType, LocalMemorySpace >::deallocate(), dash::Shared< ElementType >::init(), and dash::Shared< ElementType >::Shared().

◆ is_multithreaded()

bool dash::is_multithreaded ( )

#include </tmp/tmporruphar/dash/include/dash/Init.h>

Check whether DASH has been initialized with support for multi-threaded access.

Returns
True if DASH and the underlying runtime has been compiled with support for thread-concurrent access. False otherwise.

Referenced by dash::io::hdf5::InputStream::InputStream().

◆ myid()

◆ size()