2012-11-15 64 views
0

如何安裝OpenMPI 1.6.3 - 64位版本在機器上CUDA 5.0已經安裝。使用的操作系統是CentOS 6.3 x86_64OpenMPI 1.6.3-在CentOS 6.3中64位安裝失敗

做完配置我發出命令使。最後它與CUDA包含文件顯示出一些衝突。

我 已經給

./configure --enable-heterogeneous --enable-cxx-exceptions --enable-opal-multi-threads --enable-mpi-thread-multiple --with-wrapper-cflags=-m64 --with-wrapper-cxxflags=-m64 --with-wrapper-ldflags=-m64 --with-wrapper-libs=-m64 --with-wrapper-fflags=-m64 --with-wrapper-fcflags=-m64 --with-exflags=-m64 --with-timer=TYPE CFLAGS=-m64 LDFLAGS=-m64 CPPFLAGS=-m64 CXXFLAGS=-m64 CCASFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64 --prefix=/usr/local/openmpi 

configure命令執行成功在configure命令下列選項。之後,我給了

make 

經過大量的輸出後,我在終端中得到以下錯誤。

Making all in vtlib 
make[5]: Entering directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi/contrib/vt/vt/vtlib' 
    CC  vt_comp_gnu.lo 
    CC  vt_getcpu.lo 
    CC  vt_gpu.lo 
    CC  vt_cudartwrap.lo 
vt_cudartwrap.c:145: error: conflicting types for 'cudaGetSymbolAddress' 
/usr/local/cuda/include/cuda_runtime_api.h:4263: note: previous declaration of 'cudaGetSymbolAddress' was here 
vt_cudartwrap.c:164: error: conflicting types for 'cudaGetSymbolSize' 
/usr/local/cuda/include/cuda_runtime_api.h:4285: note: previous declaration of 'cudaGetSymbolSize' was here 
vt_cudartwrap.c:392: error: conflicting types for 'cudaGetTextureReference' 
/usr/local/cuda/include/cuda_runtime_api.h:5055: note: previous declaration of 'cudaGetTextureReference' was here 
vt_cudartwrap.c:501: error: conflicting types for 'cudaFuncGetAttributes' 
/usr/local/cuda/include/cuda_runtime_api.h:2241: note: previous declaration of 'cudaFuncGetAttributes' was here 
vt_cudartwrap.c:797: error: conflicting types for 'cudaFuncSetCacheConfig' 
/usr/local/cuda/include/cuda_runtime_api.h:2122: note: previous declaration of 'cudaFuncSetCacheConfig' was here 
vt_cudartwrap.c:969: error: conflicting types for 'cudaGetSurfaceReference' 
/usr/local/cuda/include/cuda_runtime_api.h:5110: note: previous declaration of 'cudaGetSurfaceReference' was here 
vt_cudartwrap.c:1565: error: conflicting types for 'cudaFuncSetSharedMemConfig' 
/usr/local/cuda/include/cuda_runtime_api.h:2173: note: previous declaration of 'cudaFuncSetSharedMemConfig' was here 
make[5]: *** [vt_cudartwrap.lo] Error 1 
make[5]: Leaving directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi/contrib/vt/vt/vtlib' 
make[4]: *** [all-recursive] Error 1 
make[4]: Leaving directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi/contrib/vt/vt' 
make[3]: *** [all] Error 2 
make[3]: Leaving directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi/contrib/vt/vt' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi/contrib/vt' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/Softwares/OpenMPI/openmpi-1.6.3/ompi' 
make: *** [all-recursive] Error 1 
+0

的openmpi提供的又並不支持CUDA 5.因此,無論安裝該工具包的舊版本,或者用' - 禁用cudawrap編譯'。但這個問題是關於Stackoverflow的主題。把它帶到OpenMPI用戶郵件列表或類似的地方。 – talonmies

+4

問題不在於打開MPI buth,而是綁定了VampirTrace庫。只需使用'--disable-vt'配置構建。 1.6.1默認不建立VT。也許1.6.3已經改變了。如果您需要MPI跟蹤,請從其主站點獲取最新的VampirTrace並單獨構建。 –

+0

謝謝Hristo,爲我工作。 – Sijo

回答

1

問題不在於打開MPI buth,而是綁定了VampirTrace庫。 只需配置版本--disable-vt。 1.6.1默認不建立VT。也許1.6.3已經改變了。如果您需要MPI跟蹤,請從其主站點獲取最新的VampirTrace並單獨構建。

此答案由里斯託·利維11月16日12:35