MCPcopy Create free account

hub / github.com/AlphaGPU/leetgpu-challenges / functions

Functions919 in github.com/AlphaGPU/leetgpu-challenges

Functionsolve
(input: torch.Tensor, output: torch.Tensor, N: int)
challenges/hard/36_radix_sort/starter/starter.pytorch.py:5
Functionsolve
(input: cute.Tensor, output: cute.Tensor, N: cute.Int32)
challenges/hard/36_radix_sort/starter/starter.cute.py:7
Functionsolve
( grid: jax.Array, rows: int, cols: int, start_row: int, start_col: int, end_row: int,
challenges/hard/46_bfs_shortest_path/starter/starter.jax.py:7
Functionsolve
( grid: torch.Tensor, result: torch.Tensor, rows: int, cols: int, start_row: int, star
challenges/hard/46_bfs_shortest_path/starter/starter.triton.py:7
Functionsolve
( grid: torch.Tensor, result: torch.Tensor, rows: int, cols: int, start_row: int, star
challenges/hard/46_bfs_shortest_path/starter/starter.pytorch.py:5
Functionsolve
( grid: cute.Tensor, result: cute.Tensor, rows: cute.Int32, cols: cute.Int32, start_row: c
challenges/hard/46_bfs_shortest_path/starter/starter.cute.py:7
Functionsolve
(Q: jax.Array, K: jax.Array, V: jax.Array, M: int, d: int)
challenges/hard/53_casual_attention/starter/starter.jax.py:7
Functionsolve
(Q: torch.Tensor, K: torch.Tensor, V: torch.Tensor, output: torch.Tensor, M: int, d: int)
challenges/hard/53_casual_attention/starter/starter.triton.py:7
Functionsolve
(Q: torch.Tensor, K: torch.Tensor, V: torch.Tensor, output: torch.Tensor, M: int, d: int)
challenges/hard/53_casual_attention/starter/starter.pytorch.py:5
Functionsolve
( Q: cute.Tensor, K: cute.Tensor, V: cute.Tensor, output: cute.Tensor, M: cute.Int32,
challenges/hard/53_casual_attention/starter/starter.cute.py:7
Functionsolve
( Q: jax.Array, K: jax.Array, V: jax.Array, M: int, N: int, d: int, alpha: float )
challenges/medium/55_attn_w_linear_bias/starter/starter.jax.py:7
Functionsolve
( Q: torch.Tensor, K: torch.Tensor, V: torch.Tensor, output: torch.Tensor, M: int, N:
challenges/medium/55_attn_w_linear_bias/starter/starter.triton.py:7
Functionsolve
( Q: torch.Tensor, K: torch.Tensor, V: torch.Tensor, output: torch.Tensor, M: int, N:
challenges/medium/55_attn_w_linear_bias/starter/starter.pytorch.py:5
Functionsolve
( Q: cute.Tensor, K: cute.Tensor, V: cute.Tensor, output: cute.Tensor, M: cute.Int32,
challenges/medium/55_attn_w_linear_bias/starter/starter.cute.py:7
Functionsolve
(signal: jax.Array, M: int, N: int)
challenges/medium/78_2d_fft/starter/starter.jax.py:7
Functionsolve
(signal: torch.Tensor, spectrum: torch.Tensor, M: int, N: int)
challenges/medium/78_2d_fft/starter/starter.triton.py:7
Functionsolve
(signal: torch.Tensor, spectrum: torch.Tensor, M: int, N: int)
challenges/medium/78_2d_fft/starter/starter.pytorch.py:5
Functionsolve
(signal: cute.Tensor, spectrum: cute.Tensor, M: cute.Int32, N: cute.Int32)
challenges/medium/78_2d_fft/starter/starter.cute.py:7
Functionsolve
(y_samples: jax.Array, a: float, b: float, n_samples: int)
challenges/medium/35_monte_carlo_integration/starter/starter.jax.py:7
Functionsolve
(y_samples: torch.Tensor, result: torch.Tensor, a: float, b: float, n_samples: int)
challenges/medium/35_monte_carlo_integration/starter/starter.triton.py:7
Functionsolve
(y_samples: torch.Tensor, result: torch.Tensor, a: float, b: float, n_samples: int)
challenges/medium/35_monte_carlo_integration/starter/starter.pytorch.py:5
Functionsolve
( y_samples: cute.Tensor, result: cute.Tensor, a: cute.Float32, b: cute.Float32, n_samples
challenges/medium/35_monte_carlo_integration/starter/starter.cute.py:7
Functionsolve
( A: jax.Array, B: jax.Array, M: int, N: int, K: int, scale_A: float, scale_B: flo
challenges/medium/32_int8_quantized_matmul/starter/starter.jax.py:7
Functionsolve
( a: torch.Tensor, b: torch.Tensor, c: torch.Tensor, M: int, N: int, K: int, scale
challenges/medium/32_int8_quantized_matmul/starter/starter.triton.py:7
Functionsolve
( A: torch.Tensor, B: torch.Tensor, C: torch.Tensor, M: int, N: int, K: int, scale
challenges/medium/32_int8_quantized_matmul/starter/starter.pytorch.py:5
Functionsolve
( A: cute.Tensor, B: cute.Tensor, C: cute.Tensor, M: cute.Int32, N: cute.Int32, K: cut
challenges/medium/32_int8_quantized_matmul/starter/starter.cute.py:7
Functionsolve
(logits: jax.Array, M: int, E: int, k: int)
challenges/medium/67_moe_topk_gating/starter/starter.jax.py:7
Functionsolve
( logits: torch.Tensor, topk_weights: torch.Tensor, topk_indices: torch.Tensor, M: int, E:
challenges/medium/67_moe_topk_gating/starter/starter.triton.py:7
Functionsolve
( logits: torch.Tensor, topk_weights: torch.Tensor, topk_indices: torch.Tensor, M: int, E:
challenges/medium/67_moe_topk_gating/starter/starter.pytorch.py:5
Functionsolve
( logits: cute.Tensor, topk_weights: cute.Tensor, topk_indices: cute.Tensor, M: cute.Int32,
challenges/medium/67_moe_topk_gating/starter/starter.cute.py:7
Functionsolve
( Q: jax.Array, K: jax.Array, V: jax.Array, num_q_heads: int, num_kv_heads: int, seq_l
challenges/medium/80_grouped_query_attention/starter/starter.jax.py:7
Functionsolve
( Q: torch.Tensor, K: torch.Tensor, V: torch.Tensor, output: torch.Tensor, num_q_heads: in
challenges/medium/80_grouped_query_attention/starter/starter.triton.py:7
Functionsolve
( Q: torch.Tensor, K: torch.Tensor, V: torch.Tensor, output: torch.Tensor, num_q_heads: in
challenges/medium/80_grouped_query_attention/starter/starter.pytorch.py:5
Functionsolve
( Q: cute.Tensor, K: cute.Tensor, V: cute.Tensor, output: cute.Tensor, num_q_heads: cute.I
challenges/medium/80_grouped_query_attention/starter/starter.cute.py:7
Functionsolve
(a: jax.Array, x: jax.Array, B: int, L: int)
challenges/medium/82_linear_recurrence/starter/starter.jax.py:7
Functionsolve
(a: torch.Tensor, x: torch.Tensor, h: torch.Tensor, B: int, L: int)
challenges/medium/82_linear_recurrence/starter/starter.triton.py:7
Functionsolve
(a: torch.Tensor, x: torch.Tensor, h: torch.Tensor, B: int, L: int)
challenges/medium/82_linear_recurrence/starter/starter.pytorch.py:5
Functionsolve
(a: cute.Tensor, x: cute.Tensor, h: cute.Tensor, B: cute.Int32, L: cute.Int32)
challenges/medium/82_linear_recurrence/starter/starter.cute.py:7
Functionsolve
(input: jax.Array, N: int)
challenges/medium/16_prefix_sum/starter/starter.jax.py:7
Functionsolve
(data: torch.Tensor, output: torch.Tensor, n: int)
challenges/medium/16_prefix_sum/starter/starter.triton.py:7
Functionsolve
(input: torch.Tensor, output: torch.Tensor, N: int)
challenges/medium/16_prefix_sum/starter/starter.pytorch.py:5
Functionsolve
(input: cute.Tensor, output: cute.Tensor, N: cute.Int32)
challenges/medium/16_prefix_sum/starter/starter.cute.py:7
Functionsolve
(A: jax.Array, N: int)
challenges/medium/72_stream_compaction/starter/starter.jax.py:7
Functionsolve
(A: torch.Tensor, N: int, out: torch.Tensor)
challenges/medium/72_stream_compaction/starter/starter.triton.py:7
Functionsolve
(A: torch.Tensor, N: int, out: torch.Tensor)
challenges/medium/72_stream_compaction/starter/starter.pytorch.py:5
Functionsolve
(A: cute.Tensor, N: cute.Uint32, out: cute.Tensor)
challenges/medium/72_stream_compaction/starter/starter.cute.py:7
Functionsolve
(input: jax.Array, N: int, k: int)
challenges/medium/29_top_k_selection/starter/starter.jax.py:7
Functionsolve
(input: torch.Tensor, output: torch.Tensor, N: int, k: int)
challenges/medium/29_top_k_selection/starter/starter.triton.py:7
Functionsolve
(input: torch.Tensor, output: torch.Tensor, N: int, k: int)
challenges/medium/29_top_k_selection/starter/starter.pytorch.py:5
Functionsolve
(input: cute.Tensor, output: cute.Tensor, N: cute.Int32, k: cute.Int32)
challenges/medium/29_top_k_selection/starter/starter.cute.py:7
Functionsolve
( input: jax.Array, gamma: jax.Array, beta: jax.Array, N: int, C: int, eps: float )
challenges/medium/40_batch_normalization/starter/starter.jax.py:7
Functionsolve
( input: torch.Tensor, gamma: torch.Tensor, beta: torch.Tensor, output: torch.Tensor, N: i
challenges/medium/40_batch_normalization/starter/starter.triton.py:7
Functionsolve
( input: torch.Tensor, gamma: torch.Tensor, beta: torch.Tensor, output: torch.Tensor, N: i
challenges/medium/40_batch_normalization/starter/starter.pytorch.py:5
Functionsolve
( input: cute.Tensor, gamma: cute.Tensor, beta: cute.Tensor, output: cute.Tensor, N: cute.
challenges/medium/40_batch_normalization/starter/starter.cute.py:7
Functionsolve
(logits: jax.Array, p: jax.Array, seed: jax.Array, vocab_size: int)
challenges/medium/60_top_p_sampling/starter/starter.jax.py:6
Functionsolve
( logits: torch.Tensor, p: torch.Tensor, seed: torch.Tensor, sampled_token: torch.Tensor,
challenges/medium/60_top_p_sampling/starter/starter.triton.py:6
Functionsolve
( logits: torch.Tensor, p: torch.Tensor, seed: torch.Tensor, sampled_token: torch.Tensor,
challenges/medium/60_top_p_sampling/starter/starter.pytorch.py:4
Functionsolve
( logits: cute.Tensor, p: cute.Tensor, seed: cute.Tensor, sampled_token: cute.Tensor, voca
challenges/medium/60_top_p_sampling/starter/starter.cute.py:6
Functionsolve
( Q: jax.Array, K: jax.Array, V: jax.Array, seq_len: int, d_model: int, gamma: float,
challenges/medium/92_decaying_causal_attention/starter/starter.jax.py:7
Functionsolve
( Q: torch.Tensor, K: torch.Tensor, V: torch.Tensor, output: torch.Tensor, seq_len: int,
challenges/medium/92_decaying_causal_attention/starter/starter.triton.py:7
Functionsolve
( Q: torch.Tensor, K: torch.Tensor, V: torch.Tensor, output: torch.Tensor, seq_len: int,
challenges/medium/92_decaying_causal_attention/starter/starter.pytorch.py:5
Functionsolve
( Q: cute.Tensor, K: cute.Tensor, V: cute.Tensor, output: cute.Tensor, seq_len: cute.Int32
challenges/medium/92_decaying_causal_attention/starter/starter.cute.py:7
Functionsolve
(input: jax.Array, rows: int, cols: int)
challenges/medium/69_jacobi_stencil_2d/starter/starter.jax.py:7
Functionsolve
(input: torch.Tensor, output: torch.Tensor, rows: int, cols: int)
challenges/medium/69_jacobi_stencil_2d/starter/starter.triton.py:7
Functionsolve
(input: torch.Tensor, output: torch.Tensor, rows: int, cols: int)
challenges/medium/69_jacobi_stencil_2d/starter/starter.pytorch.py:5
Functionsolve
(input: cute.Tensor, output: cute.Tensor, rows: cute.Int32, cols: cute.Int32)
challenges/medium/69_jacobi_stencil_2d/starter/starter.cute.py:7
Functionsolve
( input: jax.Array, N: int, M: int, S_ROW: int, E_ROW: int, S_COL: int, E_COL: int )
challenges/medium/48_2d_subarray_sum/starter/starter.jax.py:7
Functionsolve
( input: torch.Tensor, output: torch.Tensor, N: int, M: int, S_ROW: int, E_ROW: int,
challenges/medium/48_2d_subarray_sum/starter/starter.triton.py:7
Functionsolve
( input: torch.Tensor, output: torch.Tensor, N: int, M: int, S_ROW: int, E_ROW: int,
challenges/medium/48_2d_subarray_sum/starter/starter.pytorch.py:5
Functionsolve
( input: cute.Tensor, output: cute.Tensor, N: cute.Int32, M: cute.Int32, S_ROW: cute.Int32
challenges/medium/48_2d_subarray_sum/starter/starter.cute.py:7
Functionsolve
( x: jax.Array, W_gate: jax.Array, W_up: jax.Array, W_down: jax.Array, M: int, d_model
challenges/medium/84_swiglu_mlp_block/starter/starter.jax.py:7
Functionsolve
( x: torch.Tensor, W_gate: torch.Tensor, W_up: torch.Tensor, W_down: torch.Tensor, output:
challenges/medium/84_swiglu_mlp_block/starter/starter.triton.py:7
Functionsolve
( x: torch.Tensor, W_gate: torch.Tensor, W_up: torch.Tensor, W_down: torch.Tensor, output:
challenges/medium/84_swiglu_mlp_block/starter/starter.pytorch.py:5
Functionsolve
( x: cute.Tensor, W_gate: cute.Tensor, W_up: cute.Tensor, W_down: cute.Tensor, output: cut
challenges/medium/84_swiglu_mlp_block/starter/starter.cute.py:7
Functionsolve
(input: jax.Array, N: int, K: int)
challenges/medium/43_count_array_element/starter/starter.jax.py:7
Functionsolve
(input: torch.Tensor, output: torch.Tensor, N: int, K: int)
challenges/medium/43_count_array_element/starter/starter.triton.py:7
Functionsolve
(input: torch.Tensor, output: torch.Tensor, N: int, K: int)
challenges/medium/43_count_array_element/starter/starter.pytorch.py:5
Functionsolve
(input: cute.Tensor, output: cute.Tensor, N: cute.Int32, K: cute.Int32)
challenges/medium/43_count_array_element/starter/starter.cute.py:7
Functionsolve
(A: jax.Array, B: jax.Array, N: int)
challenges/medium/17_dot_product/starter/starter.jax.py:7
Functionsolve
(a: torch.Tensor, b: torch.Tensor, result: torch.Tensor, n: int)
challenges/medium/17_dot_product/starter/starter.triton.py:7
Functionsolve
(A: torch.Tensor, B: torch.Tensor, result: torch.Tensor, N: int)
challenges/medium/17_dot_product/starter/starter.pytorch.py:5
Functionsolve
(A: cute.Tensor, B: cute.Tensor, result: cute.Tensor, N: cute.Int32)
challenges/medium/17_dot_product/starter/starter.cute.py:7
Functionsolve
(Q: jax.Array, cos: jax.Array, sin: jax.Array, M: int, D: int)
challenges/medium/61_rope_embedding/starter/starter.jax.py:7
Functionsolve
( Q: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor, output: torch.Tensor, M: int, D: int )
challenges/medium/61_rope_embedding/starter/starter.triton.py:7
Functionsolve
( Q: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor, output: torch.Tensor, M: int, D: int )
challenges/medium/61_rope_embedding/starter/starter.pytorch.py:5
Functionsolve
( Q: cute.Tensor, cos: cute.Tensor, sin: cute.Tensor, output: cute.Tensor, M: cute.Int32,
challenges/medium/61_rope_embedding/starter/starter.cute.py:7
Functionsolve
(input: jax.Array, N: int, P: int)
challenges/medium/37_matrix_power/starter/starter.jax.py:7
Functionsolve
(input: torch.Tensor, output: torch.Tensor, N: int, P: int)
challenges/medium/37_matrix_power/starter/starter.triton.py:7
Functionsolve
(input: torch.Tensor, output: torch.Tensor, N: int, P: int)
challenges/medium/37_matrix_power/starter/starter.pytorch.py:5
Functionsolve
(input: cute.Tensor, output: cute.Tensor, N: cute.Int32, P: cute.Int32)
challenges/medium/37_matrix_power/starter/starter.cute.py:7
Functionsolve
(logits: jax.Array, true_labels: jax.Array, N: int, C: int)
challenges/medium/25_categorical_cross_entropy_loss/starter/starter.jax.py:7
Functionsolve
(logits: torch.Tensor, true_labels: torch.Tensor, loss: torch.Tensor, N: int, C: int)
challenges/medium/25_categorical_cross_entropy_loss/starter/starter.triton.py:7
Functionsolve
(logits: torch.Tensor, true_labels: torch.Tensor, loss: torch.Tensor, N: int, C: int)
challenges/medium/25_categorical_cross_entropy_loss/starter/starter.pytorch.py:5
Functionsolve
( logits: cute.Tensor, true_labels: cute.Tensor, loss: cute.Tensor, N: cute.Int32, C: cute.Int32 )
challenges/medium/25_categorical_cross_entropy_loss/starter/starter.cute.py:7
Functionsolve
( token_ids: jax.Array, position_ids: jax.Array, token_embeddings: jax.Array, position_embeddi
challenges/medium/106_token_embedding_layer/starter/starter.jax.py:7
Functionsolve
( token_ids: torch.Tensor, position_ids: torch.Tensor, token_embeddings: torch.Tensor, positio
challenges/medium/106_token_embedding_layer/starter/starter.triton.py:8
Functionsolve
( token_ids: torch.Tensor, position_ids: torch.Tensor, token_embeddings: torch.Tensor, positio
challenges/medium/106_token_embedding_layer/starter/starter.pytorch.py:6
Functionsolve
( token_ids: cute.Tensor, position_ids: cute.Tensor, token_embeddings: cute.Tensor, position_e
challenges/medium/106_token_embedding_layer/starter/starter.cute.py:8
Functionsolve
(A: jax.Array, B: jax.Array, BATCH: int, M: int, N: int, K: int)
challenges/medium/57_fp16_batched_matmul/starter/starter.jax.py:7
Functionsolve
(a: torch.Tensor, b: torch.Tensor, c: torch.Tensor, BATCH: int, M: int, N: int, K: int)
challenges/medium/57_fp16_batched_matmul/starter/starter.triton.py:7
← previousnext →601–700 of 919, ranked by callers