Compare commits

...

2 Commits

Author SHA1 Message Date
dylan
3481f2903f fix(build): cutlass.h lives under tensorflow/include on this image 2026-08-15 12:03:12 +00:00
dylan
f41900c06b fix(build): auto-find cutlass/cutlass.h under COREX_ROOT 2026-08-15 12:02:23 +00:00

View File

@@ -18,9 +18,14 @@ if [ ! -d "$TORCH_ROOT" ]; then
TORCH_ROOT=$(python3 -c "import torch; import os; print(os.path.dirname(torch.__file__))" 2>/dev/null || echo "/usr/local/corex/lib/python3/dist-packages/torch")
fi
CUTLASS_INCLUDE="$COREX_ROOT/samples/cutlass/include"
if [ ! -d "$CUTLASS_INCLUDE/cutlass" ]; then
CUTLASS_INCLUDE="$COREX_ROOT/include"
CUTLASS_INCLUDE="$COREX_ROOT/lib64/python3/dist-packages/tensorflow/include/third_party/gpus/cuda/include"
if [ ! -f "$CUTLASS_INCLUDE/cutlass/cutlass.h" ]; then
# Fallback: search
CUTLASS_INCLUDE=$(find "$COREX_ROOT" -path "*/cutlass/cutlass.h" -printf '%h\n' 2>/dev/null | head -1 | sed 's|/cutlass$||')
if [ -z "$CUTLASS_INCLUDE" ]; then
echo "[build] ERROR: cannot find cutlass/cutlass.h under $COREX_ROOT"
exit 1
fi
fi
# Output path