Git Product home page Git Product logo

Comments (5)

CareF avatar CareF commented on August 31, 2024

I am under Arch Linux, and installing via AUR (https://aur.archlinux.org/packages/mpb-git/

from mpb.

ChristopherHogan avatar ChristopherHogan commented on August 31, 2024

Hi. I'm not very familiar with Arch or the AUR, but I just confirmed that the tutorial example you listed works correctly when built from the HEAD of the master branch. I would suggest notifying the maintainer of the mpb-git package on AUR of this issue. Building from source can reliably get you a working installation, though it is a little more work.

from mpb.

CareF avatar CareF commented on August 31, 2024

@ChristopherHogan
Thanks for suggestion.
I tested building locally with

git clone git://github.com/stevengj/mpb
cd mpb
sh autogen.sh
make

This gives the same result. Not sure if that's because my building environment. I have gcc 8.1.0 as compiler. I also tried gcc 6.4.1 and the iteration details are a little different but it also doesn't considered converge in the software. Any other compiling environment I should check? Thank you!

from mpb.

ChristopherHogan avatar ChristopherHogan commented on August 31, 2024

I was able to run the example successfully in an Arch docker container by building as follows.

pacman -Syu
pacman -S base-devel
pacman -S gcc-gfortran
pacman -S blas
pacman -S lapack
pacman -S hdf5
pacman -S fftw
pacman -S guile
pacman -S git

git clone https://github.com/stevengj/libctl
cd libctl
sh autogen.sh --enable-shared --prefix=$HOME/local
make && make install
cd ..

git clone https://github.com/stevengj/mpb
cd mpb
sh autogen.sh \
    CPPFLAGS="-I${HOME}/local/include" \ 
    CFLAGS=${CPPFLAGS} \
    LDFLAGS="-L${HOME}/local/lib -L/usr/lib64" \
    GEN_CTL_IO="${HOME}/local/bin/gen-ctl-io" \
    --enable-shared \
    --prefix=$HOME/local \
    --with-libctl=$HOME/local/share/libctl

make && make install

cd mpb
./mpb ../example/tutorial.ctl

from mpb.

CareF avatar CareF commented on August 31, 2024

@ChristopherHogan
Thank you so much for helping me on this. I checked every package you installed and it seems the problem is fftw, where in AUR it make dependence of fftw-mpi. I replaced fftw-mpi and hdf5-mpi with original non-mpi version and it works.

from mpb.

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.