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
8481ec5a
Commit
8481ec5a
authored
2 months ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
exchangers: Add table of functions corresponding to send modes.
parent
84f9f515
No related branches found
No related tags found
1 merge request
!31
Draft: Attempt at fuller exchanger interface
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/xt_exchanger.c
+12
-0
12 additions, 0 deletions
src/xt_exchanger.c
src/xt_exchanger_internal.h
+11
-0
11 additions, 0 deletions
src/xt_exchanger_internal.h
with
23 additions
and
0 deletions
src/xt_exchanger.c
+
12
−
0
View file @
8481ec5a
...
...
@@ -220,6 +220,18 @@ xt_exchanger_iter_get_displacement(Xt_exchanger_iter iter)
return
iter
->
vtable
->
get_displacement
(
iter
);
}
const
Xt_code_ptr
xt_send_func_tab
[
2
][
xt_exch_send_comm_mode_count
]
=
{
{
[
xt_exch_send_standard
]
=
(
Xt_code_ptr
)
MPI_Isend
,
[
xt_exch_send_buffered
]
=
(
Xt_code_ptr
)
MPI_Ibsend
,
[
xt_exch_send_synchronous
]
=
(
Xt_code_ptr
)
MPI_Issend
,
},
{
[
xt_exch_send_standard
]
=
(
Xt_code_ptr
)
MPI_Send
,
[
xt_exch_send_buffered
]
=
(
Xt_code_ptr
)
MPI_Bsend
,
[
xt_exch_send_synchronous
]
=
(
Xt_code_ptr
)
MPI_Ssend
,
}
};
/*
* Local Variables:
...
...
This diff is collapsed.
Click to expand it.
src/xt_exchanger_internal.h
+
11
−
0
View file @
8481ec5a
...
...
@@ -261,7 +261,18 @@ PPM_DSO_INTERNAL void
xt_msg_params_destruct
(
size_t
n
,
struct
Xt_msg_param
*
msgs
,
MPI_Comm
comm
);
typedef
int
(
*
Xt_a_send_func_ptr
)
(
void
*
buf
,
int
count
,
MPI_Datatype
datatype
,
int
dest
,
int
tag
,
MPI_Comm
comm
,
MPI_Request
*
request
);
typedef
int
(
*
Xt_send_func_ptr
)
(
void
*
buf
,
int
count
,
MPI_Datatype
datatype
,
int
dest
,
int
tag
,
MPI_Comm
comm
);
typedef
void
(
*
Xt_code_ptr
)(
void
);
PPM_DSO_INTERNAL
extern
const
Xt_code_ptr
xt_send_func_tab
[
2
][
xt_exch_send_comm_mode_count
];
#endif // XT_EXCHANGER_INTERNAL_H
/*
...
...
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