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
vllm_cscc
Commits
d25877dd
Unverified
Commit
d25877dd
authored
Jul 17, 2024
by
Nick Hill
Committed by
GitHub
Jul 17, 2024
Browse files
[BugFix] Avoid secondary error in ShmRingBuffer destructor (#6530)
parent
1c27d25f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
vllm/distributed/device_communicators/shm_broadcast.py
vllm/distributed/device_communicators/shm_broadcast.py
+4
-4
No files found.
vllm/distributed/device_communicators/shm_broadcast.py
View file @
d25877dd
...
...
@@ -119,6 +119,7 @@ class ShmRingBuffer:
)
def
__del__
(
self
):
if
hasattr
(
self
,
"shared_memory"
):
self
.
shared_memory
.
close
()
if
self
.
is_creator
:
self
.
shared_memory
.
unlink
()
...
...
@@ -428,7 +429,6 @@ class MessageQueue:
def
dequeue
(
self
):
if
self
.
_is_local_reader
:
overflow
=
False
with
self
.
acquire_read
()
as
buf
:
overflow
=
buf
[
0
]
==
1
if
not
overflow
:
...
...
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