Skip to content

Commit

Permalink
Set CUDANN version manually
Browse files Browse the repository at this point in the history
  • Loading branch information
DwarKapex committed Aug 15, 2024
1 parent a11fec5 commit 0a96759
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/container/build-jax.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export TF_CUDNN_PATHS=/usr/lib/$(uname -p)-linux-gnu
export TF_CUDA_VERSION=$(ls /usr/local/cuda/lib64/libcudart.so.*.*.* | cut -d . -f 3-4)
export TF_CUDA_MAJOR_VERSION=$(ls /usr/local/cuda/lib64/libcudart.so.*.*.* | cut -d . -f 3)
export TF_CUBLAS_VERSION=$(ls /usr/local/cuda/lib64/libcublas.so.*.*.* | cut -d . -f 3)
export TF_CUDNN_VERSION=$(echo "${NV_CUDNN_VERSION}" | cut -d . -f 1)
export TF_CUDNN_VERSION="9.3.0" #$(echo "${NV_CUDNN_VERSION}" | cut -d . -f 1)
export TF_NCCL_VERSION=$(echo "${NCCL_VERSION}" | cut -d . -f 1)

case "${CPU_ARCH}" in
Expand Down Expand Up @@ -270,8 +270,6 @@ time python "${SRC_PATH_JAX}/build/build.py" \
--bazel_options=--override_repository=xla=$SRC_PATH_XLA \
--bazel_options=--repo_env=LOCAL_CUDNN_PATH="/opt/nvidia/cudnn" \
--bazel_options=--repo_env=LOCAL_NCCL_PATH="/usr/local/lib/python3.10/dist-packages/nvidia/nccl" \
--bazel_options=--repo_env=HERMETIC_CUDA_VERSION=$TF_CUDA_VERSION \
--bazel_options=--repo_env=HERMETIC_CUDNN_VERSION=$TF_CUDNN_VERSION \
--output_path=${BUILD_PATH_JAXLIB} \
$BUILD_PARAM

Expand Down

0 comments on commit 0a96759

Please sign in to comment.