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
be074f09
Commit
be074f09
authored
9 months ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
configure: Fix problem in workaround for older MPI versions.
parent
9b2b8d0e
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
src/xt_mpi_ddt_cache.c
+2
-23
2 additions, 23 deletions
src/xt_mpi_ddt_cache.c
with
2 additions
and
23 deletions
src/xt_mpi_ddt_cache.c
+
2
−
23
View file @
be074f09
...
...
@@ -54,12 +54,12 @@
#include
<mpi.h>
#include
"xt/xt_mpi.h"
#include
"xt_mpi_ddt_cache.h"
#include
"xt_mpi_ddt_wrap.h"
#include
"xt_arithmetic_util.h"
#include
"core/cksum.h"
#include
"core/core.h"
#include
"core/ppm_xfuncs.h"
#include
"xt_mpi_ddt_wrap.h"
#include
"xt_mpi_ddt_cache.h"
#if ! HAVE_DECL___BUILTIN_CLZL \
&& (HAVE_DECL___LZCNT && SIZEOF_LONG == SIZEOF_INT \
...
...
@@ -314,27 +314,6 @@ Xt_mpi_ddt_cache_acquire_indexed_block(
return
dt
;
}
#if MPI_VERSION < 3
static
inline
int
XtMPI_Type_create_hindexed_block
(
int
count
,
int
blocklength
,
const
MPI_Aint
array_of_displacements
[],
MPI_Datatype
oldtype
,
MPI_Datatype
*
newtype
)
{
size_t
count_
=
count
>
0
?
(
size_t
)
count
:
0
;
int
*
restrict
blocklengths
=
xmalloc
(
count_
*
sizeof
(
*
blocklengths
));
for
(
size_t
i
=
0
;
i
<
count_
;
++
i
)
blocklengths
[
i
]
=
blocklength
;
int
rc
=
MPI_Type_create_hindexed
(
count
,
blocklengths
,
CAST_MPI_SEND_BUF
(
array_of_displacements
),
oldtype
,
newtype
);
free
(
blocklengths
);
return
rc
;
}
#define MPI_Type_create_hindexed_block XtMPI_Type_create_hindexed_block
enum
{
MPI_COMBINER_HINDEXED_BLOCK
=
128
};
#endif
MPI_Datatype
Xt_mpi_ddt_cache_acquire_hindexed_block
(
struct
Xt_mpiddt_list
*
ddt_list
,
...
...
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