Skip to content
Snippets Groups Projects
Commit 151a8c0b authored by Andreas Kempe's avatar Andreas Kempe
Browse files

Initial commit. Basic mpi functionality.

parents
Branches
No related tags found
No related merge requests found
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)
main.cpp 0 → 100644
#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();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment