Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Leibner
dune-common
Commits
6c54950a
Commit
6c54950a
authored
15 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
- cleanup mvapich check
- first version of mvapich2 check (work for me TM) [[Imported from SVN: r5584]]
parent
3bba5f80
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
m4/mpi-config.m4
+30
-11
30 additions, 11 deletions
m4/mpi-config.m4
with
30 additions
and
11 deletions
m4/mpi-config.m4
+
30
−
11
View file @
6c54950a
...
...
@@ -196,20 +196,38 @@ _EOF
test_mvapich() {
AC_MSG_CHECKING([for MVAPICH])
if $MPICC -v -c conftest.c > /dev/null 2>&1; then
mpi_getflags "-v" "-c dummy.c"
MPI_VERSION=`echo $retval | sed -e 's/for \(MVAPICH[[0-9]][[0-9]]*\)-[[0-9.]][[0-9.]]*/\1/'`
if (echo $MPI_VERSION | grep ^MVAPICH>/dev/null);then
ADDFLAGS="-DMPICH_IGNORE_CXX_SEEK"
mpi_getflags "-compile_info $ADDFLAGS" "dummy.o -o dummy"
MPI_CPPFLAGS="$retval"
mpi_getflags "-link_info $ADDFLAGS" "dummy.o -o dummy"
MPI_LDFLAGS="$retval"
mpi_getflags "-v" "-c dummy.c"
if (echo $MPI_VERSION | grep ^MVAPICH>/dev/null);then
get_mpichflags
AC_MSG_RESULT([yes])
rm -f conftest*
return 0
fi
fi
AC_MSG_RESULT([no])
return 1
}
test_mvapich2() {
AC_MSG_CHECKING([for MVAPICH2])
cat >conftest.c <<_EOF
#define _OSU_MVAPICH_
#include <mpi.h>
#include <stdio.h>
int main() { printf("%s\n",MVAPICH2_VERSION); return 0; }
_EOF
if mpi_trybuild "-c conftest.c"; then
MPI_VERSION="MVAPICH2"
mpi_getmpich2flags
AC_MSG_RESULT([yes])
rm -f conftest*
return 0
fi
rm -f conftest*
AC_MSG_RESULT([no])
return 1
}
...
...
@@ -286,6 +304,7 @@ get_mpiparameters() {
test_mpich && return
test_openmpi && return
test_mvapich && return
test_mvapich2 && return
test_mpich2 && return
test_ibmmpi && return
test_intelmpi && return
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment