Parallel processing UPC运行时出错(原因:无法打开任何HCA端口)
我刚开始学习UPC,在运行hello world示例时遇到以下错误:Parallel processing UPC运行时出错(原因:无法打开任何HCA端口),parallel-processing,upc,Parallel Processing,Upc,我刚开始学习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 port
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/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
:0:0:警告:“\u加强\u源”重新定义[默认启用]
:0:0:注意:这是上一个定义的位置
:0:0:警告:“\u加强\u源”已重新定义[默认启用]
:0:0:注意:这是上一个定义的位置
你知道怎么解决这个问题吗
提前谢谢 HCA代表主机通道适配器,它只是各种网络类型适配器的技术术语,尤其是InfiniBand。如果系统未启用InFiniband,则不存在HCA。如果是这种情况,您应该使用另一种网络类型,例如,如果在仅具有以太网连接的群集上运行,则应使用udp
;如果在单个多核/多socket节点上运行,则应使用smp
网络类型由-network=
选项指定到upcc
。运行upcc-version
以获取可用网络类型的列表,并阅读文档以查看哪些网络类型可用于现有硬件
<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