Files
Eric BuehlerandGitHub c8767caa3a Add MXFP4 gather gemm support (#1615)
* Add mxp4 metal quantized matmuls

* Add scale to float

* Update quantized kernel

* Updated

* Fix compilation error

* Add mxfp4 quant method

* Update check

* Fix deser
2025-08-04 12:39:40 -04:00

61 lines
2.8 KiB
Plaintext

#include <cstdint>
#include <stdio.h>
// Dummy implementations when CUDA is not available or FP8 is not supported
extern "C" void launch_dequant_fp8_vector_kernel_f32(const void *d_weight,
const float *d_scale,
float *d_output,
size_t num_elements,
void *stream) {
fprintf(
stderr,
"FP8 vector dequantization kernels are not available in this build.\n");
}
extern "C" void launch_dequant_fp8_vector_kernel_f16(const void *d_weight,
const float *d_scale,
void *d_output,
size_t num_elements,
void *stream) {
fprintf(
stderr,
"FP8 vector dequantization kernels are not available in this build.\n");
}
extern "C" void launch_dequant_fp8_vector_kernel_bf16(const void *d_weight,
const float *d_scale,
void *d_output,
size_t num_elements,
void *stream) {
fprintf(
stderr,
"FP8 vector dequantization kernels are not available in this build.\n");
}
extern "C" void launch_quant_fp8_vector_kernel_f32(const float *d_input,
void *d_weight,
float *d_scale,
size_t num_elements,
void *stream) {
fprintf(stderr,
"FP8 vector quantization kernels are not available in this build.\n");
}
extern "C" void launch_quant_fp8_vector_kernel_f16(const void *d_input,
void *d_weight,
float *d_scale,
size_t num_elements,
void *stream) {
fprintf(stderr,
"FP8 vector quantization kernels are not available in this build.\n");
}
extern "C" void launch_quant_fp8_vector_kernel_bf16(const void *d_input,
void *d_weight,
float *d_scale,
size_t num_elements,
void *stream) {
fprintf(stderr,
"FP8 vector quantization kernels are not available in this build.\n");
}