首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >多语言环境Chapel: make检查失败(GASNet:无效节点数:-nl)

多语言环境Chapel: make检查失败(GASNet:无效节点数:-nl)
EN

Stack Overflow用户
提问于 2021-01-16 15:23:35
回答 1查看 94关注 0票数 5

我正在尝试用Slurm在多语言环境模式下运行Chapel。但是,“make check”失败。有人能帮我一下吗?

我使用的是Chapel 1.23.0。以下是我使用的实际命令:

代码语言:javascript
复制
cd chapel-1.23.0/
export CHPL_HOME=$PWD
source $CHPL_HOME/util/setchplenv.bash
export CHPL_COMM=gasnet
export CHPL_LAUNCHER=slurm-srun
export CHPL_TARGET_CPU=native
make && make check

下面是我得到的错误消息:

代码语言:javascript
复制
== Actual Test Output (raw, with verbose) ==
srun --job-name=CHPL-hello6-tas --quiet --nodes=4 --ntasks=4 --ntasks-per-node=1 --cpus-per-task=16 --exclusive --mem=0 --kill-on-bad-exit  /home/user1/.chpl/chapel-test-P4CwK/hello6-taskpar-dist_real -nl4 --printLocaleName=false -v
GASNet: Invalid number of nodes: -nl4
GASNet: Usage '/home/user1/.chpl/chapel-test-P4CwK/hello6-taskpar-dist_real <num_nodes> {program arguments}'
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-01-20 09:08:50

假设您使用的是gasnet的udp基板($CHPL_HOME/util/printchplenv显示为CHPL_COMM_SUBSTRATE: udp),那么slurm-srun在该特定配置中不起作用。udp基板需要CHPL_LAUNCHER=amudprun。在https://chapel-lang.org/docs/platforms/udp.html#using-the-udp-conduit-with-slurm中,您应该能够执行以下操作:

代码语言:javascript
复制
export CHPL_LAUNCHER=amudprun
export GASNET_SPAWNFN=C
export GASNET_CSPAWN_CMD="srun -N%N %C"

请注意,您必须重做顶级make命令。

这告诉Chapel使用ssh启动器,然后让amudprun知道如何在这个系统上生成(在本例中使用srun,而不是默认使用ssh)。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/65747355

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档