From b1f33f54c302400bd79ad0d32c1bbdb89b2f44ef Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Wed, 27 May 2026 20:53:16 +0200 Subject: [PATCH] fix(argo): set FOXHUNT_CUDA_ARCH from detected compute cap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ml-backtesting/build.rs reads FOXHUNT_CUDA_ARCH (defaults sm_86), ml-alpha/build.rs reads CUDA_COMPUTE_CAP. Template only set the latter, so lobsim cubins compiled for sm_86 on H100 (sm_90) → CUDA_ERROR_NO_BINARY_FOR_GPU at runtime. Co-Authored-By: Claude Opus 4.7 --- infra/k8s/argo/alpha-rl-template.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/infra/k8s/argo/alpha-rl-template.yaml b/infra/k8s/argo/alpha-rl-template.yaml index 5a00bfcc4..81d9d4b44 100644 --- a/infra/k8s/argo/alpha-rl-template.yaml +++ b/infra/k8s/argo/alpha-rl-template.yaml @@ -158,6 +158,7 @@ spec: # Auto-detect GPU compute capability for all crates' build.rs export CUDA_COMPUTE_CAP=$(nvidia-smi --query-gpu=compute_cap --format=csv,noheader | head -1 | tr -d '.') + export FOXHUNT_CUDA_ARCH="sm_${CUDA_COMPUTE_CAP}" echo "=== GPU arch: sm_${CUDA_COMPUTE_CAP} ===" # Clear stale build artifacts when arch changes