Giter VIP home page Giter VIP logo

Comments (6)

dazzag24 avatar dazzag24 commented on July 26, 2024

Turns out that the fix above was not sufficient. I ended up having to override the MPI_LIB fix in the install_wps_openmpi.sh script itself. See changes in my branch:

https://github.com/dazzag24/azurehpc/blob/a3b2f6b778c63997e7529825036a3821b925cbe2/apps/wrf/install_wps_openmpi.sh#L30

from azurehpc.

garvct avatar garvct commented on July 26, 2024

Is the openmpi module being loaded correctly?

from azurehpc.

dazzag24 avatar dazzag24 commented on July 26, 2024

from azurehpc.

dazzag24 avatar dazzag24 commented on July 26, 2024
[cyclecloud@ip-0A060006 ~]$ export SHARED_APP=$HOME/apps
[cyclecloud@ip-0A060006 ~]$ export SKU_TYPE=hb
[cyclecloud@ip-0A060006 ~]$ export MODULEPATH=${SHARED_APP}/modulefiles/${SKU_TYPE}:$MODULEPATH
[cyclecloud@ip-0A060006 ~]$
[cyclecloud@ip-0A060006 ~]$ export SPACK_ROOT=$HOME/apps/spack/0.14.2/spack
[cyclecloud@ip-0A060006 ~]$ source $SPACK_ROOT/share/spack/setup-env.sh
[cyclecloud@ip-0A060006 ~]$ set | grep MPI_
   
[cyclecloud@ip-0A060006 ~]$ module load mpi/openmpi-4.0.3
[cyclecloud@ip-0A060006 ~]$ set | grep MPI
MPI_BIN=/opt/openmpi-4.0.3/bin
MPI_HOME=/opt/openmpi-4.0.3
MPI_INCLUDE=/opt/openmpi-4.0.3/include
MPI_LIB=/opt/openmpi-4.0.3/lib
MPI_MAN=/opt/openmpi-4.0.3/share/man

So it is module load mpi/openmpi-4.0.3 that is setting the MPI_LIB env var.

However I am not sure if it is being set to an incorrect value OR if it is the WPS configure setup that is using it incorrectly. In any case it end up not building all of the required WPS executables.

Thanks

from azurehpc.

garvct avatar garvct commented on July 26, 2024

Thanks for finding this build error. I took a closer look at it today. Here is the problem.
The OpenMPI modulefile set MPI_LIB to the location of its libraries. WPS used MPI_LIB
directly in its Makefiles (without a -L option) and so we see the Makefile build error. Since WPS
uses the mpi wrappers (mpif90, mpicc) it does not need MPI_LIB, because the wrappers already know the location of the openmpi libraries and include files. So, one simple solution is to just unset MPI_LIB (ie export MPI_LIB=""). I have create a PR (#295 ) with this fix.

from azurehpc.

kanchanm avatar kanchanm commented on July 26, 2024

closing as this was fixed with above PR. please reopen if you still hit issues.

from azurehpc.

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.