Hybrid programming Flashcards
1
Q
levels of thread support
A
0 MPI_THREAD_SINGLE
1 FUNNELED
2 SERIALIZED
3 MULTIPLE
2
Q
setup hybrid code
A
int provided;
MPI_Init_thread(&argc, &argv, MPI_THREAD_FUNNELED, &provided);
if (provided < MPI_THREAD_FUNNELED) {
MPI_Abort(MPI_COMM_WORLD, EXIT_FAILURE);}
MPI_Finalize();
3
Q
openmp thread bindings report
A
OMP_PROC_BIND master, close, spread, true, false
OMP_PLACES describes places
OMP_THREAD_LIMIT
4
Q
MPI therad bindings report
A
–map-by socket:PE=4
–bind-to core