gpt4 book ai didi

parallel-processing - 运行时 UPC 错误(原因 : unable to open any HCA ports)

转载 作者:行者123 更新时间:2023-12-04 08:09:46 25 4
gpt4 key购买 nike

我刚开始学习 UPC,在运行 hello world 示例时出现以下错误:

GASNet gasnetc_init returning an error code: GASNET_ERR_RESOURCE (Problem with requested resource)
at /home/dx/Downloads/berkeley_upc-2.14.2/gasnet/vapi-conduit/gasnet_core.c:1422
reason: unable to open any HCA ports

这是代码:
#include <upc_relaxed.h>
#include <stdio.h>

int main() {
printf("Hello from thread %i/%i\n", MYTHREAD, THREADS);
upc_barrier;
return 0;
}

它是用以下内容编译的:
/usr/local/upc/opt/bin/upcc upcTest.upc -o up 

并执行:
/usr/local/upc/opt/bin/upcrun -n 1 up

编译时我也收到这个错误:
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition
<command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]
<built-in>:0:0: note: this is the location of the previous definition

关于如何解决问题的任何想法?

提前致谢!

最佳答案

HCA 代表主机 channel 适配器,它只是各种网络类型适配器的技术术语,最著名的是 InfiniBand。如果您的系统未启用 InifiniBand,则不存在 HCA。如果是这种情况,您应该使用其他网络类型,例如udp如果在仅具有以太网连接的集群上运行或 smp如果在单个多核/多插槽节点上运行。

网络类型由 -network=<type> 指定选项 upcc .运行 upcc -version获取可用网络类型的列表并阅读文档以查看可以在您拥有的硬件上使用哪一种。

关于parallel-processing - 运行时 UPC 错误(原因 : unable to open any HCA ports),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10778130/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com