Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SPINS
SPINS_main
Commits
6ddb7092
Commit
6ddb7092
authored
May 21, 2021
by
Christopher Subich
Browse files
Add MPI build test to makemake.sh
parent
726be5ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
systems/makemake.sh
View file @
6ddb7092
...
...
@@ -83,3 +83,18 @@ BLAS_INCDIR:=$BLAS_INCDIR
EOF
echo
"Sanity check - building trivial MPI executable"
rm
-f
mpitest.o mpitest.x mpitest.cpp
cat
>
mpitest.cpp
<<
EOF
#include <mpi.h>
int main(int argc, char ** argv) {
MPI_Init(&argc, &argv);
MPI_Finalize();
return 0;
}
EOF
echo
"Executing:
$MPICXX
$SYSTEM_CFLAGS
$SYSTEM_CXXFLAGS
$MPI_CFLAGS
$MPI_INCDIR
-c -o mpitest.o ./mpitest.cpp"
$MPICXX
$SYSTEM_CFLAGS
$SYSTEM_CXXFLAGS
$MPI_CFLAGS
$MPI_INCDIR
-c
-o
mpitest.o ./mpitest.cpp
||
echo
"WARNING: MPI compilation failed!"
&&
echo
"MPI compilation success"
echo
"Executing:
$LD
$SYSTEM_LDFLAGS
$MPI_LIBDIR
-o mpitest.x mpitest.o
$MPI_LIB
-lstdc++"
$LD
$SYSTEM_LDFLAGS
$MPI_LIBDIR
-o
mpitest.x mpitest.o
$MPI_LIB
-lstdc
++
||
echo
"WARNING: MPI linking failed!"
&&
echo
"MPI linking success"
rm
-f
mpitest.o mpitest.x mpitest.cpp
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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