Building MOOSE without Nvidia Library #15827
-
Dear MOOSE maintainers I am trying to build MOOSE on our Tier-1 machine (Intel Broadwell and SkyLake) for a group of users, using foss/2018a toolchain. There are no nvidia libraries available on the compute nodes, since there need be no graphics there. However, the nvidia libraries are available on the login nodes. Also, the architecture of our login nodes and compute nodes are different, hence MOOSE must be built on the compute nodes. Now, here is the situation:
CXX apps/version.o
CXX utilities/src/metaphysicl_version.lo
CXXLD libmetaphysicl.la
/dirApps/binutils/2.28-GCCcore-6.4.0/bin/ld.gold: error: cannot f
ind -lnvidia-ml
collect2: error: ld returned 1 exit status
make[4]: *** [libmetaphysicl.la] Error 1
make[4]: Leaving directory `/myData/work/MOOSE/moo
se/libmesh/build/contrib/metaphysicl/src'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/myData/work/MOOSE/moo
se/libmesh/build/contrib/metaphysicl/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/myData/work/MOOSE/moo
se/libmesh/build/contrib/metaphysicl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/myData/work/MOOSE/moo
se/libmesh/build/contrib'
make: *** [all-recursive] Error 1 Now my questions:
I have attached the full logs and the bash script which I use building MOOSE. Regards |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Hi @moravveji, |
Beta Was this translation helpful? Give feedback.
-
Since this has sat a while, I'll take a crack at answering some of your questions.
Hopefully this helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot @cticenhour for the tips. I just incorporated them all, and MOOSE builds on our SkyLake machines like a charm. No more missing Nvidia library fuss ... By the way, the two very attractive options that you mentioned ( |
Beta Was this translation helpful? Give feedback.
Since this has sat a while, I'll take a crack at answering some of your questions.
I am not sure what nVidia dependency you are referring to - MOOSE doesn't strictly require particular libraries and architectures. You may be seeing a check for OpenCL that MetaPhysicL performs....in which case (if you don't need openCL support), I would try adding
--disable-opencl
to theupdate_and_rebuild_libmesh.sh
script when libMesh is configured (look at lines151 - 162
in the current version of the script)LDFLAGS
andLIBS
should be able to be set directly on the command line. (export LDFLAGS=[flags]
andexport LIBS=[flags]
). LibMesh configure should pick them up. @roystgnr can comment more on th…