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
e7044855
Unverified
Commit
e7044855
authored
Aug 25, 2025
by
Thunderbrook
Committed by
GitHub
Aug 25, 2025
Browse files
fix potential hang in pollcq (#371)
parent
91bb69a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
csrc/kernels/ibgda_device.cuh
csrc/kernels/ibgda_device.cuh
+1
-1
No files found.
csrc/kernels/ibgda_device.cuh
View file @
e7044855
...
@@ -472,7 +472,7 @@ ibgda_poll_cq(nvshmemi_ibgda_device_cq_t *cq, uint64_t idx) {
...
@@ -472,7 +472,7 @@ ibgda_poll_cq(nvshmemi_ibgda_device_cq_t *cq, uint64_t idx) {
const
auto
cqe64
=
static_cast
<
mlx5_cqe64
*>
(
cq
->
cqe
);
const
auto
cqe64
=
static_cast
<
mlx5_cqe64
*>
(
cq
->
cqe
);
const
uint32_t
ncqes
=
cq
->
ncqes
;
const
uint32_t
ncqes
=
cq
->
ncqes
;
memory_fence_cta
();
memory_fence_cta
();
if
(
*
cq
->
cons_idx
>=
idx
)
return
;
// NOTES: this while loop is part of do-while below.
// NOTES: this while loop is part of do-while below.
// `wqe_counter` is the HW consumer index. However, we always maintain `index + 1`.
// `wqe_counter` is the HW consumer index. However, we always maintain `index + 1`.
// To be able to compare with the index, we need to use `wqe_counter + 1`.
// To be able to compare with the index, we need to use `wqe_counter + 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