当我在bazel info --local_cpu_resources HOST_CPUS
和macos
上运行ubuntu
时
bazel-bin: .../9dcdc19e81f948a3daf2cc314e0d4bf1/execroot/demo/bazel-out/darwin-fastbuild/bin
bazel-genfiles: .../9dcdc19e81f948a3daf2cc314e0d4bf1/execroot/demo/bazel-out/darwin-fastbuild/bin
bazel-testlogs: .../9dcdc19e81f948a3daf2cc314e0d4bf1/execroot/demo/bazel-out/darwin-fastbuild/testlogs
bazel-bin: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin
bazel-genfiles: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin
bazel-testlogs: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/testlogs
Darwin
在OS
中的意思是macos
。k8
在ubuntu
中是什么意思?windows
,将输出什么?为什么?https://docs.bazel.build/versions/master/be/make-variables.html#predefined_variables
https://docs.bazel.build/versions/master/guide.html#distinct_host_configuration-true-default
root@608a654a26de:/home/servlet/demo# bazel info --local_cpu_resources HOST_CPUS
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
bazel-bin: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin
bazel-genfiles: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/bin
bazel-testlogs: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out/k8-fastbuild/testlogs
character-encoding: file.encoding = ISO-8859-1, defaultCharset = ISO-8859-1
command_log: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/command.log
committed-heap-size: 40MB
execution_root: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo
gc-count: 8
gc-time: 55ms
install_base: /root/.cache/bazel/_bazel_root/install/8eab0b6f2b5ac882f3a1a7c2494aade6
java-home: /root/.cache/bazel/_bazel_root/install/8eab0b6f2b5ac882f3a1a7c2494aade6/embedded_tools/jdk
java-runtime: OpenJDK Runtime Environment (build 11.0.2+7-LTS) by Azul Systems, Inc.
java-vm: OpenJDK 64-Bit Server VM (build 11.0.2+7-LTS, mixed mode) by Azul Systems, Inc.
max-heap-size: 524MB
output_base: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4
output_path: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/execroot/demo/bazel-out
package_path: %workspace%
release: release 1.2.0
repository_cache: /root/.cache/bazel/_bazel_root/cache/repos/v1
server_log: /root/.cache/bazel/_bazel_root/d89113122c03ccb06b1d63e7c96f20e4/java.log.608a654a26de.root.log.java.20191128-034422.19
server_pid: 19
used-heap-size: 22MB
workspace: /home/servlet/demo
答案 0 :(得分:0)
K8是AMD64 64位扩展的第一个实现,用于 x86指令集体系结构
有关更多详细信息,请参见Wikipedia。
Bazel中的工具链支持不同的CPU。有效的CPU似乎是:
[
k8,
piii,
arm,
darwin,
ppc,
x64_windows,
]
我个人将其称为x64。 K8也是一个有效的名称。 k8
,darwin
和x64_windows
分别指的是Ubuntu / Linux,macOS和Windows上的x64。