-
Notifications
You must be signed in to change notification settings - Fork 219
/
Copy path.bazelrc
43 lines (31 loc) · 901 Bytes
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Global options
build -c opt \
--incompatible_enable_cc_toolchain_resolution \
--incompatible_require_linker_input_cc_api
# Aliases for user-defined flags
build --flag_alias=test_link_mode=@config//:test_link_mode
build --flag_alias=test_thread_mode=@config//:test_thread_mode
build --flag_alias=release_dpc=@config//:release_dpc
# Configuration: 'host'
build:host \
--build_tag_filters="host"
test:host \
--test_tag_filters="host"
# Configuration: 'dpc-cpu'
build:dpc-cpu \
--build_tag_filters="dpc"
run:dpc-cpu \
-- --device=cpu
test:dpc-cpu \
--test_tag_filters="dpc" \
--test_env=OCL_ICD_FILENAMES \
--test_arg="--device=cpu"
# Configuration: 'dpc-gpu'
build:dpc-gpu \
--build_tag_filters="dpc"
run:dpc-gpu \
-- --device=gpu
test:dpc-gpu \
--test_tag_filters="dpc" \
--test_env=OCL_ICD_FILENAMES \
--test_arg="--device=gpu"