mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-13 17:48:34 +05:00
multithreaded mpi
This commit is contained in:
parent
95726ff4a1
commit
b00666b2da
@ -63,7 +63,10 @@ int main(int argc, char ** argv)
|
|||||||
{
|
{
|
||||||
|
|
||||||
#ifdef PARALLEL
|
#ifdef PARALLEL
|
||||||
MPI_Init(&argc, &argv);
|
int required = MPI_THREAD_MULTIPLE;
|
||||||
|
int provided;
|
||||||
|
MPI_Init_thread(&argc, &argv, required, &provided);
|
||||||
|
cout << "requ = " << required << ", provided = " << provided << endl;
|
||||||
MPI_Comm_size(MPI_COMM_WORLD, &netgen::ntasks);
|
MPI_Comm_size(MPI_COMM_WORLD, &netgen::ntasks);
|
||||||
MPI_Comm_rank(MPI_COMM_WORLD, &netgen::id);
|
MPI_Comm_rank(MPI_COMM_WORLD, &netgen::id);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user