我刚开始学习 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
关于如何解决问题的任何想法?
提前致谢!