在制作CUDA 5.0示例时遇到打开MPI相关问题(Mac OS X ML) [英] Having Open MPI related issues while making CUDA 5.0 samples (Mac OS X ML)

查看:286
本文介绍了在制作CUDA 5.0示例时遇到打开MPI相关问题(Mac OS X ML)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试制作CUDA 5.0示例时,会出现一个错误:


Makefile:79: * MPI未找到,无法构建简单的MPI ..停止。


我试图下载并构建最新版本的Open MPI reffering打开MPI常见问题/平台/ OS X / 6。如何不使用OS X捆绑的打开MPI ?页面,它没有解决错误。

  make -j 4 2>& tee make.out 
[大量输出]
make [2]:*** [mpi / man / man3 / MPI_Comm_disconnect.3]错误127
make [2]:***正在等待未完成的作业....
make [1]:*** [all-recursive]错误1
make:*** [all-recursive]错误1



我现在很困惑,现在不知道该怎么办。

解决方案

如注释中所述,simpleMPI示例可以通过使用make -k有效地绕过,或者删除simpleMPI子目录,或重命名该目录中的Makefile。然而,如果希望在mac上实际安装一个MPI版本,以便能够构建simpleMPI示例,这些指令应该有助于:



这里的问题是你没有安装MPI编译器。您将需要为Mac OSX安装MPICC编译器。这些说明将使用MPI的MPICH2版本,通常可以使用此处



直接链接到MPICH2 1.4下载



您可以按照这些说明来为Mac OSX构建和配置MPICH2。在配置步骤中,还要添加--disable-f77和--disable-fc:

  ./ configure --enable- shared --enable-sharedlibs = osx-gcc --enable-fast = all --prefix = / usr / local / mpich2-optimized --disable-f77 --disable-fc 



然后按照指南说明进行安装



现在创建MPICC的符号链接因此您可以轻松地构建CUDA MPI。

  sudo ln -s / usr / local / mpich2-optimized / mpicxx / usr / mpicxx 
sudo ln -s / usr / local / mpich2-optimized / mpic ++ / usr / bin / mpic ++


$ b b

或者,另一个选项是添加

  / usr / local / mpich2-optimized / bin 



到您的路径。



正确建立。


When I'm trying to make CUDA 5.0 samples an error appears:

Makefile:79: * MPI not found, not building simpleMPI.. Stop.

I've tried to download and build the latest version of Open MPI reffering to Open MPI "FAQ / Platforms / OS X / 6. How do I not use the OS X-bundled Open MPI?" page and it did not solve the error.

make -j 4 2>&1 | tee make.out
[ lots of output ]
make[2]: *** [mpi/man/man3/MPI_Comm_disconnect.3] Error 127
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

I'm realy confused for now I have no idea what to do.

解决方案

As mentioned in the comments, the simpleMPI example can be effectively bypassed by using make -k, or else deleting the simpleMPI subdirectory altogether, or renaming the Makefile that is in that directory. However if it is desired to actually install a version of MPI on the mac so as to be able to build the simpleMPI example, these instructions should help:

The issue here is that you don't have the MPI compiler installed. You will need to install the MPICC compiler for Mac OSX. These instructions will use the MPICH2 version of MPI, which is generally available here

Direct link to MPICH2 1.4 download

You can follow these instructions to build and configure MPICH2 for Mac OSX. In the configure step, also add --disable-f77 and --disable-fc:

./configure --enable-shared --enable-sharedlibs=osx-gcc --enable-fast=all --prefix=/usr/local/mpich2-optimized --disable-f77 --disable-fc

Then follow the guide instructions to make and then make install

Now create symbolic links to MPICC so you can build CUDA MPI easily

sudo ln -s /usr/local/mpich2-optimized/mpicxx /usr/bin/mpicxx 
sudo ln -s /usr/local/mpich2-optimized/mpic++ /usr/bin/mpic++

Alternatively, another option is to add

/usr/local/mpich2-optimized/bin 

to your path.

Now when making simpleMPI, it will properly build.

这篇关于在制作CUDA 5.0示例时遇到打开MPI相关问题(Mac OS X ML)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆