Permalink
26 lines (24 sloc)
1.09 KB
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #70854 We can't do the entire package since parts of it depend on //c10/core. ghstack-source-id: 147170901 Test Plan: Rely on CI. Reviewed By: malfet Differential Revision: D33321821 fbshipit-source-id: 6d634da872a382a60548e2eea37a0f9f93c6f080 (cherry picked from commit 0afa808)
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
build --copt=--std=c++14 | |
build --copt=-I. | |
# Bazel does not support including its cc_library targets as system | |
# headers. We work around this for generated code | |
# (e.g. c10/macros/cmake_macros.h) by making the generated directory a | |
# system include path. | |
build --copt=-isystem --copt bazel-out/k8-fastbuild/bin | |
build --experimental_ui_max_stdouterr_bytes=2048576 | |
# Configuration to disable tty features for environments like CI | |
build:no-tty --curses no | |
build:no-tty --progress_report_interval 10 | |
build:no-tty --show_progress_rate_limit 10 | |
# Configuration to build with GPU support | |
build:gpu --define=cuda=true | |
# define a separate build folder for faster switching between configs | |
build:gpu --platform_suffix=-gpu | |
# See the note on the config-less build for details about why we are | |
# doing this. We must also do it for the "-gpu" platform suffix. | |
build --copt=-isystem --copt=bazel-out/k8-fastbuild-gpu/bin | |
# rules_cuda configuration | |
build:gpu --@rules_cuda//cuda:enable_cuda | |
build:gpu --@rules_cuda//cuda:cuda_targets=sm_52 | |
build:gpu --@rules_cuda//cuda:compiler=nvcc | |
build:gpu --repo_env=CUDA_PATH=/usr/local/cuda |