Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FlashSampling/FlashSampling
/ is_rank0
Method
is_rank0
src/fused_mm_sampling/tp_info.py:20–21 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
18
19
def
is_rank0(self) -> bool:
20
return
self.rank == 0
21
22
def
rank0_print(self, *args, **kwargs) -> None:
23
if
self.is_rank0():
24
print(*args, **kwargs)
Callers
4
rank0_print
Method · 0.95
_run_triton_benchmark_impl
Function · 0.80
run_cupti
Function · 0.80
run_own_benchmark
Function · 0.80
Calls
no outgoing calls
Tested by
2
run_cupti
Function · 0.64
run_own_benchmark
Function · 0.64