-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
19 lines (17 loc) · 782 Bytes
/
build.sh
File metadata and controls
19 lines (17 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# PY_VER=$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')
# python configure.py \
# --backend CUDA \
# --local_cuda_path "$CUDA_PATH" \
# --local_cudnn_path "$CONDA_PREFIX/lib/python$PY_VER/site-packages/nvidia/cudnn/" \
# --local_nccl_path "$CONDA_PREFIX/lib/python$PY_VER/site-packages/nvidia/nccl/"
# Only Clang in HERMETIC_CC_TOOLCHAIN
# Recommend to use clang-17+
python configure.py \
--backend CUDA \
--host_compiler clang \
--cuda_compiler clang \
--cuda_version 12.8.1 \
--cudnn_version 9.8.0
# If you want to use nvcc for building cuda, set --config=clang_local and make USE_HERMETIC_CC_TOOLCHAIN=0
# bazel --output_base=./bazel_output build //xla_launcher:xla_launcher_tar_gz
bazel build //xla_launcher:xla_launcher_tar_gz