-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #637 from abouteiller/bugfix/dtd_destruct_not_syme…
…tric bugfix: dtd taskpool destructor should work symetric to contructor
- Loading branch information
Showing
4 changed files
with
71 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#include "parsec.h" | ||
#include <mpi.h> | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
parsec_context_t* parsec; | ||
int rank = 0, world = 1; | ||
|
||
#if defined(PARSEC_HAVE_MPI) | ||
int provided; | ||
MPI_Init_thread(&argc, &argv, MPI_THREAD_SERIALIZED, &provided); | ||
MPI_Comm_size(MPI_COMM_WORLD, &world); | ||
MPI_Comm_rank(MPI_COMM_WORLD, &rank); | ||
#endif | ||
|
||
parsec = parsec_init( -1, &argc, &argv ); | ||
parsec_taskpool_t *dtd_tp = parsec_dtd_taskpool_new(); | ||
parsec_taskpool_free( dtd_tp ); | ||
parsec_fini(&parsec); | ||
|
||
#ifdef PARSEC_HAVE_MPI | ||
MPI_Finalize(); | ||
#endif | ||
|
||
return 0; | ||
} |