Run frontier MoE models on hardware you already own β pure C, zero deps, experts streamed from disk. Tiny engine, immense model. π¦
C
build: refuse the 32-bit cl.exe before nvcc runs (#1405)
JustVugg3e5cf4932f53
diff --git a/c/Makefile b/c/Makefileindex 0c3edf8b..b18b91d4 100644--- a/c/Makefile+++ b/c/Makefile@@ -748,6 +748,7 @@ backend_loader.o: backend_loader.c backend_cuda.h compat.h .build-configcuda-dll: backend_cuda.cu backend_cuda.h@command -v "$(NVCC)" >/dev/null 2>&1 || { echo "nvcc not found: set CUDA_HOME or NVCC" >&2; exit 1; }@command -v cl >/dev/null 2>&1 || { echo "cl.exe (MSVC) not in PATH β run vcvars64.bat first" >&2; exit 1; }+ @cl 2>&1 | grep -q "for x64" || { echo "cl.exe is the 32-bit (x86) compiler: nvcc then fails inside cuda_fp16.hpp with 'asm operand type size(8)'. Open 'x64 Native Tools Command Prompt for VS 2022' (or run vcvars64.bat), not the generic Developer Command Prompt (#1405)" >&2; exit 1; }"$(NVCC)" $(NVCCFLAGS) -shared -DCOLI_CUDA_BUILDING_DLL \-L"$(CUDA_HOME)/lib/x64" -lcudart \backend_cuda.cu -o coli_cuda.dll@@ -823,6 +824,7 @@ deepgemm-fetch $(DEEPGEMM_STAMP):cuda-dsv4-dll: backend_cuda_dsv4.cu backend_cuda_dsv4.h dsv4.def@command -v "$(NVCC)" >/dev/null 2>&1 || { echo "nvcc not found: set CUDA_HOME or NVCC" >&2; exit 1; }@command -v cl >/dev/null 2>&1 || { echo "cl.exe (MSVC) not in PATH β run vcvars64.bat first" >&2; exit 1; }+ @cl 2>&1 | grep -q "for x64" || { echo "cl.exe is the 32-bit (x86) compiler: nvcc then fails inside cuda_fp16.hpp with 'asm operand type size(8)'. Open 'x64 Native Tools Command Prompt for VS 2022' (or run vcvars64.bat), not the generic Developer Command Prompt (#1405)" >&2; exit 1; }"$(NVCC)" $(NVCCFLAGS) --expt-relaxed-constexpr --expt-extended-lambda -Xcompiler=/Zc:preprocessor -shared \-Xlinker /DEF:dsv4.def \-L"$(CUDA_HOME)/lib/x64" -lcublasLt -lcudart -lcuda \@@ -835,6 +837,7 @@ DEEPGEMM_INC = -I"$(DEEPGEMM_HOME)/deep_gemm/include" -I"$(DEEPGEMM_HOME)/cutlascuda-dsv4-dg-dll: backend_cuda_dsv4.cu backend_cuda_dsv4.h dsv4.def $(DEEPGEMM_STAMP)@command -v "$(NVCC)" >/dev/null 2>&1 || { echo "nvcc not found: set CUDA_HOME or NVCC" >&2; exit 1; }@command -v cl >/dev/null 2>&1 || { echo "cl.exe (MSVC) not in PATH β run vcvars64.bat first" >&2; exit 1; }+ @cl 2>&1 | grep -q "for x64" || { echo "cl.exe is the 32-bit (x86) compiler: nvcc then fails inside cuda_fp16.hpp with 'asm operand type size(8)'. Open 'x64 Native Tools Command Prompt for VS 2022' (or run vcvars64.bat), not the generic Developer Command Prompt (#1405)" >&2; exit 1; }"$(NVCC)" -O3 -std=c++20 -ftz=false --expt-relaxed-constexpr --expt-extended-lambda -Xcompiler=/Zc:preprocessor \-gencode arch=compute_120a,code=sm_120a -DCOLI_DSV4_DEEPGEMM \$(DEEPGEMM_INC) -shared \diff --git a/docs/windows.md b/docs/windows.mdindex 33b92390..0c37afb8 100644--- a/docs/windows.md+++ b/docs/windows.md@@ -141,7 +141,7 @@ This is not Defender and not Mark-of-the-Web β SAC blocks *all* unsigned, unkn## 3. Build the CUDA DLL (GPU tier)-nvcc needs MSVC as host compiler, so this one step must run from a shell with the MSVC environment: open **"x64 Native Tools Command Prompt for VS 2022"** from the Start menu (plain PowerShell will fail the `cl` check). Then:+nvcc needs MSVC as host compiler, so this one step must run from a shell with the MSVC environment: open **"x64 Native Tools Command Prompt for VS 2022"** from the Start menu (plain PowerShell will fail the `cl` check). Not the generic "Developer Command Prompt": that one is the 32-bit compiler, and nvcc then fails inside `cuda_fp16.hpp` with `asm operand type size(8) does not match ... constraint 'r'` (#1405). `cl` alone prints which one you have: `for x64` is the right banner. Then:> **The VS prompt has no `sh.exe` (#478):** that prompt is a `cmd.exe` shell, and the `cuda-dll` recipe uses POSIX idioms (`command -v`, `{ ...; }`) that need `/bin/sh`. Run this once in the VS prompt before building:> ```cmd