Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build]Compiling with Pre-Installed OpenMPI #328

Open
kkmund146 opened this issue Nov 1, 2024 · 2 comments
Open

[Build]Compiling with Pre-Installed OpenMPI #328

kkmund146 opened this issue Nov 1, 2024 · 2 comments

Comments

@kkmund146
Copy link

I would like to install AMGX on a remote computing cluster. This cluster has OpenMPI 4.1.5 available as a loadable module, but I also have OpenMPI 5.0.3 downloaded as an external package within another program.

I would like to have AMGX use OpenMPI 5.0.3. I have attempted to do this during the configuration phase by using code such as:

<$cmake -DCMAKE_PREFIX_PATH=[path to openmpi5.0.3] ../>
<$cmake -DMPI_C_HEADER_DIR=[path to openmpi5.0.3] ../>

However, despite trying these variations, OpenMPI is not seen and I get the output:

Is there a way to point AMGX to my current download/installation of OpenMPI 5.0.3?

@marsaev
Copy link
Collaborator

marsaev commented Nov 4, 2024

Hi @kkmund146 ,

I think it boils down to how to make CMake to work with your MPI installation. You might try following steps from CMake documentation: https://cmake.org/cmake/help/latest/module/FindMPI.html#variables-for-locating-mpi

@bosung-gotocloud
Copy link

  1. Build OpenMPI with CUDA support for multiple GPUs
  2. Install cmake 3.27 for building AmgX
    mkdir -p /opt/cmake
    wget https://github.com/Kitware/CMake/releases/download/v3.27.2/cmake-3.27.2-linux-x86_64.sh
    sh cmake-3.27.2-linux-x86_64.sh --skip-license --prefix=/opt/cmake
    echo 'export PATH=/opt/cmake/bin:$PATH' >> /etc/bash.bashrc`

https://blog.nextfoam.co.kr/2024/01/10/gpu-accelerated-openfoam-with-petsc4foam/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants