Git Product home page Git Product logo

Comments (11)

NTIaN7 avatar NTIaN7 commented on July 30, 2024 3

Can I install it via the Conda environment somehow?

Hi @qmpotential
These issues should be caused by environmental dependence. Personally, I would recommend using the Intel MPI suite to compile PETSc and using Conda to manage the Python environment and its dependencies. I do not recommend using OpenMPI or MPICH and PETSc installed by Conda as their performance may be poor.

N.

from underworld2.

NTIaN7 avatar NTIaN7 commented on July 30, 2024 2

@qmpotential
Congratulations! The installation seemed smooth this time. But one thing worth noting is that h5py is automatically installed as a dependency of underworld2 and is usually only serial. It can be detected through the following code, True means parallel support:

conda activate xxx
import h5py
h5py.get_config().mpi

You can refer here to install h5py that supports parallel IO.

CC=mpicc HDF5_MPI="ON" HDF5_DIR=/path/to/your/hdf5/install/ pip install --no-binary=h5py h5py

from underworld2.

julesghub avatar julesghub commented on July 30, 2024 1

Hi Oleg,

Now you're missing the development header for an MPI implementation.
Try something like
sudo yum install openmpi
to install it.

All Underworld2 build dependencies packages are listed here.
https://github.com/underworldcode/underworld2/blob/master/Installation.rst#build-environment

Also there is this guide to installing most of those dependencies under Ubuntu. Although you're on RHEL it will still be helpful. https://www.underworldcode.org/setting-up-underworld-dependencies/

from underworld2.

julesghub avatar julesghub commented on July 30, 2024 1

I'm not familiar with RHEL8 packages unfortunately.
What openmpi or mpich development packages can you install with RHEL8?

E.g. sudo yum search openmpi

from underworld2.

julesghub avatar julesghub commented on July 30, 2024

Hi @qmpotential,

I can't make out the error from this log, is there more output information available. If so, please send it through.
Also what version of the code are you installing from source? Which git revision?

Another strategy to overcome this is to use the Underworld2's container images. You could use podman (preferred container software) or docker to quickly spin up an Underworld2 instance.
See - https://hub.docker.com/r/underworldcode/underworld2/tags for the available versions. Note the podman / docker commands can be used interchangeably for Underworld usage.

Hope this help.

from underworld2.

julesghub avatar julesghub commented on July 30, 2024

Thanks for letting us know pip install underworld command isn't working.

Underworld can't build on platforms like Colab because our dependency code, PETSc doesn't build on colab.
Hence why we have the container solution which works well on other cloud platforms.

Are you wanting to build the code on a local machine? How are you wanting to use it?

Make sure you have petsc installed and the environment variable PETSC_DIR pointing to the installation.
Here's some general information about it https://www.underworldcode.org/setting-up-underworld-dependencies/
Note: The PETSc version is old in the link. The latest underworld runs on petsc-3.19.

from underworld2.

julesghub avatar julesghub commented on July 30, 2024

Try install the python development header.

Something like
yum -y install python-devel

That will include "Python.h"

from underworld2.

NTIaN7 avatar NTIaN7 commented on July 30, 2024

Hi @qmpotential,

Would it be convenient for you to provide complete compilation error information? Sending all installation results to a file instead of a screen may better solve the problem.

N.

from underworld2.

julesghub avatar julesghub commented on July 30, 2024

The python package ninja is not being found

  CMake Error at CMakeLists.txt:7 (project):
    Running

     '/home/olegsupp/.local/bin/ninja' '--version'

    failed with:

     Traceback (most recent call last):
      File "/home/olegsupp/.local/bin/ninja", line 5, in <module>
        from ninja import ninja

    ModuleNotFoundError: No module named 'ninja'

Run
pip install ninja

For a complete list of build requirements, both programs and python packages, for the current docker image see here.

&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \

I'll update the code to ensure ninja is a requirement in the build phase.
We are getting close to an install.

from underworld2.

julesghub avatar julesghub commented on July 30, 2024

What is the new error exactly? A log file would be useful.

You can check if you've installed ninja and mpi as follows
ninja --version
mpicc --show

Did you have any luck using the docker solution?

from underworld2.

qmpotential avatar qmpotential commented on July 30, 2024

@NTIaN7

That is great! Thank you so much for the notice. I will try that and get back to you!

from underworld2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.