Skip to content
Snippets Groups Projects
Commit 2c679a8d authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added comments documenting the MPI_THREAD_* constants

parent 7b1b00fd
No related branches found
No related tags found
1 merge request!87NDArray refactoring
...@@ -66,10 +66,10 @@ inline void Init( int& argc, char**& argv, int required_thread_level = MPI_THREA ...@@ -66,10 +66,10 @@ inline void Init( int& argc, char**& argv, int required_thread_level = MPI_THREA
{ {
#ifdef HAVE_MPI #ifdef HAVE_MPI
switch( required_thread_level ) { switch( required_thread_level ) {
case MPI_THREAD_SINGLE: case MPI_THREAD_SINGLE: // application is single-threaded
case MPI_THREAD_FUNNELED: case MPI_THREAD_FUNNELED: // application is multithreaded, but all MPI calls will be issued from the master thread only
case MPI_THREAD_SERIALIZED: case MPI_THREAD_SERIALIZED: // application is multithreaded and any thread may issue MPI calls, but different threads will never issue MPI calls at the same time
case MPI_THREAD_MULTIPLE: case MPI_THREAD_MULTIPLE: // application is multithreaded and any thread may issue MPI calls at any time
break; break;
default: default:
std::cerr << "ERROR: invalid argument for the 'required' thread level support: " << required_thread_level << std::endl; std::cerr << "ERROR: invalid argument for the 'required' thread level support: " << required_thread_level << std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment