Skip to content

Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.

436 B
Raw Blame
#pragma once

#ifndef __linux__
    #include <intrin.h>
#endif

bool is_avx2_supported();
bool is_f16c_supported();

#ifdef __linux__
    #define AVX2_TARGET __attribute__((target("avx2")))
    #define AVX2_F16C_TARGET __attribute__((target("avx2,f16c")))
    #define AVX2_TARGET_OPTIONAL __attribute__((target_clones("avx2","default")))
#else
    #define AVX2_TARGET
    #define AVX2_F16C_TARGET
    #define AVX2_TARGET_OPTIONAL
#endif