ubuntu k8在bazel info local_cpu_resources的输出中的含义是什么

zbdgwd5y  于 2022-11-02  发布在  其他
关注(0)|答案(1)|浏览(169)

macosubuntu上运行bazel info --local_cpu_resources HOST_CPUS

在Mac中

`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`

问题

  • X1E0F1X可以表示X1M5N1X中的X1M4N1X。
  • ubuntu中,k8是什么意思?
  • 在其他平台上,比如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
1wnzp6jl

1wnzp6jl1#

K8是AMD 64 64位扩展到x86指令集体系结构的第一个实现
有关详细信息,请参阅Wikipedia
Bazel中的工具链支持不同的CPU。有效的CPU可能是:

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

X1 m0n1x、X1 m1n1x和X1 m2n1x分别对应于Ubuntu/Linux、macOS和Windows上的x64。
顺便说一句:不要把K8和缩写K8s混淆。K8s代表Kubernetes

相关问题