MCPcopy Create free account

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

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

Functionalloc_fn
(size: int, alignment: int, stream: Optional[int])
python/triton_dist/kernels/nvidia/allgather_group_gemm.py:934
Functionalloc_fn
(size: int, alignment: int, stream: Optional[int])
python/triton_dist/kernels/nvidia/allgather_gemm.py:690
Functionalloc_fn
(size: int, alignment: int, stream: Optional[int])
python/triton_dist/kernels/nvidia/moe_reduce_ar.py:242
Functionalloc_fn
(size: int, alignment: int, stream: Optional[int])
python/triton_dist/kernels/nvidia/gemm.py:895
Functionalloc_fn
(size, alignment, stream)
python/triton_dist/kernels/nvidia/gemm_allreduce.py:629
Functionalloc_fn
(size: int, alignment: int, stream: Optional[int])
python/triton_dist/kernels/nvidia/moe_reduce_rs.py:848
Functionalloc_fn
(size, alignment, stream)
python/triton_dist/kernels/nvidia/sp_ulysess_qkv_gemm_all2all.py:155
Functionalloc_fn
(size, alignment, stream)
python/triton_dist/kernels/nvidia/reduce_scatter.py:744
Functionalloc_fn
(size: int, alignment: int, stream: Optional[int])
python/triton_dist/kernels/nvidia/sp_ulysess_o_all2all_gemm.py:274
Functionalloc_fn
(size: int, alignment: int, stream: Optional[int])
python/triton_dist/kernels/nvidia/gemm_reduce_scatter.py:662
Functionalloc_fn
(size: int, alignment: int, stream: Optional[int])
tutorials/07-overlapping-allgather-gemm.py:406
Functionalloc_fn
(size: int, alignment: int, stream: Optional[int])
tutorials/06-inter-node-reduce-scatter.py:412
Functionalloc_fn
(size: int, alignment: int, stream: Optional[int])
tutorials/05-intra-node-reduce-scatter.py:129
Functionalloc_fn
(size: int, alignment: int, stream: Optional[int])
tutorials/08-overlapping-gemm-reduce-scatter.py:315
Functionalloc_local_memory
Allocate local memory with the given number of elements.
python/little_kernel/language/intrin/memory.py:63
Functionalloc_local_memory_eval_arg_type
(ctx, var_name, dtype, elems)
python/little_kernel/language/intrin/memory.py:55
Functionalloc_local_zeros
Allocate local memory and zero it (internal: inserted by pass for x = ll.zeros(..., scope=\"local\")).
python/little_kernel/language/intrin/memory.py:169
Functionalloc_local_zeros_eval_arg_type
(ctx, var_name, dtype, elems)
python/little_kernel/language/intrin/memory.py:160
Functionalloc_shared_memory
Allocate static shared memory with the given number of elements. Args: var_name: Variable name for the shared memory dtype: D
python/little_kernel/language/intrin/memory.py:93
Functionalloc_shared_memory_eval_arg_type
Set variable type in context for shared memory allocation.
python/little_kernel/language/intrin/memory.py:86
Functionallreduce_config_factory
(**kwargs)
python/triton_dist/mega_triton_kernel/tasks/allreduce.py:45
Functionallreduce_double_tree_intra_node
WARNING: this function has performance issus to be fixed. try to verify the double-tree method. Args: ctx (AllReduceContext): The all-re
python/triton_dist/kernels/nvidia/allreduce.py:895
Functionallreduce_double_tree_intra_node_kernel
( symm_input_ptr, symm_signal_ptr, output_ptr, tree0_parent: tl.constexpr, tree0_child0: t
python/triton_dist/kernels/nvidia/allreduce.py:216
Functionallreduce_one_shot_multimem_intra_node
One-shot reduces symm buffer using the multimem.ld_reduce instruction. Raises: NotImplementedError: Currently supports bfloat16 and floa
python/triton_dist/kernels/nvidia/allreduce.py:849
Functionallreduce_one_shot_multimem_intra_node_kernel
( in_ptr, symm_in_ptr, symm_signal_ptr, out_ptr, elems, grid_barrier_ptr, rank,
python/triton_dist/kernels/nvidia/allreduce.py:603
Functionallreduce_one_shot_push_intra_node
Performs a reduction operation using a simple, native implementation. This op uses the most basic reduction algorithm, which is only efficient
python/triton_dist/kernels/nvidia/allreduce.py:686
Functionallreduce_one_shot_push_intra_node_kernel
( input_ptr, output_ptr, symm_signal_ptr, symm_buffer_ptr, grid_barrier_ptr, rank,
python/triton_dist/kernels/nvidia/allreduce.py:334
Functionallreduce_one_shot_tma_push_intra_node
P2P sends full-length copy of local tensor to other ranks, then uses TMA reduce. Args: straggler_option (_type_, optional): Simulates th
python/triton_dist/kernels/nvidia/allreduce.py:798
Functionallreduce_one_shot_tma_push_intra_node_kernel
( M, N, input_ptr, output_ptr, symm_signal_ptr, symm_recv_ptr, grid_barrier_ptr,
python/triton_dist/kernels/nvidia/allreduce.py:388
Functionallreduce_op
()
python/triton_dist/test/nvidia/test_allreduce.py:159
Functionallreduce_task_compute
( task_base_info: TaskBaseInfo, scoreboard: Scoreboard, BLOCK_SIZE: tl.constexpr, )
python/triton_dist/mega_triton_kernel/kernels/allreduce.py:50
Functionallreduce_two_shot_multimem_intra_node
Performs intra-node all-reduce in two shots using `multimem.ld_reduce` and `multimem.st`. Each rank does in-place all-reduce to a shard of t
python/triton_dist/kernels/nvidia/allreduce.py:970
Functionallreduce_two_shot_multimem_intra_node_kernel
(symm_ptr, grid_barrier_ptr, elems, rank, world_size, use_co
python/triton_dist/kernels/nvidia/allreduce.py:661
Functionallreduce_two_shot_multimem_st_intra_node
DEPRECATED: This method is less efficient and you'd better use `allreduce_two_shot_multimem_intra_node` instead. This method use libnvshmem.
python/triton_dist/kernels/nvidia/allreduce.py:1032
Functionallreduce_two_shot_multimem_st_intra_node_kernel
( input_ptr, symm_out_ptr, symm_signal_ptr, grid_barrier_ptr, rank, world_size, n_
python/triton_dist/kernels/nvidia/allreduce.py:529
Functionallreduce_two_shot_push_intra_node
Performs an intra-node all-reduce using a two-shot algorithm. This algorithm consists of two main phases: 1. All-to-All and reduce 2. Al
python/triton_dist/kernels/nvidia/allreduce.py:734
Functionallreduce_two_shot_push_intra_node_kernel
( input_ptr, symm_out_ptr, symm_signal_ptr, grid_barrier_ptr, # output out_ptr, ra
python/triton_dist/kernels/nvidia/allreduce.py:448
Functionaot_compile_spaces
(args)
python/triton_dist/tools/compile_aot.py:62
Functionapply_rotary_pos_emb_kernel
Triton kernel for applying Rotary Position Embedding. New layout: x is [bsz, seq, head, head_dim], pos_ids is [bsz, seq]
python/triton_dist/layers/amd/tp_attn.py:72
Functionarrive_inc
(barrier_ptr, thread_idx, value, scope: core.constexpr)
python/triton_dist/language/extra/cuda/language_extra.py:555
Functionarrive_inc_asm
(barrier_ptr, thread_idx, value, scope: core.constexpr = "gpu", _semantic=None)
python/triton_dist/language/extra/cuda/language_extra.py:563
Functionasm
Placeholder function for inline assembly in simple_builtin functions. This function should never be called at runtime. It's only used as
python/little_kernel/language/simple_builtin.py:76
Functionatomic_add
atomicAdd on a pointer. Returns old value.
python/little_kernel/language/intrin/atomic.py:58
Functionatomic_add_int64
Atomic add int64 (thread scope). Args: dest: Symmetric address on target PE val: Value to add pe: Target PE number
python/triton_dist/language/extra/hip/libmori_shmem_device.py:1124
Functionatomic_add_per_warp
(barrier_ptr, value, scope: core.constexpr, semantic: core.constexpr)
python/triton_dist/language/extra/cuda/language_extra.py:802
Functionatomic_add_uint64
Atomic add uint64 (thread scope, no fetch). Args: dest: Symmetric address on target PE val: Value to add pe: Target P
python/triton_dist/language/extra/hip/libmori_shmem_device.py:1009
Functionatomic_and
atomicAnd on a pointer. Returns old value.
python/little_kernel/language/intrin/atomic.py:150
Functionatomic_cas
semantic should be one of ["monotonic", "release", "acquire", "acq_rel] scope should be one of ["workgroup", "agent", "system] semantic o
python/triton_dist/language/extra/hip/language_extra.py:105
Functionatomic_cas
( ptr, value, target_value, scope: core.constexpr, semantic: core.constexpr, _semantic
python/triton_dist/language/extra/cuda/language_extra.py:880
Functionatomic_cas
Device-scope atomicCAS. Returns old value.
python/little_kernel/language/intrin/atomic.py:90
Functionatomic_cas_system
System-scope atomicCAS. Returns old value.
python/little_kernel/language/intrin/atomic.py:74
Functionatomic_fetch_add_int64
Atomic fetch-add int64 (thread scope). Args: dest: Symmetric address on target PE val: Value to add pe: Target PE num
python/triton_dist/language/extra/hip/libmori_shmem_device.py:1150
Functionatomic_fetch_add_uint64
Atomic fetch-add uint64 (thread scope). Args: dest: Symmetric address on target PE val: Value to add pe: Target PE nu
python/triton_dist/language/extra/hip/libmori_shmem_device.py:1034
Functionatomic_int64_fetch
Generic atomic fetch operation on int64 (thread scope). Args: dest: Symmetric address on target PE val: Value for atomic oper
python/triton_dist/language/extra/hip/libmori_shmem_device.py:1091
Functionatomic_int64_nonfetch
Generic atomic non-fetch operation on int64 (thread scope). Args: dest: Symmetric address on target PE val: Value for atomic
python/triton_dist/language/extra/hip/libmori_shmem_device.py:1063
Functionatomic_max
atomicMax on a pointer. Returns old value.
python/little_kernel/language/intrin/atomic.py:120
Functionatomic_min
atomicMin on a pointer. Returns old value.
python/little_kernel/language/intrin/atomic.py:105
Functionatomic_or
atomicOr on a pointer. Returns old value.
python/little_kernel/language/intrin/atomic.py:135
Functionatomic_uint64_fetch
Atomic fetch uint64 operation (thread scope). Args: dest: Symmetric address on target PE val: Value to be used in atomic oper
python/triton_dist/language/extra/hip/libmori_shmem_device.py:976
Functionattention_ref
(q, k, v, IS_CAUSAL)
python/triton_dist/mega_triton_kernel/test/ops/test_qkv_proj_qk_norm_rope_attn.py:49
Functionattention_ref
(input_tensors, BATCH, N_CTX, Q_HEAD, KV_HEAD, HEAD_DIM, IS_CAUSAL, qkv_pack)
python/triton_dist/mega_triton_kernel/test/ops/test_flash_attn.py:37
Functionattn_config_factory
(**kwargs)
python/triton_dist/mega_triton_kernel/tasks/flash_decode.py:65
Functionattn_gqa_fwd_batch_decode_combine_task_compute
( task_base_info: TaskBaseInfo, scoreboard: Scoreboard, NUM_Q_HEADS: tl.constexpr, V_HEAD_DIM:
python/triton_dist/mega_triton_kernel/kernels/flash_decode.py:166
Functionattn_gqa_fwd_batch_decode_split_kv_task_compute
( task_base_info: TaskBaseInfo, scoreboard: Scoreboard, SM_SCALE: tl.constexpr, SOFT_CAP: tl.c
python/triton_dist/mega_triton_kernel/kernels/flash_decode.py:33
Functionautotune
(config_space, key_fn, prune_fn=None)
python/triton_dist/tune.py:498
Methodbackward
(ctx, dy)
python/triton_dist/function/nvidia/ep_moe_fused.py:186
Functionballot_sync
Warp ballot -- returns bitmask of threads where predicate is true.
python/little_kernel/language/intrin/simt.py:183
Functionballot_sync
Warp ballot: returns mask of threads where pred is non-zero.
python/little_kernel/language/intrin/cuda_asm.py:188
Functionballot_vote_kernel
(input, output, value)
python/triton_dist/test/nvidia/test_language_extra.py:260
Functionbarrier
(team, _semantic=None)
python/triton_dist/language/extra/libshmem_device.py:126
Functionbarrier
(team, _semantic=None)
python/triton_dist/language/extra/cuda/libnvshmem_device.py:243
Functionbarrier_all
(_semantic=None)
python/triton_dist/language/extra/libshmem_device.py:96
Functionbarrier_all
(_semantic=None)
python/triton_dist/language/extra/hip/libmori_shmem_device.py:56
Functionbarrier_all
(_semantic=None)
python/triton_dist/language/extra/hip/librocshmem_device.py:418
Functionbarrier_all
(_semantic=None)
python/triton_dist/language/extra/maca/libmxshmem_device.py:231
Functionbarrier_all
(_semantic=None)
python/triton_dist/language/extra/ascend/libaclshmem_device.py:78
Functionbarrier_all
(_semantic=None)
python/triton_dist/language/extra/cuda/libnvshmem_device.py:272
Functionbarrier_all_block
(_semantic=None)
python/triton_dist/language/extra/libshmem_device.py:106
Functionbarrier_all_block
(_semantic=None)
python/triton_dist/language/extra/hip/libmori_shmem_device.py:68
Functionbarrier_all_block
(_semantic=None)
python/triton_dist/language/extra/maca/libmxshmem_device.py:236
Functionbarrier_all_block
(_semantic=None)
python/triton_dist/language/extra/cuda/libnvshmem_device.py:277
Functionbarrier_all_intra_node_config_factory
(**kwargs)
python/triton_dist/mega_triton_kernel/tasks/barrier.py:67
Functionbarrier_all_intra_node_kernel
( local_rank, rank, num_ranks, local_buf_ptr, global_buf_ptr, symm_barrier_ptr, sy
python/triton_dist/kernels/nvidia/allgather_gemm.py:114
Functionbarrier_all_intra_node_kernel
( local_rank, rank, num_ranks, symm_barrier_ptr, symm_sync_ptr, flag_value, use_co
python/triton_dist/kernels/nvidia/all_to_all_single_gemm.py:282
Functionbarrier_all_intra_node_task_compute
( task_base_info: TaskBaseInfo, scoreboard: Scoreboard, )
python/triton_dist/mega_triton_kernel/kernels/barrier.py:50
Functionbarrier_all_kernel_v2
(rank, num_ranks, comm_buf_ptr)
python/triton_dist/kernels/amd/common_ops.py:153
Functionbarrier_all_vec
(_semantic=None)
python/triton_dist/language/extra/libshmem_device.py:101
Functionbarrier_all_vec
(_semantic=None)
python/triton_dist/language/extra/ascend/libaclshmem_device.py:92
Functionbarrier_all_warp
(_semantic=None)
python/triton_dist/language/extra/libshmem_device.py:111
Functionbarrier_all_warp
(_semantic=None)
python/triton_dist/language/extra/maca/libmxshmem_device.py:241
Functionbarrier_all_warp
(_semantic=None)
python/triton_dist/language/extra/cuda/libnvshmem_device.py:282
Functionbarrier_all_wave
(_semantic=None)
python/triton_dist/language/extra/libshmem_device.py:116
Functionbarrier_all_wave
(_semantic=None)
python/triton_dist/language/extra/hip/librocshmem_device.py:423
Functionbarrier_all_wg
(_semantic=None)
python/triton_dist/language/extra/libshmem_device.py:121
Functionbarrier_all_wg
(_semantic=None)
python/triton_dist/language/extra/hip/librocshmem_device.py:428
Functionbarrier_block
(team, _semantic=None)
python/triton_dist/language/extra/libshmem_device.py:131
Functionbarrier_block
(team, _semantic=None)
python/triton_dist/language/extra/cuda/libnvshmem_device.py:248
Functionbarrier_warp
(team, _semantic=None)
python/triton_dist/language/extra/libshmem_device.py:136
Functionbarrier_warp
(team, _semantic=None)
python/triton_dist/language/extra/cuda/libnvshmem_device.py:253
Functionbarrier_worker
(rank, gpu_id)
python/little_kernel/design/test_flashcomm_multi_gpu.py:635
← previousnext →3,001–3,100 of 5,103, ranked by callers