MPICH2 和 MPICH2 的问题mpi4py安装

发布于 2024-09-26 14:53:12 字数 1152 浏览 3 评论 0原文

我使用的是 Windows XP2 32 位机器。我正在尝试安装 MPICH2 & mpi4py。

  1. 我已经下载并安装了 MPICH2-1.2.1p1
  2. 我已下载并; mpi4py

当我在 mpi4pi\ 目录中运行 python setup.py install 时。我得到

running install
running build
running build_py
running build_ext
MPI configuration: directory 'C:\Program Files\MPICH2'
MPI C compiler:    not found
MPI C++ compiler:  not found
MPI linker:        not found
checking for MPI compile and link ...
error: Unable to find vcvarsall.bat

My C:\Program Files\MPICH2\bin is added in $PATH &它包含:

clog2TOslog2.jar
irlog2rlog.exe
jumpshot.jar
jumpshot_launcher.jar
mpiexec.exe
smpd.exe
TraceInput.dll
traceTOslog2.jar
wmpiconfig.exe
wmpiexec.exe
wmpiregister.exe

我用谷歌搜索过,但没有找到解决方案。

编辑:根据“高性能”马克的建议,我已经浏览了该安装脚本,发现它正在搜索 mpiccmpicxxmpild MPI 编译器包装器。但这些包装器脚本并未随我的 MPICH2 安装一起安装。哪里可以得到这些?现在什么路?

I'm on Windows XP2 32-bit machine. I'm trying to install MPICH2 & mpi4py.

  1. I've downloaded & installed MPICH2-1.2.1p1
  2. I've downloaded & mpi4py

When I run python setup.py install in mpi4pi\ directory. I get

running install
running build
running build_py
running build_ext
MPI configuration: directory 'C:\Program Files\MPICH2'
MPI C compiler:    not found
MPI C++ compiler:  not found
MPI linker:        not found
checking for MPI compile and link ...
error: Unable to find vcvarsall.bat

My C:\Program Files\MPICH2\bin is added in $PATH & it contains:

clog2TOslog2.jar
irlog2rlog.exe
jumpshot.jar
jumpshot_launcher.jar
mpiexec.exe
smpd.exe
TraceInput.dll
traceTOslog2.jar
wmpiconfig.exe
wmpiexec.exe
wmpiregister.exe

I've Googled but no where I could find the solution.

EDIT: As per "High Performance" Mark's suggestion I've gone through that installation script and found that it is searching for mpicc , mpicxx, mpild MPI compiler wrappers. But these wrapper scripts are not installed with my MPICH2 installation. Where to get these? Whats the way now?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

池予 2024-10-03 14:53:12

我对 Python 不太了解,但无论如何:

您的安装脚本无法找到 C 编译器、C++ 编译器或链接器。查看脚本内部并查看它在哪里。修改脚本以查找安装这些项目的位置。您可能(可能会)还发现可以为安装脚本指定一个参数以将其指向正确的位置,而无需修改脚本。

不要忘记,MPICH2 是用于链接的库和运行时系统的组合,用于执行 MPI 作业(即您的 mpiexec.exe)。我发现您还安装了 Jumpshot 分析器。

MPICH2 不是,也不包含编译器。

华泰

I don't know much about Python but here goes anyway:

Your install script is failing to find a C compiler, C++ compiler or linker. Look inside the script and see where it is looking. Modify the script to look in the location where you have those items installed. You may (probably will) also find that you can specify an argument for the install script to point it at the right location without having to modify the script.

Don't forget, MPICH2 is a combination of libraries for linking to and a run-time system, for executing MPI jobs (that's your mpiexec.exe). I see you also have the Jumpshot profiler installed.

MPICH2 is not, and doesn't include, a compiler.

HTH

铁憨憨 2024-10-03 14:53:12

看起来 Windows MPICH2 二进制包没有设置编译器包装器;您可能需要下载源代码并构建它才能获得对您的开发工具的支持。

It looks like the windows MPICH2 binary package doesn't set up the compiler wrappers; you'll probably have to pull down the sources and build it to get support for your devel tools.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文