Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libcdi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
mpim-sw
libcdi
Commits
d09a8999
Commit
d09a8999
authored
5 years ago
by
Sergey Kosukhin
Browse files
Options
Downloads
Patches
Plain Diff
Do no enable MPI support when '--disable-mpi'.
parent
e6ba762e
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
configure.ac
+15
-14
15 additions, 14 deletions
configure.ac
with
15 additions
and
14 deletions
configure.ac
+
15
−
14
View file @
d09a8999
...
...
@@ -161,21 +161,22 @@ AC_CHECK_FUNCS([grib_get_length])
# Compile with MPI support
AC_ARG_ENABLE([mpi],
AS_HELP_STRING([--enable-mpi],
[Compile with MPI compiler @<:@default=no@:>@]),
[enable_mpi=yes
ACX_C_PACKAGE([MPI],[mpi.h],,,
[AC_MSG_FAILURE([Required header mpi.h not found or not compilable.])
enable_MPI=no],[MPI_Waitall],[mpi mpich],,,
[AC_MSG_FAILURE([Cannot link C MPI programs.])
enable_MPI=no])
AS_IF([test -n "$FC" && test "X$FC" != "Xno"],
[ACX_FORTRAN_PACKAGE([MPI], [mpif.h],,,
[AC_MSG_FAILURE([Required include mpif.h not found or not compilable.])
enable_MPI=no],[mpi_waitall],
[mpi mpi_f90 mpi_f77 mpich],[[-lmpi_f77 -lmpi],[-lmpi]],,
[AC_MSG_FAILURE([Cannot link Fortran MPI programs.])
enable_MPI=no],[])])],
[Compile with MPI compiler @<:@default=no@:>@]),,
[enable_mpi=no])
AS_VAR_IF([enable_mpi], [yes],
[ACX_C_PACKAGE([MPI],[mpi.h],,,
[AC_MSG_FAILURE([Required header mpi.h not found or not compilable.])
enable_MPI=no],
[MPI_Waitall],[mpi mpich],,,
[AC_MSG_FAILURE([Cannot link C MPI programs.])
enable_MPI=no])
AS_IF([test -n "$FC" && test "X$FC" != "Xno"],
[ACX_FORTRAN_PACKAGE([MPI], [mpif.h],,,
[AC_MSG_FAILURE([Required include mpif.h not found or not compilable.])
enable_MPI=no],[mpi_waitall],
[mpi mpi_f90 mpi_f77 mpich],[[-lmpi_f77 -lmpi],[-lmpi]],,
[AC_MSG_FAILURE([Cannot link Fortran MPI programs.])
enable_MPI=no],[])])])
AS_IF([test x"${enable_mpi}" = x"yes"],
[USE_MPI=yes])
HAVE_PARALLEL_NC4=0
...
...
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