Skip to content

Commit 424c1d7

Browse files
committed
Remove some tailing spaces
1 parent 8d8b70f commit 424c1d7

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

deep_ep/buffers/elastic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def __init__(self,
275275
self.allow_multiple_reduction = allow_multiple_reduction
276276
self.prefer_overlap_with_compute = prefer_overlap_with_compute
277277
self.deterministic = deterministic
278-
278+
279279
if os.environ.get('NCCL_GIN_CROSS_NIC') == '0':
280280
# TODO: move this variable into NCCL runtime
281281
# Multi-plane: all ranks share CPU segments, skip proxy re-export for sysmem handles
@@ -502,7 +502,7 @@ def barrier(self, use_comm_stream: bool = True, with_cpu_sync: bool = False, seq
502502
use_comm_stream: whether to use the communication stream (otherwise uses the current compute stream).
503503
with_cpu_sync: whether to also call `cudaDeviceSynchronize` before and after the barrier.
504504
sequential: whether to run the scaleout and scaleup barriers sequentially (on a single SM) instead of
505-
in parallel across SMs. Sequential mode provides better synchronization guarantees,
505+
in parallel across SMs. Sequential mode provides better synchronization guarantees,
506506
mainly used for test synchronization.
507507
"""
508508
self.runtime.barrier(use_comm_stream, with_cpu_sync, sequential)

deep_ep/include/deep_ep/impls/engram_fetch.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ engram_fetch_impl(const ncclDevComm_t nccl_dev_comm, const ncclWindow_t nccl_win
7272
// NOTES: requests may exceed the queue depth, flush if needed
7373
(request_idx % kGinQPFlushDepth == (kGinQPFlushDepth - 1)) ? 0 : ncclGinOptFlagsAggregateRequests
7474
);
75-
75+
7676
// TODO: once NCCL supports ncclCoopWarp gin.get, drop the elect_one_sync and let the whole warp
7777
// gather SF packs in parallel.
7878
if constexpr (kNumSFPacks > 0) {

tests/elastic/test_ep.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def get_recv_x_bf16(recv_x) -> torch.Tensor:
103103
return per_token_cast_back(recv_x[0], recv_x[1])
104104
else:
105105
return recv_x
106-
106+
107107
# Test correctness with NCCL reference
108108
if not args.skip_check:
109109
ref_recv_x, ref_recv_topk_idx, ref_recv_topk_weights, \
@@ -175,7 +175,7 @@ def get_recv_x_bf16(recv_x) -> torch.Tensor:
175175
do_zero_padding=True, handle=expanded_handle)
176176
cached_expanded_recv_x, _, cached_expanded_recv_topk_weights, _, _ = \
177177
launch(buffer, 'dispatch', with_previous_event, async_with_compute_stream, cached_expanded_dispatch_args)
178-
178+
179179
# Count the number of received tokens
180180
num_recv_tokens = handle.psum_num_recv_tokens_per_scaleup_rank[-1].item()
181181
assert num_recv_tokens == expanded_handle.psum_num_recv_tokens_per_scaleup_rank[-1].item(), \
@@ -306,7 +306,7 @@ def get_unique_and_valid_dst_count(dst_idx: torch.Tensor,
306306
dst_idx = dst_idx + torch.arange(0, dst_idx.shape[0], dtype=dst_idx.dtype, device=dst_idx.device).unsqueeze(-1) * (max_num_in_dst_idx + 1) # So that different rows will have different values
307307
dst_idx[ignore_mask] = dst_idx[0][0].item() # So that these `-1`s won't affect the count of unique numbers
308308
return torch.unique(dst_idx, sorted=False).numel()
309-
309+
310310
if not args.allow_multiple_reduction:
311311
# No multiple reduction
312312
if not is_expand_mode:

0 commit comments

Comments
 (0)