Coder Social home page Coder Social logo

Building Laghos on Crusher about laghos HOT 9 CLOSED

ceed avatar ceed commented on June 11, 2024
Building Laghos on Crusher

from laghos.

Comments (9)

vladotomov avatar vladotomov commented on June 11, 2024

Hi @wyphan, sorry for the late reply. Do you still need help with this?

from laghos.

wyphan avatar wyphan commented on June 11, 2024

Yes, please, it will be used for Crusher at ORNL.

from laghos.

v-dobrev avatar v-dobrev commented on June 11, 2024

For a parallel HIP build of MFEM on Crusher, you can try using "MFEM_BUILD=phip HIP_ARCH=gfx90a".

from laghos.

vladotomov avatar vladotomov commented on June 11, 2024

@wyphan, did Veselin's suggestion help? Can we close this issue?

from laghos.

wyphan avatar wyphan commented on June 11, 2024

@vladotomov sorry for the late reply. When I tried to build, looks like the URL for METIS in the Makefile is dead?

from laghos.

vladotomov avatar vladotomov commented on June 11, 2024

@wyphan the link to METIS has been updated.

from laghos.

wyphan avatar wyphan commented on June 11, 2024

Thanks for the fix. METIS 4.0.3 builds fine with PrgEnv-amd and amd/5.2.0, but not with 5.3.0 or newer. For reference, the current default ROCm version on Crusher is 5.3.0. The error messages have to do with the GKfree macro:

make[3]: Entering directory '/autofs/nccs-svm1_home1/wyphan/work/hpctoolkit-tutorial-examples/examples/gpu/laghos/laghos/metis-4.0.3/Lib'
make[3]: warning: jobserver unavailable: using -j1.  Add '+' to parent make rule.
cc  -O2 -I. -c coarsen.c
cc  -O2 -I. -c fm.c
cc  -O2 -I. -c initpart.c
initpart.c:199:3: error: call to undeclared function '__GKfree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  GKfree(&bestwhere, &queue, &touched, LTERM);
  ^
./rename.h:380:19: note: expanded from macro 'GKfree'
#define GKfree                          __GKfree
                                        ^
initpart.c:337:3: error: call to undeclared function '__GKfree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  GKfree(&bestwhere, &queue, &touched, LTERM);
  ^
./rename.h:380:19: note: expanded from macro 'GKfree'
#define GKfree                          __GKfree
                                        ^
initpart.c:417:3: error: call to undeclared function '__GKfree'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  GKfree(&bestwhere, &perm, LTERM);
  ^
./rename.h:380:19: note: expanded from macro 'GKfree'
#define GKfree                          __GKfree
                                        ^
3 errors generated.
make[3]: *** [Makefile:21: initpart.o] Error 1
make[3]: Leaving directory '/autofs/nccs-svm1_home1/wyphan/work/hpctoolkit-tutorial-examples/examples/gpu/laghos/laghos/metis-4.0.3/Lib'
make[2]: *** [Makefile:4: default] Error 2
make[2]: Leaving directory '/autofs/nccs-svm1_home1/wyphan/work/hpctoolkit-tutorial-examples/examples/gpu/laghos/laghos/metis-4.0.3'
make[1]: *** [makefile:267: metis] Error 2
make[1]: Leaving directory '/autofs/nccs-svm1_home1/wyphan/work/hpctoolkit-tutorial-examples/examples/gpu/laghos/laghos/Laghos'
make[1]: Entering directory '/autofs/nccs-svm1_home1/wyphan/work/hpctoolkit-tutorial-examples/examples/gpu/laghos/laghos/Laghos'
makefile:132: *** The MFEM library is not built.  Stop.
make[1]: Leaving directory '/autofs/nccs-svm1_home1/wyphan/work/hpctoolkit-tutorial-examples/examples/gpu/laghos/laghos/Laghos'

from laghos.

v-dobrev avatar v-dobrev commented on June 11, 2024

You can add the flag -std=c89 to fix this.

from laghos.

wyphan avatar wyphan commented on June 11, 2024

Perfect! Now Laghos builds cleanly on Crusher. Thanks a lot!

from laghos.

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.