CentOS 6.3中的OpenMPI 1.6.3- 64位安装失败

时间:2012-11-15 14:23:35

标签: linux cuda install centos openmpi

如何在已安装 CUDA 5.0 的计算机中安装 OpenMPI 1.6.3 - 64位版本。操作系统使用 CentOS 6.3 x86_64

执行配置后,我发出命令 make 。最后它显示出与CUDA包含文件的一些冲突。

我  在configure命令

中提供了以下选项
./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

配置命令已成功执行。之后我给了

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

1 个答案:

答案 0 :(得分:1)

问题不在Open MPI中,而是在捆绑的VampirTrace库中。 只需使用 - disable-vt 配置构建。 1.6.1默认情况下不构建VT。也许1.6.3改变了这一点。如果您需要MPI跟踪,请从其主站点获取最新的VampirTrace并单独构建。

这个答案由 Hristo Iliev 11月16日12:35提供

相关问题