forked from ApolloAuto/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bazel: apollo.sh config interactive mode simplified and improved
- Loading branch information
Showing
4 changed files
with
259 additions
and
537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,21 @@ | ||
build --action_env CUDA_TOOLKIT_PATH="/usr/local/cuda-10.2" | ||
build --action_env TF_CUDA_COMPUTE_CAPABILITIES="5.2,6.0,6.1,7.0,7.2,7.5" | ||
|
||
build --action_env PYTHON_BIN_PATH="/usr/bin/python3" | ||
build --action_env PYTHON_LIB_PATH="/usr/lib/python3/dist-packages" | ||
build --python_path="/usr/bin/python3" | ||
|
||
build:gpu --config=cuda | ||
build:gpu --config=tensorrt | ||
|
||
## The following was adapted from tensorflow/.bazelrc | ||
build --action_env CUDA_TOOLKIT_PATH="/usr/local/cuda-10.2" | ||
build --action_env TF_CUDA_COMPUTE_CAPABILITIES="3.7,5.2,6.0,6.1,7.0,7.2,7.5" | ||
|
||
# This config refers to building with CUDA available. It does not necessarily | ||
# mean that we build CUDA op kernels. | ||
# This config refers to building with CUDA available. | ||
build:using_cuda --define=using_cuda=true | ||
build:using_cuda --action_env TF_NEED_CUDA=1 | ||
build:using_cuda --crosstool_top=@local_config_cuda//crosstool:toolchain | ||
|
||
# This config refers to building CUDA op kernels with nvcc. | ||
# This config refers to building CUDA with nvcc. | ||
build:cuda --config=using_cuda | ||
build:cuda --define=using_cuda_nvcc=true | ||
|
||
# This config refers to building CUDA op kernels with clang. | ||
build:cuda_clang --config=using_cuda | ||
build:cuda_clang --define=using_cuda_clang=true | ||
build:cuda_clang --define=using_clang=true | ||
build:cuda_clang --action_env TF_CUDA_CLANG=1 | ||
|
||
build:tensorrt --action_env TF_NEED_TENSORRT=1 | ||
build:nonccl --define=no_nccl_support=true | ||
|
||
build:teleop --define=WITH_TELEOP=true |
Oops, something went wrong.