Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
4cf0e5d7
Commit
4cf0e5d7
authored
Oct 07, 2018
by
gy741
Committed by
Guolin Ke
Oct 07, 2018
Browse files
Remove Duplicate code in Network::Allgather() (#1733)
parent
f66716ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/network/network.cpp
src/network/network.cpp
+1
-1
No files found.
src/network/network.cpp
View file @
4cf0e5d7
...
@@ -117,8 +117,8 @@ void Network::AllreduceByAllGather(char* input, comm_size_t input_size, int type
...
@@ -117,8 +117,8 @@ void Network::AllreduceByAllGather(char* input, comm_size_t input_size, int type
void
Network
::
Allgather
(
char
*
input
,
comm_size_t
send_size
,
char
*
output
)
{
void
Network
::
Allgather
(
char
*
input
,
comm_size_t
send_size
,
char
*
output
)
{
if
(
num_machines_
<=
1
)
{
if
(
num_machines_
<=
1
)
{
Log
::
Fatal
(
"Please initilize the network interface first"
);
Log
::
Fatal
(
"Please initilize the network interface first"
);
return
;
}
}
if
(
num_machines_
<=
1
)
{
return
;
}
// assign blocks
// assign blocks
block_start_
[
0
]
=
0
;
block_start_
[
0
]
=
0
;
block_len_
[
0
]
=
send_size
;
block_len_
[
0
]
=
send_size
;
...
...
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