Commit ac306392 authored by Huihuo Zheng's avatar Huihuo Zheng
Browse files

thread multiple

parent 03ca7beb
......@@ -60,8 +60,9 @@ int msleep(long miliseconds)
}
int main(int argc, char **argv) {
int rank, nproc;
MPI_Init(&argc, &argv);
int rank, nproc;
int provided;
MPI_Init_thread(&argc, &argv, MPI_THREAD_MULTIPLE, &provided);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &nproc);
double compute = 0.0;
......
......@@ -8,6 +8,7 @@
#include "stdlib.h"
#include "profiling.h"
#include "timing.h"
#include "mpi.h"
using namespace std;
int main(int argc, char **argv) {
Timing tt;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment