ba8信息中k8表示什么意思local_cpu_resources的输出

时间:2019-11-28 06:00:27

标签: ubuntu bazel

当我在bazel info --local_cpu_resources HOST_CPUSmacos上运行ubuntu

在Macos中

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

在Ubuntu中

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

问题

  • DarwinOS中的意思是macos
  • k8ubuntu中是什么意思?
  • 在其他平台上,例如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

在Ubuntu上的完整输出

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

1 个答案:

答案 0 :(得分:0)

  

K8是AMD64 64位扩展的第一个实现,用于   x86指令集体系结构

有关更多详细信息,请参见Wikipedia

Bazel中的工具链支持不同的CPU。有效的CPU似乎是:

[
 k8, 
 piii,
 arm,
 darwin,
 ppc,
 x64_windows,
]

我个人将其称为x64。 K8也是一个有效的名称。 k8darwinx64_windows分别指的是Ubuntu / Linux,macOS和Windows上的x64。