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
0989f1cf
Commit
0989f1cf
authored
3 years ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
Use narrower type to store length.
parent
0af89f0d
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_redist_collection.c
+4
-6
4 additions, 6 deletions
src/xt_redist_collection.c
with
4 additions
and
6 deletions
src/xt_redist_collection.c
+
4
−
6
View file @
0989f1cf
...
...
@@ -135,15 +135,13 @@ struct Xt_redist_collection_ {
const
struct
xt_redist_vtable
*
vtable
;
unsigned
num_redists
;
struct
exchanger_cache
cache
;
unsigned
num_redists
,
cache_size
;
unsigned
nmsg
[
2
];
int
*
send_ranks
,
*
recv_ranks
;
size_t
cache_size
;
struct
Xt_config_
config
;
MPI_Comm
comm
;
int
tag_offset
;
...
...
@@ -278,7 +276,7 @@ Xt_redist xt_redist_collection_custom_new(Xt_redist *redists, int num_redists,
Xt_abort
(
comm
,
"ERROR: invalid cache size in xt_redist_collection_new"
,
__FILE__
,
__LINE__
);
redist_coll
->
cache_size
=
(
cache_size
==
-
1
)
?
(
DEFFAULT_DATATYPE_CACHE_SIZE
)
:
(
size_t
)
cache_size
;
=
(
cache_size
==
-
1
)
?
(
(
unsigned
)
DEFFAULT_DATATYPE_CACHE_SIZE
)
:
(
unsigned
)
cache_size
;
redist_coll
->
comm
=
xt_mpi_comm_smart_dup
(
comm
,
&
redist_coll
->
tag_offset
);
...
...
@@ -537,7 +535,7 @@ redist_collection_custom_copy(Xt_redist redist, Xt_config config)
copy_component_dt
(
num_redists
*
nmsg
,
redist_coll
->
all_component_dt
,
redist_copy
->
all_component_dt
,
copy_comm
);
size_t
cache_size
=
redist_coll
->
cache_size
;
unsigned
cache_size
=
redist_coll
->
cache_size
;
redist_copy
->
cache_size
=
cache_size
;
init_cache
(
&
redist_copy
->
cache
,
cache_size
,
num_redists
);
return
(
Xt_redist
)
redist_copy
;
...
...
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