-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NEMO-472] Implement Intermediate Combine #318
Open
Kangji
wants to merge
17
commits into
apache:master
Choose a base branch
from
Kangji:472-intermediate-combine
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
28adec8
[add] unit test for intermediate combine
Kangji fb1ca4f
[add] implemented intermediate combine
Kangji c97de05
[add] new type of data comm channel
Kangji f5b139d
[add] new vertex property about network hierarchy
Kangji 60537ba
[add] accumulator vertex insertion logic
Kangji 2e871b2
[add] unit test for insertion
Kangji 0a3f0ab
[add] implement intermediate combine pass
Kangji 9fe50a0
[add] unit tests for ct pass
Kangji c5d6f9c
[fix] add dependency
Kangji 32ebe2c
[fix] fixed labeldict path
Kangji 4f137a5
Merge pull request #2 from Kangji/472-ct-pass
Kangji 1392950
Merge branch 'master' into 472-intermediate-combine
wonook 347aa77
[fix] impl. IntermediateAccumulatorVertex class
Kangji 551c159
[add] comments
Kangji db409f5
[fix] rename method
Kangji 5fc6867
address comments
wonook 4fbf06b
Merge branch 'master' into 472-intermediate-combine
wonook File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...n/java/org/apache/nemo/common/ir/vertex/executionproperty/ShuffleExecutorSetProperty.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package org.apache.nemo.common.ir.vertex.executionproperty; | ||
|
||
import org.apache.nemo.common.ir.executionproperty.VertexExecutionProperty; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashSet; | ||
|
||
/** | ||
* List of set of node names to limit the scheduling of the tasks of the vertex to while shuffling. | ||
* ShuffleExecutorSetProperty is only for IntermediateAccumulatorVertex. | ||
* Other vertices must not have this property. | ||
*/ | ||
public final class ShuffleExecutorSetProperty extends VertexExecutionProperty<ArrayList<HashSet<String>>> { | ||
wonook marked this conversation as resolved.
Show resolved
Hide resolved
wonook marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
/** | ||
* Default constructor. | ||
* @param value value of the execution property. | ||
*/ | ||
private ShuffleExecutorSetProperty(final ArrayList<HashSet<String>> value) { | ||
wonook marked this conversation as resolved.
Show resolved
Hide resolved
|
||
super(value); | ||
} | ||
|
||
/** | ||
* Static method for constructing {@link ShuffleExecutorSetProperty}. | ||
* | ||
* @param setsOfExecutors the list of executors to schedule the tasks of the vertex on. | ||
* Leave empty to make it effectless. | ||
* @return the new execution property | ||
*/ | ||
public static ShuffleExecutorSetProperty of(final HashSet<HashSet<String>> setsOfExecutors) { | ||
wonook marked this conversation as resolved.
Show resolved
Hide resolved
|
||
return new ShuffleExecutorSetProperty(new ArrayList<>(setsOfExecutors)); | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...src/main/java/org/apache/nemo/common/ir/vertex/utility/IntermediateAccumulatorVertex.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
package org.apache.nemo.common.ir.vertex.utility; | ||
|
||
import org.apache.nemo.common.ir.vertex.OperatorVertex; | ||
import org.apache.nemo.common.ir.vertex.transform.Transform; | ||
|
||
/** | ||
* During combine transform, accumulates data among physically nearby containers prior to shuffling across WAN. | ||
*/ | ||
public class IntermediateAccumulatorVertex extends OperatorVertex { | ||
wonook marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/** | ||
* Constructor. | ||
*/ | ||
public IntermediateAccumulatorVertex(final Transform t) { | ||
super(t); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This explanation is not clear to me. Does this property set the destination executor for the output of intermediate vertex?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It limits the sources of the data that each task reads from, depending on where the task is located at. I'll add the explanation.