MCPcopy Create free account

hub / github.com/ByteDance-Seed/Triton-distributed / functions

Functions5,103 in github.com/ByteDance-Seed/Triton-distributed

↓ 761 callersMethodto
(self, dtype: dtype, fp_downcast_rounding: Optional[str] = None, bitcast: bool = False, _semantic=None)
python/triton_dist/language/simt_ops.py:223
↓ 652 callersMethodstride
(self, dim: Optional[int] = None)
python/triton_dist/utils.py:1229
↓ 425 callersMethodsynchronize
(self, stream: Optional[Any] = None)
python/little_kernel/runtime/kernel.py:141
↓ 332 callersMethodsize
(self, i, multiple=tl.constexpr(1))
python/triton_dist/mega_triton_kernel/kernels/task_context.py:46
↓ 302 callersMethodview
(self, *args)
python/triton_dist/utils.py:1207
↓ 297 callersMethodreshape
(self, *args)
python/triton_dist/utils.py:1211
↓ 271 callersMethoddata_ptr
(self, dtype)
python/triton_dist/mega_triton_kernel/kernels/task_context.py:39
↓ 215 callersFunction__syncthreads
()
python/triton_dist/language/extra/language_extra.py:63
↓ 215 callersMethodrecord
(self, is_start, task_type)
python/triton_dist/tools/profiler/language.py:120
↓ 207 callersMethodcontiguous
(self)
python/triton_dist/utils.py:1215
↓ 184 callersFunctiontid
(axis)
python/triton_dist/language/extra/language_extra.py:48
↓ 180 callersMethodvisit
(self, node: ast.AST)
python/little_kernel/core/passes/dump.py:38
↓ 171 callersMethodfill_
Fill the tensor with a value. If not materialized, the fill is deferred until sync().
python/triton_dist/utils.py:1145
↓ 168 callersFunctionperf_func
(func, iters, warmup_iters)
python/triton_dist/profiler_utils.py:355
↓ 164 callersFunctiondist_print
(*args, **kwargs)
python/triton_dist/utils.py:450
↓ 149 callersFunctionnvshmem_barrier_all_on_stream
(stream: Optional[torch.cuda.Stream] = None)
python/triton_dist/utils.py:329
↓ 141 callersFunctionnvshmem_free_tensor_sync
(tensor)
python/triton_dist/utils.py:294
↓ 139 callersMethodcopy_
(self, src)
python/triton_dist/utils.py:1193
↓ 138 callersFunctionld
(ptr, scope, semantic)
python/triton_dist/language/extra/language_extra.py:68
↓ 130 callersFunctionst
(ptr, val, scope, semantic)
python/triton_dist/language/extra/language_extra.py:73
↓ 126 callersFunctionnvshmem_create_tensor
(shape, dtype)
python/triton_dist/utils.py:256
↓ 116 callersMethodzero_
Zero the tensor.
python/triton_dist/utils.py:1156
↓ 115 callersMethodnumel
(self)
python/triton_dist/utils.py:1219
↓ 111 callersFunctionextern_call
Dispatch an function to a library :param lib_name: the name of the library :param lib_path: the path of the library :
python/triton_dist/language/core.py:86
↓ 107 callersMethodtensor
Get the underlying tensor (must be materialized).
python/triton_dist/utils.py:1174
↓ 91 callersFunctioncreate_tma_2d_descriptor
Create a 2D TMA descriptor (convenience function). Parameters ---------- tensor : torch.Tensor Source tensor on CUDA device.
python/little_kernel/runtime/tma_descriptor.py:265
↓ 76 callersMethod_copy_node
Create a shallow copy of the node to avoid modifying the original
python/little_kernel/core/passes/pass_base.py:39
↓ 76 callersFunctioninitialize_distributed
(seed=None, initialize_shmem: bool = True)
python/triton_dist/utils.py:345
↓ 76 callersMethodis_contiguous
(self)
python/triton_dist/utils.py:1202
↓ 73 callersMethod_process_list
Process a list of nodes/values (recursively visit nodes)
python/little_kernel/core/passes/pass_base.py:50
↓ 71 callersMethodvisit
(self, node)
python/little_kernel/core/passes/pass_base.py:62
↓ 70 callersMethoddtype
Get the dtype (available before materialization).
python/triton_dist/utils.py:1128
↓ 70 callersFunctionfinalize_distributed
()
python/triton_dist/utils.py:306
↓ 68 callersMethodfinalize
(self)
python/triton_dist/models/dense.py:210
↓ 63 callersFunctionsleep_async
sleep for duration_ms in CUDA kernel
python/triton_dist/utils.py:823
↓ 62 callersMethodwrite
(self, pp_rank, buffer_id, dst_buffer_id, local_tensor, signal_value=1, sm=4, fused=False)
python/triton_dist/layers/nvidia/p2p.py:118
↓ 61 callersFunctionassert_allclose
fail_if_too_small: if `x` or `y` is not much larger than `atol * 5`, raise error.
python/triton_dist/test/utils.py:42
↓ 61 callersFunctionget
(ctx, rank, src_rank, num_sm)
python/triton_dist/test/nvidia/test_pp.py:147
↓ 57 callersMethodbuild
Compile and build a kernel that can be launched. Parameters ---------- passes : list List of pas
python/little_kernel/core/compile.py:124
↓ 56 callersFunctionbarrier_on_this_grid
(ptr, use_cooperative: tl.constexpr)
python/triton_dist/kernels/nvidia/common_ops.py:138
↓ 54 callersMethodget_tensor
(self, idx)
python/triton_dist/mega_triton_kernel/kernels/task_context.py:81
↓ 54 callersMethodwriteln_main
Write a line to main buffer (for mixin compatibility).
python/little_kernel/codegen/special_struct/translator.py:96
↓ 52 callersMethoddim
(self)
python/triton_dist/utils.py:1224
↓ 51 callersMethod_writeln
Write a line with proper indentation.
python/little_kernel/codegen/special_struct/translator.py:85
↓ 50 callersFunctionrecursive_resolve_attribute
(node, ctx, scope_manager=None)
python/little_kernel/core/passes/utils/resolve_attribute.py:29
↓ 48 callersMethodsize
Get size like torch.Tensor.size().
python/triton_dist/utils.py:1139
↓ 48 callersMethodvisit
Override visit to cache results.
python/little_kernel/core/passes/utils/type_inference/infer_type.py:103
↓ 47 callersFunctionmori_shmem_create_tensor
(shape, dtype)
python/triton_dist/utils.py:269
↓ 46 callersMethodwriterow
(self, row)
python/little_kernel/benchmark/utils.py:162
↓ 45 callersFunctionfunc
()
python/triton_dist/test/nvidia/test_ag_gemm.py:149
↓ 45 callersFunctionrand_tensor
for float types, return uniform distribution [-1, 1] for int types, return uniform distribution in [int_type_min, int_type_max]
python/triton_dist/utils.py:991
↓ 44 callersMethodinfer_node_type
Public method to infer type of a single AST node. Delegates to the appropriate visit_* method.
python/little_kernel/core/passes/utils/type_inference/infer_type.py:211
↓ 38 callersMethodupdate
(self, rank, num_ranks, num_local_ranks=8, BLOCK_M=128, BLOCK_N=256, BLOCK_K=64, stages=3, for_
python/triton_dist/kernels/metax/allgather_gemm.py:1043
↓ 37 callersMethodclose
(self)
python/little_kernel/benchmark/utils.py:166
↓ 35 callersFunctioncheck_tensor_dtype
(tensor, dtype)
python/triton_dist/mega_triton_kernel/models/model_builder.py:67
↓ 34 callersMethodLoad
python/triton_dist/tools/runtime/triton_aot_runtime.cc:60
↓ 33 callersFunctioncheck_tensor_dim
(tensor, ndim)
python/triton_dist/mega_triton_kernel/models/model_builder.py:60
↓ 32 callersMethodcreate_tensor
Create a (potentially lazy) tensor. Args: name: Name for debugging/tracking shape: Tensor shape
python/triton_dist/utils.py:1362
↓ 31 callersMethoddump
Dump JSON with parallel processing of large parallel_field field
python/triton_dist/profiler_utils.py:126
↓ 31 callersMethodlower
(self, passes)
python/little_kernel/core/compile.py:111
↓ 30 callersFunctioncheck_env_flag
(name: str, default: str = "")
python/setup.py:215
↓ 29 callersFunctionnvshmem_create_tensors
(shape, dtype, rank, local_world_size)
python/triton_dist/utils.py:276
↓ 27 callersMethod_resolve_annotation
Evaluate an AST annotation node to LLType.
python/little_kernel/core/passes/utils/type_inference/infer_type.py:98
↓ 27 callersMethodcompile
(self)
python/triton_dist/mega_triton_kernel/models/model_builder.py:514
↓ 27 callersFunctionlaunch_cooperative_grid_options
()
python/triton_dist/utils.py:839
↓ 27 callersMethodread
(self, pp_rank, buffer_id, local_tensor, sm=4, stream=None, fused=False)
python/triton_dist/layers/nvidia/p2p.py:101
↓ 26 callersMethod_lltype_to_cpp
Convert LLType to C++ type string (for mixin compatibility).
python/little_kernel/codegen/special_struct/translator.py:112
↓ 26 callersFunctionis_cuda
Checks if 'nvidia-smi' is available on the system's PATH.
python/triton_dist/utils.py:51
↓ 26 callersFunctionnvshmem_free_lazy_tensor
Free a nvshmem tensor, handling both LazyTensor and regular torch.Tensor.
python/triton_dist/utils.py:1491
↓ 25 callersFunctionatomic_add
(ptr, val, scope, semantic)
python/triton_dist/language/extra/language_extra.py:58
↓ 24 callersMethod_to_expr
Convert Python native values (int/float/bool) to Literal nodes
python/little_kernel/core/expr.py:44
↓ 24 callersMethodrun
(input_ids, position_ids)
python/triton_dist/models/engine.py:98
↓ 24 callersMethodset_fwd
(self, mode: str = 'torch')
python/triton_dist/models/dense.py:146
↓ 24 callersMethodsynchronize
Synchronize the CUDA device.
python/little_kernel/design/flashcomm_ep_kernels.py:265
↓ 22 callersFunctionmori_shmem_free_tensor_sync
(tensor)
python/triton_dist/utils.py:300
↓ 21 callersMethodcompile
Compile kernel to CUDA code. Parameters ---------- passes : list List of passes to apply codegen_
python/little_kernel/core/compile.py:80
↓ 21 callersMethodfrom_pretrained
(config: ModelConfig, group=None)
python/triton_dist/models/__init__.py:46
↓ 21 callersMethodlog
(cls, msg: str, level: str = "debug")
python/triton_dist/mega_triton_kernel/core/builder.py:40
↓ 21 callersFunctionprint_table
Pretty-print a results table to console.
python/little_kernel/benchmark/utils.py:197
↓ 20 callersFunctionCUDA_CHECK
(err)
python/triton_dist/utils.py:164
↓ 20 callersMethodget_code
Combine headers, structs, and main code into final C++ output.
python/little_kernel/codegen/codegen_base.py:267
↓ 20 callersMethodlog
(self, msg, level="info")
python/triton_dist/models/utils.py:56
↓ 19 callersFunctionbarrier_on_this_grid
(ptr, use_cooperative: tl.constexpr)
python/triton_dist/kernels/amd/common_ops.py:115
↓ 19 callersFunctioncreate_node_with_attrs
Create a new AST node of the specified type, preserving special attributes from source. Args: node_type: The AST node class to i
python/little_kernel/core/passes/utils/preserve_attributes.py:62
↓ 19 callersFunctionld_acquire
(ptr, scope: core.constexpr = "gpu", _semantic=None)
python/triton_dist/language/extra/cuda/language_extra.py:682
↓ 18 callersFunctionbuild_kernel
Build a LittleKernel kernel with standard passes.
python/little_kernel/benchmark/utils.py:97
↓ 18 callersFunctioncodegen_with_inference
Helper function to codegen with proper type inference.
python/little_kernel/tests/unit/test_codegen_comprehensive.py:43
↓ 18 callersMethodcopy
(active)
python/setup.py:195
↓ 18 callersMethodget_type
Get the LLType of a value (for mixin compatibility).
python/little_kernel/codegen/special_struct/translator.py:116
↓ 17 callersMethoddata_ptr
(self)
python/triton_dist/utils.py:1198
↓ 17 callersFunctionget_gpu_info
Retrieve comprehensive GPU information. Returns: dict with keys: name, sm_count, sm_arch, clock_mhz, l2_size_bytes, memory_bytes,
python/little_kernel/benchmark/utils.py:46
↓ 17 callersFunctionget_results_dir
Get or create results directory.
python/little_kernel/benchmark/utils.py:181
↓ 17 callersFunctionget_torch_prof_ctx
(do_prof: bool)
python/triton_dist/profiler_utils.py:291
↓ 17 callersMethodis_pointer
Check if the type is a pointer
python/little_kernel/core/type_system.py:43
↓ 17 callersFunctionlog
(rank, msg)
python/little_kernel/design/test_flashcomm_torchrun.py:135
↓ 17 callersFunctionprint_gpu_info
Pretty-print GPU information.
python/little_kernel/benchmark/utils.py:80
↓ 17 callersMethodzero_
(self)
python/little_kernel/design/test_flashcomm_torchrun.py:117
↓ 16 callersFunction_mori_shmem_free_sync
Sync, free symmetric memory, sync. Use _mori_ptr when present (mori tensor), else data_ptr().
python/triton_dist/layers/amd/ep_a2a_layer.py:56
↓ 16 callersFunctionget_struct_stub_info
Get struct stub information for a Python class name.
python/little_kernel/language/intrin/struct_stub.py:223
↓ 16 callersFunctionwait_until_max_gpu_clock_or_warning
(device_id=None, timeout_sec=10)
python/triton_dist/utils.py:958
next →1–100 of 5,103, ranked by callers