我刚开始学习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有没有办法解决这个问题?
提前感谢!
发布于 2012-05-28 19:11:32
HCA代表主机通道适配器,这只是各种网络类型的适配器的技术术语,最明显的是用于InfiniBand。如果您的系统未启用InifiniBand,则不存在HCA。如果是这种情况,您应该使用另一种网络类型,例如,如果在仅具有以太网连接的集群上运行,则使用udp;如果在单个多核/多套接字节点上运行,则使用smp。
网络类型由upcc的-network=<type>选项指定。运行upcc -version以获取可用网络类型的列表,并阅读文档以了解哪些网络类型可以在您拥有的硬件上使用。
https://stackoverflow.com/questions/10778130
复制相似问题