Source code for bitorch_engine.layers.qconv.nbit.cutlass.extension

from pathlib import Path

from bitorch_engine.utils.cuda_extension import get_cuda_extension

CUDA_REQUIRED = True
CUTLASS_REQUIRED = True


[docs] def get_ext(path: Path): """ Get CUDA extension for a specified path. Args: path (Path): The path to the directory containing CUDA extension files. Returns: Extension: The CUDA extension object. """ return get_cuda_extension( path, relative_name='q4_conv_cutlass', relative_sources=[ 'q4_conv_cutlass.cpp', 'q4_conv_cutlass_kernel.cu', ] )