Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
yaxt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
dkrz-sw
yaxt
Commits
2e6f17a2
Commit
2e6f17a2
authored
6 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Improve test for MPI_Send signature.
parent
bc723118
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/acx_mpi_send_args.m4
+12
-3
12 additions, 3 deletions
m4/acx_mpi_send_args.m4
with
12 additions
and
3 deletions
m4/acx_mpi_send_args.m4
+
12
−
3
View file @
2e6f17a2
...
...
@@ -43,7 +43,7 @@ AC_DEFUN([ACX_MPI_SEND_CONST_VOID_P_BUF_ARG],
[AC_CACHE_CHECK([whether MPI_Send accepts const void * as first argument],
[acx_cv_mpi_send_takes_const_void],
[AC_LANG_PUSH([C])
AC_
COMPILE_IFELSE
([AC_LANG_SOURCE([@%:@include <stdlib.h>
AC_
LANG_CONFTEST
([AC_LANG_SOURCE([@%:@include <stdlib.h>
@%:@include <mpi.h>
@%:@define xmpi(ret) \\
...
...
@@ -68,8 +68,17 @@ int main(int argc, char **argv)
xmpi(MPI_Finalize());
return EXIT_SUCCESS;
}
])],
[acx_cv_mpi_send_takes_const_void=yes],
])])
AC_COMPILE_IFELSE(,
[# compilation worked without error,
# inspect if removing const errors out or creates extra warnings next
acx_temp=`cat conftest.err | wc -l`
sed 's/const //' conftest.c >conftest.er1 ; mv conftest.er1 conftest.c
AC_COMPILE_IFELSE(,
[AS_IF([test "$acx_temp" -lt `cat conftest.err | wc -l`],
[acx_cv_mpi_send_takes_const_void=yes],
[acx_cv_mpi_send_takes_const_void=no])],
[acx_cv_mpi_send_takes_const_void=yes])],
[acx_cv_mpi_send_takes_const_void=no])
AC_LANG_POP([C])])
AS_IF([test x"$acx_cv_mpi_send_takes_const_void" = xyes],[$1],
...
...
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