-
Notifications
You must be signed in to change notification settings - Fork 43
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
Merge mscclpp-lang to mscclpp project #442
base: main
Are you sure you want to change the base?
Conversation
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.
Copilot reviewed 10 out of 25 changed files in this pull request and generated 2 comments.
Files not reviewed (15)
- python/mscclpp/language/init.py: Evaluated as low risk
- python/mscclpp/language/dag/init.py: Evaluated as low risk
- .azure-pipelines/nccl-api-test.yaml: Evaluated as low risk
- python/mscclpp/language/dag/lower.py: Evaluated as low risk
- python/mscclpp/language/types.py: Evaluated as low risk
- python/mscclpp/language/dag/instruction_dag.py: Evaluated as low risk
- python/mscclpp/language/utils.py: Evaluated as low risk
- python/examples/allreduce_allpairs_get.py: Evaluated as low risk
- python/examples/allreduce_allpairs_packet.py: Evaluated as low risk
- python/examples/allreduce_allpairs.py: Evaluated as low risk
- python/mscclpp/language/collectives.py: Evaluated as low risk
- python/mscclpp/language/rank.py: Evaluated as low risk
- python/mscclpp/language/buffer.py: Evaluated as low risk
- python/examples/allreduce_nvls.py: Evaluated as low risk
- .github/workflows/mscclpp-lang.yml: Evaluated as low risk
Comments suppressed due to low confidence (3)
python/examples/send_recv_packet.py:28
- The parameters
temp_buffer
andtemp_buffer_index
are not used in thesend_recv
function. This might be an oversight or an incomplete implementation.
c.put_packet(
python/examples/send_recv_packet.py:11
- [nitpick] The function name
send_recv
is ambiguous as it is the same as in the other example. Consider renaming it tosend_recv_packet
to avoid confusion.
def send_recv(instances):
python/examples/send_recv_packet.py:0
- Ensure that the new behavior introduced by
put_packet
andcopy_packet
is covered by tests.
def send_recv(instances):
chunks = [self, chunk] | ||
return ReduceChunk(dst, chunks) | ||
else: | ||
assert True, "Trying to reduce with chunk of None" |
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.
The assertion should be corrected to assert chunk is not None, "Trying to reduce with chunk of None"
to properly check for None
.
assert True, "Trying to reduce with chunk of None" | |
assert chunk is not None, "Trying to reduce with chunk of None" |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
elif type(chunk) is Chunk: | ||
chunks = self.chunks + [chunk] | ||
else: | ||
assert True, "Trying to reduce with chunk of None" |
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.
The assertion should be corrected to assert chunk is not None, "Trying to reduce with chunk of None"
to properly check for None
.
assert True, "Trying to reduce with chunk of None" | |
assert chunk is not None, "Trying to reduce with chunk of None" |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
First step to merge msccl-tools into mscclpp repo. In this step will move all msccl related code, pass the current tests and do some necessary refactor.
Add
mscclpp.language
moduleAdd
_InstructionOptimizer
andDagOptimizer
class to optimize the dagAdd
DagLower
to lower dag to intermediate representationRemove msccl related code