mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00
Change CLANG_CUDA_COMPILER_PATH
set order. Add --config=cuda_clang
to build.py
Set `--action_env=CLANG_CUDA_COMPILER_PATH` after cuda_nvcc configuration Add `--config=cuda_clang` when `--nouse_cuda_nvcc` flag set PiperOrigin-RevId: 678873849
This commit is contained in:
parent
ce99c18a74
commit
f1b3251bf9
@ -284,11 +284,13 @@ def write_bazelrc(*, remote_build,
|
||||
f.write("build --config=mkl_open_source_only\n")
|
||||
if enable_cuda:
|
||||
f.write("build --config=cuda\n")
|
||||
if use_cuda_nvcc:
|
||||
f.write("build --config=cuda_nvcc\n")
|
||||
else:
|
||||
f.write("build --config=cuda_clang\n")
|
||||
f.write(f"build --action_env=CLANG_CUDA_COMPILER_PATH={clang_path}\n")
|
||||
if not enable_nccl:
|
||||
f.write("build --config=nonccl\n")
|
||||
if use_cuda_nvcc:
|
||||
f.write("build --config=cuda_nvcc\n")
|
||||
if cuda_version:
|
||||
f.write("build --repo_env HERMETIC_CUDA_VERSION=\"{cuda_version}\"\n"
|
||||
.format(cuda_version=cuda_version))
|
||||
|
Loading…
x
Reference in New Issue
Block a user