Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 765dddd

Browse files
Add clang RBE configuration.
PiperOrigin-RevId: 301975133 Change-Id: I6bb5929d5def7669a81a360a34edda10c068aaae
1 parent 91e9cf2 commit 765dddd

2 files changed

Lines changed: 34 additions & 7 deletions

File tree

.bazelrc

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,15 @@ build:rbe_cpu_linux --extra_execution_platforms"=@org_tensorflow//third_party/to
356356
build:rbe_cpu_linux --host_platform="@org_tensorflow//third_party/toolchains:rbe_ubuntu16.04-manylinux2010"
357357
build:rbe_cpu_linux --platforms="@org_tensorflow//third_party/toolchains:rbe_ubuntu16.04-manylinux2010"
358358

359-
build:rbe_linux_cuda_nvcc --config=rbe_linux
359+
build:rbe_linux_cuda_base --config=rbe_linux
360+
build:rbe_linux_cuda_base --repo_env=TF_NEED_TENSORRT=1
361+
build:rbe_linux_cuda_base --repo_env=TF_CUDA_VERSION=10
362+
build:rbe_linux_cuda_base --repo_env=TF_CUDNN_VERSION=7
363+
build:rbe_linux_cuda_base --repo_env=REMOTE_GPU_TESTING=1
364+
build:rbe_linux_cuda_base --repo_env=TF_NEED_CUDA=1
365+
test:rbe_linux_cuda_base --test_env=LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64"
366+
367+
build:rbe_linux_cuda_nvcc --config=rbe_linux_cuda_base
360368
build:rbe_linux_cuda_nvcc --crosstool_top="@ubuntu16.04-py3-gcc7_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_cuda//crosstool:toolchain"
361369
build:rbe_linux_cuda_nvcc --extra_toolchains="@ubuntu16.04-py3-gcc7_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_cuda//crosstool:toolchain-linux-x86_64"
362370
build:rbe_linux_cuda_nvcc --extra_execution_platforms="@ubuntu16.04-py3-gcc7_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_platform//:platform"
@@ -365,13 +373,20 @@ build:rbe_linux_cuda_nvcc --platforms="@ubuntu16.04-py3-gcc7_manylinux2010-cuda1
365373
build:rbe_linux_cuda_nvcc --repo_env=TF_CUDA_CONFIG_REPO="@ubuntu16.04-py3-gcc7_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_cuda"
366374
build:rbe_linux_cuda_nvcc --repo_env=TF_TENSORRT_CONFIG_REPO="@ubuntu16.04-py3-gcc7_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_tensorrt"
367375
build:rbe_linux_cuda_nvcc --repo_env=TF_NCCL_CONFIG_REPO="@ubuntu16.04-py3-gcc7_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_nccl"
368-
build:rbe_linux_cuda_nvcc --repo_env=TF_NEED_TENSORRT=1
369-
build:rbe_linux_cuda_nvcc --repo_env=TF_CUDA_VERSION=10
370-
build:rbe_linux_cuda_nvcc --repo_env=TF_CUDNN_VERSION=7
371-
build:rbe_linux_cuda_nvcc --repo_env=REMOTE_GPU_TESTING=1
372-
build:rbe_linux_cuda_nvcc --repo_env=TF_NEED_CUDA=1
373376
build:rbe_linux_cuda_nvcc --define=using_cuda_nvcc=true
374-
test:rbe_linux_cuda_nvcc --test_env=LD_LIBRARY_PATH="/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64"
377+
test:rbe_linux_cuda_nvcc --config=rbe_linux_cuda_base
378+
379+
build:rbe_linux_cuda_clang --config=rbe_linux_cuda_base
380+
build:rbe_linux_cuda_clang --crosstool_top="@ubuntu16.04-py3-clang_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_cuda//crosstool:toolchain"
381+
build:rbe_linux_cuda_clang --extra_toolchains="@ubuntu16.04-py3-clang_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_cuda//crosstool:toolchain-linux-x86_64"
382+
build:rbe_linux_cuda_clang --extra_execution_platforms="@ubuntu16.04-py3-clang_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_platform//:platform"
383+
build:rbe_linux_cuda_clang --host_platform="@ubuntu16.04-py3-clang_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_platform//:platform"
384+
build:rbe_linux_cuda_clang --platforms="@ubuntu16.04-py3-clang_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_platform//:platform"
385+
build:rbe_linux_cuda_clang --repo_env=TF_CUDA_CONFIG_REPO="@ubuntu16.04-py3-clang_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_cuda"
386+
build:rbe_linux_cuda_clang --repo_env=TF_TENSORRT_CONFIG_REPO="@ubuntu16.04-py3-clang_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_tensorrt"
387+
build:rbe_linux_cuda_clang --repo_env=TF_NCCL_CONFIG_REPO="@ubuntu16.04-py3-clang_manylinux2010-cuda10.1-cudnn7-tensorrt6.0_config_nccl"
388+
build:rbe_linux_cuda_clang --define=using_cuda_clang=true
389+
test:rbe_linux_cuda_clang --config=rbe_linux_cuda_base
375390

376391
common:rbe_gpu_linux --config=rbe_linux_cuda_nvcc
377392

third_party/toolchains/remote_config/configs.bzl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ def initialize_rbe_configs():
3434
tensorrt_version = "6.0",
3535
)
3636

37+
tensorflow_rbe_config(
38+
name = "ubuntu16.04-py3-clang_manylinux2010-cuda10.1-cudnn7-tensorrt6.0",
39+
compiler = "/clang_ra21beccea2020f950845cbb68db663d0737e174c/bin/clang",
40+
cuda_version = "10.1",
41+
cudnn_version = "7",
42+
os = "ubuntu16.04-manylinux2010",
43+
python_version = "3",
44+
tensorrt_install_path = "/usr",
45+
tensorrt_version = "6.0",
46+
sysroot = "/dt7",
47+
)
48+
3749
tensorflow_rbe_config(
3850
name = "ubuntu16.04-py3_opt-gcc5-rocm",
3951
compiler = "gcc",

0 commit comments

Comments
 (0)