Skip to content

Commit 4595902

Browse files
committed
fix artifact path cuda version format
1 parent 3f6dc1c commit 4595902

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

scripts/task_test_blackwell_kernels.sh

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,44 @@ if [ "$DRY_RUN" != "true" ]; then
3030

3131
# Install precompiled kernels (require CI build artifacts)
3232
JIT_ARCH_EFFECTIVE=""
33+
# Map CUDA_VERSION to CUDA_STREAM for artifact lookup
34+
if [[ "${CUDA_VERSION}" == cu* ]]; then
35+
CUDA_STREAM="${CUDA_VERSION}"
36+
elif [ "${CUDA_VERSION}" = "12.9.0" ]; then
37+
CUDA_STREAM="cu129"
38+
else
39+
CUDA_STREAM="cu130"
40+
fi
41+
echo "Using CUDA stream: ${CUDA_STREAM}"
42+
echo ""
3343
if [ -n "${JIT_ARCH}" ]; then
44+
# 12.0a for CUDA 12.9.0, 12.0f for CUDA 13.0.0
3445
if [ "${JIT_ARCH}" = "12.0" ]; then
35-
if [ "${CUDA_VERSION}" = "cu129" ]; then
46+
if [ "${CUDA_STREAM}" = "cu129" ]; then
3647
JIT_ARCH_EFFECTIVE="12.0a"
3748
else
3849
JIT_ARCH_EFFECTIVE="12.0f"
3950
fi
4051
else
4152
JIT_ARCH_EFFECTIVE="${JIT_ARCH}"
4253
fi
54+
4355
echo "Using JIT_ARCH from environment: ${JIT_ARCH_EFFECTIVE}"
44-
DIST_CUBIN_DIR="../dist/${CUDA_VERSION}/${JIT_ARCH_EFFECTIVE}/cubin"
45-
DIST_JIT_CACHE_DIR="../dist/${CUDA_VERSION}/${JIT_ARCH_EFFECTIVE}/jit-cache"
56+
DIST_CUBIN_DIR="../dist/${CUDA_STREAM}/${JIT_ARCH_EFFECTIVE}/cubin"
57+
DIST_JIT_CACHE_DIR="../dist/${CUDA_STREAM}/${JIT_ARCH_EFFECTIVE}/jit-cache"
4658

4759
if [ -d "${DIST_CUBIN_DIR}" ] && ls "${DIST_CUBIN_DIR}"/*.whl >/dev/null 2>&1; then
4860
echo "Installing flashinfer-cubin from ${DIST_CUBIN_DIR} ..."
4961
pip install -q "${DIST_CUBIN_DIR}"/*.whl
5062
else
5163
echo "ERROR: flashinfer-cubin wheel not found in ${DIST_CUBIN_DIR}. Ensure the CI build stage produced the artifact." >&2
52-
exit 1
5364
fi
5465

5566
if [ -d "${DIST_JIT_CACHE_DIR}" ] && ls "${DIST_JIT_CACHE_DIR}"/*.whl >/dev/null 2>&1; then
5667
echo "Installing flashinfer-jit-cache from ${DIST_JIT_CACHE_DIR} ..."
5768
pip install -q "${DIST_JIT_CACHE_DIR}"/*.whl
5869
else
5970
echo "ERROR: flashinfer-jit-cache wheel not found in ${DIST_JIT_CACHE_DIR} for ${CUDA_VERSION}. Ensure the CI build stage produced the artifact." >&2
60-
exit 1
6171
fi
6272
echo ""
6373
fi

0 commit comments

Comments
 (0)