3
我剛開始學習UPC和運行Hello World示例時,我收到以下錯誤:UPC錯誤運行(原因:無法打開任何HCA端口)
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
就如何解決該問題的任何想法?
在此先感謝!
'-network ='選項訣竅,謝謝! –