File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
ktransformers/ktransformers_ext/cpu_backend/vendors Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11#pragma once
22
33#include <musa_runtime.h>
4+ #include <musa_bf16.h>
45
56#define cudaLaunchHostFunc musaLaunchHostFunc
67#define cudaStream_t musaStream_t
7- #define cudaHostFn_t musaHostFn_t
8+ #define cudaHostFn_t musaHostFn_t
9+ #define nv_bfloat16 mt_bfloat16
Original file line number Diff line number Diff line change @@ -350,6 +350,7 @@ def build_extension(self, ext) -> None:
350350 "at::cuda" : "at::musa" ,
351351 "#include <ATen/cuda/CUDAContext.h>" : "#include \" torch_musa/csrc/aten/musa/MUSAContext.h\" " ,
352352 "#include <c10/cuda/CUDAGuard.h>" : "#include \" torch_musa/csrc/core/MUSAGuard.h\" " ,
353+ "nv_bfloat16" : "mt_bfloat16" ,
353354 }).run ()
354355 ops_module = MUSAExtension ('KTransformersOps' , [
355356 'ktransformers/ktransformers_ext/cuda_musa/custom_gguf/dequant.mu' ,
You can’t perform that action at this time.
0 commit comments