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
dd133d39
Unverified
Commit
dd133d39
authored
Jun 16, 2025
by
Shangyan Zhou
Committed by
GitHub
Jun 16, 2025
Browse files
Fix warp synchronization. (#215)
* Fix warp synchronization. * Another fix.
parent
8aaddf76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
csrc/kernels/internode.cu
csrc/kernels/internode.cu
+2
-0
No files found.
csrc/kernels/internode.cu
View file @
dd133d39
...
@@ -567,6 +567,7 @@ dispatch(int4* recv_x, float* recv_x_scales, int64_t* recv_topk_idx, float* recv
...
@@ -567,6 +567,7 @@ dispatch(int4* recv_x, float* recv_x_scales, int64_t* recv_topk_idx, float* recv
// Update last token tail
// Update last token tail
if
(
last_rdma_tail_idx
>=
0
)
if
(
last_rdma_tail_idx
>=
0
)
st_release_cta
(
const_cast
<
const
int
*>
(
rdma_send_channel_tail
+
lane_id
),
last_rdma_tail_idx
+
1
);
st_release_cta
(
const_cast
<
const
int
*>
(
rdma_send_channel_tail
+
lane_id
),
last_rdma_tail_idx
+
1
);
__syncwarp
();
// Release sequential lock
// Release sequential lock
lane_id
==
0
?
(
rdma_send_next_token_idx
+=
1
)
:
0
;
lane_id
==
0
?
(
rdma_send_next_token_idx
+=
1
)
:
0
;
...
@@ -633,6 +634,7 @@ dispatch(int4* recv_x, float* recv_x_scales, int64_t* recv_topk_idx, float* recv
...
@@ -633,6 +634,7 @@ dispatch(int4* recv_x, float* recv_x_scales, int64_t* recv_topk_idx, float* recv
nvshmemi_ibgda_amo_nonfetch_add
(
rdma_channel_tail
.
buffer
(
rdma_rank
),
num_tokens_to_issue
,
nvshmemi_ibgda_amo_nonfetch_add
(
rdma_channel_tail
.
buffer
(
rdma_rank
),
num_tokens_to_issue
,
translate_dst_rdma_rank
<
kLowLatencyMode
>
(
dst_rdma_rank
,
nvl_rank
),
channel_id
,
dst_rdma_rank
==
rdma_rank
);
translate_dst_rdma_rank
<
kLowLatencyMode
>
(
dst_rdma_rank
,
nvl_rank
),
channel_id
,
dst_rdma_rank
==
rdma_rank
);
}
}
__syncwarp
();
}
}
}
}
}
else
if
(
warp_role
==
WarpRole
::
kRDMAAndNVLForwarder
)
{
}
else
if
(
warp_role
==
WarpRole
::
kRDMAAndNVLForwarder
)
{
...
...
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