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
76a47da2
Commit
76a47da2
authored
2 months ago
by
Thomas Jahns
Browse files
Options
Downloads
Patches
Plain Diff
exchangers: Remove constructor for abstract base class.
parent
ffe4cde3
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_simple_base.c
+0
-32
0 additions, 32 deletions
src/xt_exchanger_simple_base.c
src/xt_exchanger_simple_base.h
+0
-31
0 additions, 31 deletions
src/xt_exchanger_simple_base.h
with
0 additions
and
63 deletions
src/xt_exchanger_simple_base.c
+
0
−
32
View file @
76a47da2
...
...
@@ -201,38 +201,6 @@ xt_exchanger_simple_base_init(
}
}
Xt_exchanger
xt_exchanger_simple_base_new
(
int
nsend
,
int
nrecv
,
const
struct
Xt_msg_param
send_msgs
[
nsend
],
const
struct
Xt_msg_param
recv_msgs
[
nrecv
],
MPI_Comm
comm
,
int
tag_offset
,
xt_simple_s_exchange_func
s_func
,
xt_simple_a_exchange_func
a_func
,
xt_simple_create_thread_share_func
create_thread_share_func
,
xt_simple_destroy_thread_share_func
destroy_thread_share_func
,
Xt_config
config
)
{
/** note: tag_offset + xt_mpi_tag_exchange_msg must not
* be used on @a comm by any other part of the program during the
* lifetime of the created exchanger object
*/
if
(
s_func
==
0
)
Xt_abort
(
comm
,
"ERROR(xt_exchanger_simple_base_new): invalid synchronous "
"exchange function pointer"
,
filename
,
__LINE__
);
assert
((
nsend
>=
0
)
&
(
nrecv
>=
0
));
size_t
nmsg
=
(
size_t
)
nsend
+
(
size_t
)
nrecv
;
Xt_exchanger_simple_base
exchanger
=
xt_exchanger_simple_base_alloc
(
nmsg
,
0
);
xt_exchanger_simple_base_init
(
exchanger
,
nsend
,
nrecv
,
send_msgs
,
recv_msgs
,
comm
,
tag_offset
,
s_func
,
a_func
,
create_thread_share_func
,
destroy_thread_share_func
,
config
);
return
(
Xt_exchanger
)
exchanger
;
}
static
Xt_exchanger
xt_exchanger_simple_base_copy
(
Xt_exchanger
exchanger
,
MPI_Comm
new_comm
,
int
new_tag_offset
)
...
...
This diff is collapsed.
Click to expand it.
src/xt_exchanger_simple_base.h
+
0
−
31
View file @
76a47da2
...
...
@@ -74,37 +74,6 @@ typedef Xt_exchanger_thread_share (*xt_simple_create_thread_share_func)(
typedef
void
(
*
xt_simple_destroy_thread_share_func
)(
Xt_exchanger
exchanger
,
Xt_exchanger_thread_share
thread_share
);
/**
* constructor for an exchanger using asynchronous send and recv
* @param[in] nsend number of send messages
* @param[in] nrecv number of receive messages
* @param[in] send_msgs array with send messages
* @param[in] recv_msgs array with receive messages
* @param[in] comm MPI communicator that is to be used for the
* communication
* @param[in] tag_offset tag
* @param[in] s_func function pointer used for synchronous exchanges
* @param[in] a_func function pointer used for asynchronous exchanges
* @param[in] create_thread_share_func function pointer used to create
* shared state for multi-threaded calls
* @param[in] config optional customization parameters
* @remark tag_offset + xt_mpi_tag_exchange_msg must not
* be used on @a comm by any other part of the program during the
* lifetime of the created exchanger object
*/
PPM_DSO_INTERNAL
Xt_exchanger
xt_exchanger_simple_base_new
(
int
nsend
,
int
nrecv
,
const
struct
Xt_msg_param
send_msgs
[
nsend
],
const
struct
Xt_msg_param
recv_msgs
[
nrecv
],
MPI_Comm
comm
,
int
tag_offset
,
xt_simple_s_exchange_func
s_func
,
xt_simple_a_exchange_func
a_func
,
xt_simple_create_thread_share_func
create_thread_share_func
,
xt_simple_destroy_thread_share_func
destroy_thread_share_func
,
Xt_config
config
);
#endif // XT_EXCHANGER_SIMPLE_BASE_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