Commit 151a8c0b authored by Andreas Kempe's avatar Andreas Kempe

Initial commit. Basic mpi functionality.

parents
project(mpi-mandel)
set(SRC main.cpp)
add_executable(mpi-mandel ${SRC})
set(CMAKE_C_COMPILER mpicc)
set(CMAKE_CXX_COMPILER mpicxx)
target_link_libraries(mpi-mandel mpi)
#include <mpi.h>
#include <iostream>
using namespace std;
int main(int argc, char** argv)
{
int id;
int numprocs;
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &id);
cout << id endl;
MPI_Finalize();
}
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