This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import triton | |
import triton.language as tl | |
@triton.jit | |
def mxfp_matmul( | |
a_ptr, b_ptr, output_ptr, | |
a_scale, b_scale, | |
M, N, K, | |
stride_scale: tl.constexpr, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import torch | |
import triton | |
import triton.language as tl | |
@triton.jit | |
def scaled_dot_kernel( | |
# Pointers to matrices | |
a_ptr, b_ptr, output_ptr, |
OlderNewer