Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IceT
IceT
Commits
9e23fc3f
Commit
9e23fc3f
authored
Feb 10, 2015
by
Kenneth Moreland
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'CommSubsetConstRankArray'
parents
0b9cf86f
1e392009
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
src/communication/mpi.c
src/communication/mpi.c
+3
-3
src/ice-t/communication.c
src/ice-t/communication.c
+1
-1
src/include/IceT.h
src/include/IceT.h
+1
-1
src/include/IceTDevCommunication.h
src/include/IceTDevCommunication.h
+1
-1
No files found.
src/communication/mpi.c
View file @
9e23fc3f
...
...
@@ -32,7 +32,7 @@
static
IceTCommunicator
MPIDuplicate
(
IceTCommunicator
self
);
static
IceTCommunicator
MPISubset
(
IceTCommunicator
self
,
int
count
,
IceTInt32
*
ranks
);
const
IceTInt32
*
ranks
);
static
void
MPIDestroy
(
IceTCommunicator
self
);
static
void
MPIBarrier
(
IceTCommunicator
self
);
static
void
MPISend
(
IceTCommunicator
self
,
...
...
@@ -271,7 +271,7 @@ static IceTCommunicator MPIDuplicate(IceTCommunicator self)
static
IceTCommunicator
MPISubset
(
IceTCommunicator
self
,
int
count
,
IceTInt32
*
ranks
)
const
IceTInt32
*
ranks
)
{
MPI_Group
original_group
;
MPI_Group
subset_group
;
...
...
@@ -279,7 +279,7 @@ static IceTCommunicator MPISubset(IceTCommunicator self,
IceTCommunicator
result
;
MPI_Comm_group
(
MPI_COMM
,
&
original_group
);
MPI_Group_incl
(
original_group
,
count
,
ranks
,
&
subset_group
);
MPI_Group_incl
(
original_group
,
count
,
(
IceTInt32
*
)
ranks
,
&
subset_group
);
MPI_Comm_create
(
MPI_COMM
,
subset_group
,
&
subset_comm
);
result
=
icetCreateMPICommunicator
(
subset_comm
);
...
...
src/ice-t/communication.c
View file @
9e23fc3f
...
...
@@ -34,7 +34,7 @@ IceTCommunicator icetCommDuplicate()
return
comm
->
Duplicate
(
comm
);
}
IceTCommunicator
icetCommSubset
(
int
count
,
IceTInt32
*
ranks
)
IceTCommunicator
icetCommSubset
(
int
count
,
const
IceTInt32
*
ranks
)
{
IceTCommunicator
comm
=
icetGetCommunicator
();
return
comm
->
Subset
(
comm
,
count
,
ranks
);
...
...
src/include/IceT.h
View file @
9e23fc3f
...
...
@@ -53,7 +53,7 @@ struct IceTCommunicatorStruct {
struct
IceTCommunicatorStruct
*
(
*
Subset
)(
struct
IceTCommunicatorStruct
*
self
,
int
count
,
IceTInt32
*
ranks
);
const
IceTInt32
*
ranks
);
void
(
*
Barrier
)(
struct
IceTCommunicatorStruct
*
self
);
void
(
*
Send
)(
struct
IceTCommunicatorStruct
*
self
,
const
void
*
buf
,
...
...
src/include/IceTDevCommunication.h
View file @
9e23fc3f
...
...
@@ -23,7 +23,7 @@ extern "C" {
the current context. */
ICET_EXPORT
IceTCommunicator
icetCommDuplicate
();
ICET_EXPORT
IceTCommunicator
icetCommSubset
(
int
count
,
IceTInt32
*
ranks
);
const
IceTInt32
*
ranks
);
ICET_EXPORT
void
icetCommBarrier
();
ICET_EXPORT
void
icetCommSend
(
const
void
*
buf
,
IceTSizeType
count
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment