Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
DeepEP
Commits
11a0b0e1
Unverified
Commit
11a0b0e1
authored
Jun 08, 2025
by
Shangyan Zhou
Committed by
GitHub
Jun 08, 2025
Browse files
Merge pull request #193 from fzyzcjy/feat/fix_mnnvl
Allow using MNNVL
parents
c8dceba1
4cd95170
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
deep_ep/buffer.py
deep_ep/buffer.py
+6
-3
No files found.
deep_ep/buffer.py
View file @
11a0b0e1
...
@@ -32,7 +32,8 @@ class Buffer:
...
@@ -32,7 +32,8 @@ class Buffer:
def
__init__
(
self
,
group
:
dist
.
ProcessGroup
,
def
__init__
(
self
,
group
:
dist
.
ProcessGroup
,
num_nvl_bytes
:
int
=
0
,
num_rdma_bytes
:
int
=
0
,
num_nvl_bytes
:
int
=
0
,
num_rdma_bytes
:
int
=
0
,
low_latency_mode
:
bool
=
False
,
num_qps_per_rank
:
int
=
12
,
low_latency_mode
:
bool
=
False
,
num_qps_per_rank
:
int
=
12
,
allow_nvlink_for_low_latency_mode
:
bool
=
True
)
->
None
:
allow_nvlink_for_low_latency_mode
:
bool
=
True
,
allow_mnnvl
:
bool
=
False
)
->
None
:
"""
"""
Initialize the communication buffer.
Initialize the communication buffer.
...
@@ -47,6 +48,7 @@ class Buffer:
...
@@ -47,6 +48,7 @@ class Buffer:
this is somehow incompatible with the hook-based overlapping.
this is somehow incompatible with the hook-based overlapping.
Warning: PCIe connections may lead to errors due to memory ordering issues,
Warning: PCIe connections may lead to errors due to memory ordering issues,
please make sure all connections are via NVLink.
please make sure all connections are via NVLink.
allow_mnnvl: whether to allow MNNVL
"""
"""
# Initialize the CPP runtime
# Initialize the CPP runtime
...
@@ -88,6 +90,7 @@ class Buffer:
...
@@ -88,6 +90,7 @@ class Buffer:
# NOTES: NVSHMEM initialization requires at least 256 MiB
# NOTES: NVSHMEM initialization requires at least 256 MiB
os
.
environ
[
'NVSHMEM_CUMEM_GRANULARITY'
]
=
f
'
{
2
**
29
}
'
os
.
environ
[
'NVSHMEM_CUMEM_GRANULARITY'
]
=
f
'
{
2
**
29
}
'
if
not
allow_mnnvl
:
# Disable multi-node NVLink detection
# Disable multi-node NVLink detection
os
.
environ
[
'NVSHMEM_DISABLE_MNNVL'
]
=
'1'
os
.
environ
[
'NVSHMEM_DISABLE_MNNVL'
]
=
'1'
...
...
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