Skip to content

mpi.h is missing even if openmpi exists in ThirdParty-dev  #107

Description

@STK-haan

Configuration :

  • Windows 10
  • WSL2
  • Ubuntu 22.04
  • CUDA 11.1
  • RTX3600 (sm_86)
  • gcc 9.5

The following is what I did to solve the missing mpi.h error

  1. ThirdParty-dev is downloaded from https://github.com/TonkomoLLC/ThirdParty-dev
  2. I found that wmake try to access '$HOME/RapidCFD/ThirdParty-dev/openmpi-4.0.2' due to line 403 in '$HOME/RapidCFD/RapidCFD-dev/etc/config/settings.sh
    export FOAM_MPI=openmpi-4.0.2
    But there is only openmpi-2.1.1 so it fails to achieve what intended.
  3. I downloaded source of openmpi-4.0.2 from https://www.open-mpi.org/software/ompi/v4.1/ But still, Allwmake shows error for mpi.h is missing
  4. I search both openmpi-4.0.2 and openmpi-2.1.1 but there are no file such that mpi.h
  5. I googled mpi.h and found following link https://stackoverflow.com/questions/26920083/fatal-error-mpi-h-no-such-file-or-directory-include-mpi-h which suggest I needed to use the MPI compiler wrappers.
  6. For now I try to set MPI compiler wrappers during RapidCFD compile, my best guess is modifying RapidCFD-dev/wmake/rules but I have no idea after that point.

I want to know how to remove mpi.h error using ThirdParty-dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions