Skip to content

Run frontier MoE models on hardware you already own — pure C, zero deps, experts streamed from disk. Tiny engine, immense model. 🐦

C

tests: drop direct cuda_runtime.h includes (hipcc has no such header)

monotophic17bfc3e5f725
diff --git a/c/tests/bench_fp8_cuda.cu b/c/tests/bench_fp8_cuda.cu
index 83bdb49e..b2485326 100644
--- a/c/tests/bench_fp8_cuda.cu
+++ b/c/tests/bench_fp8_cuda.cu
@@ -18,8 +18,9 @@
#include <cstring>
#include <cmath>
#include <cstdint>
-#include <cuda_runtime.h>
+/* No direct <cuda_runtime.h>: backend_gpu_compat.h (via the backend include)
+ * supplies the runtime surface for both vendors. */
#include "../backend_cuda.cu"
static float e4m3_ref(uint8_t b){
diff --git a/c/tests/test_fp8_warp_cuda.cu b/c/tests/test_fp8_warp_cuda.cu
index 696799f7..2da3d368 100644
--- a/c/tests/test_fp8_warp_cuda.cu
+++ b/c/tests/test_fp8_warp_cuda.cu
@@ -35,8 +35,11 @@
#include <cstring>
#include <cmath>
#include <cstdint>
-#include <cuda_runtime.h>
+/* No direct <cuda_runtime.h>: the backend include below pulls
+ * backend_gpu_compat.h, which supplies the runtime surface for BOTH vendors
+ * (a direct include breaks the hipcc build the same way test_backend_cuda.cu
+ * avoids by including only backend headers). */
#include "../backend_cuda.cu"
#ifdef _WIN32