diff --git a/docker/Dockerfile.cpu b/docker/Dockerfile.cpu index f81ae88096..7898e57cf3 100644 --- a/docker/Dockerfile.cpu +++ b/docker/Dockerfile.cpu @@ -140,6 +140,12 @@ RUN --mount=type=cache,target=/root/.cache/uv \ git clone --recurse-submodules --shallow-submodules --filter=blob:none "https://github.com/triton-lang/triton-cpu.git"; \ cd triton-cpu; \ git checkout "270e696d"; \ + if [ ! -f third_party/sleef/CMakeLists.txt ]; then \ + echo "sleef submodule empty after shallow fetch; retrying unshallow"; \ + git submodule foreach --recursive 'git fetch --unshallow origin || true'; \ + git submodule update --init --recursive --force; \ + fi; \ + test -f third_party/sleef/CMakeLists.txt || { echo "FATAL: sleef submodule unavailable"; exit 1; }; \ if [ "$USE_SCCACHE" = "1" ]; then \ if [ "$SCCACHE_LOCAL_ONLY" = "1" ]; then \ unset SCCACHE_BUCKET SCCACHE_REGION; \