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
4cd95170
Commit
4cd95170
authored
Jun 07, 2025
by
fzyzcjy
Browse files
more
parent
c8dceba1
Changes
1
Hide 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 @
4cd95170
...
@@ -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,8 +90,9 @@ class Buffer:
...
@@ -88,8 +90,9 @@ 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
}
'
# Disable multi-node NVLink detection
if
not
allow_mnnvl
:
os
.
environ
[
'NVSHMEM_DISABLE_MNNVL'
]
=
'1'
# Disable multi-node NVLink detection
os
.
environ
[
'NVSHMEM_DISABLE_MNNVL'
]
=
'1'
# Synchronize using the root ID
# Synchronize using the root ID
nvshmem_unique_ids
=
[
None
,
]
*
self
.
group_size
nvshmem_unique_ids
=
[
None
,
]
*
self
.
group_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