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
483f00af
Commit
483f00af
authored
Jun 13, 2025
by
Shangyan Zhou
Browse files
Update assertion of `num_rc_per_pe`.
parent
05df5554
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
csrc/kernels/internode.cu
csrc/kernels/internode.cu
+3
-2
No files found.
csrc/kernels/internode.cu
View file @
483f00af
...
...
@@ -357,14 +357,15 @@ dispatch(int4* recv_x, float* recv_x_scales, int64_t* recv_topk_idx, float* recv
kNVLReceivers
};
const
auto
num_sms
=
static_cast
<
int
>
(
gridDim
.
x
);
const
auto
sm_id
=
static_cast
<
int
>
(
blockIdx
.
x
);
const
auto
num_threads
=
static_cast
<
int
>
(
blockDim
.
x
),
num_warps
=
num_threads
/
32
;
const
auto
thread_id
=
static_cast
<
int
>
(
threadIdx
.
x
),
warp_id
=
thread_id
/
32
,
lane_id
=
get_lane_id
();
const
auto
num_channels
=
static_cast
<
int
>
(
gridDim
.
x
)
/
2
,
channel_id
=
sm_id
/
2
;
const
auto
num_channels
=
num_sms
/
2
,
channel_id
=
sm_id
/
2
;
const
bool
is_forwarder
=
sm_id
%
2
==
0
;
const
auto
rdma_rank
=
rank
/
NUM_MAX_NVL_PEERS
,
nvl_rank
=
rank
%
NUM_MAX_NVL_PEERS
;
EP_DEVICE_ASSERT
(
ibgda_get_state
()
->
num_rc_per_pe
>
=
num_channels
);
EP_DEVICE_ASSERT
(
ibgda_get_state
()
->
num_rc_per_pe
=
=
num_channels
||
ibgda_get_state
()
->
num_rc_per_pe
>=
num_sms
);
const
auto
role_meta
=
[
=
]()
->
std
::
pair
<
WarpRole
,
int
>
{
if
(
is_forwarder
)
{
...
...
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