DASH  0.3.0
dart_initialization.h
Go to the documentation of this file.
1 #ifndef DART_INITIALIZATION_H_INCLUDED
2 #define DART_INITIALIZATION_H_INCLUDED
3 
4 #include <stdbool.h>
6 #include <dash/dart/if/dart_util.h>
7 
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23 
25 #define DART_INTERFACE_ON
26 
39 dart_ret_t dart_init(int *argc, char ***argv) DART_NOTHROW;
40 
55  int* argc,
56  char*** argv,
57  dart_thread_support_level_t * thread_safety) DART_NOTHROW;
58 
67 dart_ret_t dart_exit() DART_NOTHROW;
68 
78 bool dart_initialized() DART_NOTHROW;
79 
80 
90 void dart_abort(int errorcode) __attribute__((noreturn));
91 
93 #define DART_INTERFACE_OFF
94 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif /* DART_INITIALIZATION_H_INCLUDED */
dart_ret_t dart_exit()
Finalize the DASH runtime.
dart_thread_support_level_t
Levels of thread-support offered by DART.
Definition: dart_types.h:269
bool dart_initialized()
Whether the DASH runtime has been initialized.
static __attribute__((unused)) dart_ret_t dart_gptr_incaddr(dart_gptr_t *gptr
Add &#39;offs&#39; to the address specified by the global pointer.
dart_ret_t dart_init(int *argc, char ***argv)
Initialize the DART runtime.
dart_ret_t
Return values of functions in the DART interface.
Definition: dart_types.h:30
dart_ret_t dart_init_thread(int *argc, char ***argv, dart_thread_support_level_t *thread_safety)
Initialize the DART runtime with support for thread-based concurrency.
void dart_abort(int errorcode) __attribute__((noreturn))
Abort the application run without performing any cleanup.