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.

ck_fmha build: find the GCC install dir from gcc itself instead of a hard-coded GCC 13 path

YanissAmza51a0f330793
diff --git a/tools/strix_halo/ck_fmha/build.sh b/tools/strix_halo/ck_fmha/build.sh
index 0f9ac7c..e6680c3 100755
--- a/tools/strix_halo/ck_fmha/build.sh
+++ b/tools/strix_halo/ck_fmha/build.sh
@@ -19,7 +19,7 @@ for c in "${EXL3_ROCM_SDK:-/nonexistent}/lib/llvm/bin/amdclang++" "${EXL3_ROCM_S
if [ -z "$CXX" ] && [ -x "$c" ]; then CXX=$c; fi
done
: "${CXX:?no amdclang++ found: set ROCM_CLANG}"
-GCC_DIR=${GCC_DIR:-/usr/lib/gcc/x86_64-linux-gnu/13}
+GCC_DIR=${GCC_DIR:-$(dirname "$(gcc -print-libgcc-file-name)")}
F=$CK_SRC/example/ck_tile/01_fmha
B=$(mktemp -d); trap 'rm -rf "$B" "${FETCHED:-}"' EXIT
mkdir -p "$B/gen" "$B/obj" "$(dirname "$OUT")"
diff --git a/tools/strix_halo/ck_fmha/build_mla.sh b/tools/strix_halo/ck_fmha/build_mla.sh
index 09b3a29..bc06938 100755
--- a/tools/strix_halo/ck_fmha/build_mla.sh
+++ b/tools/strix_halo/ck_fmha/build_mla.sh
@@ -10,7 +10,7 @@ for c in "${EXL3_ROCM_SDK:-/nonexistent}/lib/llvm/bin/amdclang++" "${EXL3_ROCM_S
if [ -z "$CXX" ] && [ -x "$c" ]; then CXX=$c; fi
done
: "${CXX:?no amdclang++ found: set ROCM_CLANG}"
-GCC_DIR=${GCC_DIR:-/usr/lib/gcc/x86_64-linux-gnu/13}
+GCC_DIR=${GCC_DIR:-$(dirname "$(gcc -print-libgcc-file-name)")}
F=$CK_SRC/example/ck_tile/01_fmha
B=$(mktemp -d); trap 'rm -rf "$B"' EXIT
mkdir -p "$B/gen" "$B/obj" "$(dirname "$OUT")"