【发布时间】:2020-11-15 00:33:47
【问题描述】:
我正在使用 slurm 和 icecc 设置树莓派 4B 集群。
我还想添加 x86_64 linux 节点(异构集群 - 但在所有节点上运行 ubuntu 64 位)。
'icecc' 现在正在为覆盆子工作。
下一步是添加 x86_64 linux 节点以使用交叉编译器进行分布式编译。
交叉编译器已经在 x86_64 上可用。但是icecc-scheduler(在x86_64上运行并且目前仅在覆盆子之间分发)没有使用它。可能是因为版本不同或可执行文件名不同?
覆盆子
ubuntu@raspi-4B-02:/var/cache$ /usr/bin/aarch64-linux-gnu-g++-9 --version
aarch64-linux-gnu-g++-9 (Ubuntu 9.3.0-10ubuntu2) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
x86_64
frank@frank-M470-2:~$ /usr/bin/aarch64-linux-gnu-g++ --version
aarch64-linux-gnu-g++ (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
我是否需要为 x86_64 编译 9.3.0 "aarch64-linux-gnu-" 交叉编译器并在 x86_64 上将其命名为 /usr/bin/aarch64-linux-gnu-g++-9 ? (或者最好安装在 /opt/linux/... 上的所有 机器上,以免与包管理冲突)。
或者我可以暂时限制到 7.5.0 编译器功能并使用编译器版本的组合吗?
【问题讨论】:
标签: gcc raspberry-pi cross-compiling