2012-05-28 33 views
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 

就如何解決該問題的任何想法?

在此先感謝!

回答

3

HCA代表主機通道適配器這只是適用於各種網絡類型適配器的技術術語,最顯着的是InfiniBand。如果您的系統不是InifiniBand啓用,則不存在HCA。如果是這種情況,您應該使用其他網絡類型,例如udp如果在具有以太網連接的羣集上運行,或者如果在單個多核/多節點節點上運行smp

網絡類型由-network=<type>選項指定爲upcc。運行upcc -version以獲取可用網絡類型的列表並閱讀文檔以查看哪些可用於您的硬件。

+0

'-network = '選項訣竅,謝謝! –

相關問題