最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

macos - How to setup a conda environment on a Mac laptop to compile and run a hybrid C++Python code with MPI support - Stack Ove

programmeradmin3浏览0评论

I am trying to compile a CFD code on a Mac. The code is parallelized using MPI, and is written with a combination of C++ and Fortran. In addition, it runs a Python interpreter to handle IO tasks via calls to h5py and mpi4py. h5py it turns relies on libhdf5, which must be compiled with MPI support. On a Linux workstation, we setup a conda environment specified

channels:
  - defaults
  - conda-fe
  - 
  - 
dependencies:
  - python=3.9.20
  - hdf5=*=*mpich*
  - h5py=*=mpi*
  - gxx_linux-64
  - gfortran
  - colorama

This creates an environment which includes all that is needed to compile and run the code. Note that on Linux boxes we were also able to compile the code with Intel and CLang compilers. Clearly, this is not going to work on a mac. What should I use instead of gxx_linux-64? Any other thing that needs to be changed to have the correct mpi/hdf5/h5py/mpi4py libraries and environment installed?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论