Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Andreas Kempe
mpi-mandelbrot
Commits
151a8c0b
Commit
151a8c0b
authored
Sep 25, 2015
by
Andreas Kempe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial commit. Basic mpi functionality.
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
CMakeLists.txt
CMakeLists.txt
+10
-0
main.cpp
main.cpp
+17
-0
No files found.
CMakeLists.txt
0 → 100644
View file @
151a8c0b
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
View file @
151a8c0b
#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
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment