Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
j.knedlik
simple-mpi-tests
Commits
487acaac
Commit
487acaac
authored
Jun 04, 2020
by
j.knedlik
Browse files
added broadcast
parent
7db40957
Changes
1
Hide whitespace changes
Inline
Side-by-side
broadcast.sh
0 → 100755
View file @
487acaac
mpic++
-o
bcast.exe
-x
c++ -
<<
EOF
#include <mpi.h>
int main(int argc, char **argv)
{
MPI_Init(NULL,NULL);
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Bcast(&rank,1, MPI_INT, 0, MPI_COMM_WORLD);
MPI_Finalize();
return rank;
}
EOF
srun
-n
2
--
$PWD
/bcast.exe
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