Closed JacobLotz closed 1 year ago
@dylan-copeland I am problably just very impatient. But I might just ask you here well. I have not been able to figure this out yet and is there someone I could ask for help specifically?
EDIT:
With the risk of stating the obvious.
It was actually simple to compile in the end. First run ./scripts/setup.sh
We then compiled it with running the following in libROM/build
:
cmake .. \
-DCMAKE_CXX_COMPILER=/usr/bin/mpicxx \
-DUSE_MFEM=On \
-DHYPRE=/path-to-libROM/libROM/dependencies/hypre/src/lib/libHYPRE.a \
-DHYPRE_INCLUDES=/path-to-libROM/libROM/dependencies/hypre/src/hypre/include \
-DMETIS=/path-to-libROM/libROM/libROM/dependencies/parmetis-4.0.3/build/Linux-x86_64/libmetis/libmetis.a \
-DMFEM=/path-to-libROM/libROM/libROM/dependencies/mfem/libmfem.so \
-DMFEM_INCLUDES=/path-to-libROM/libROM/libROM/dependencies/mfem \
make -j 4
@JacobLotz sorry for the inconvenience, but I am glad to hear you got it to build. On my MacBook, ./scripts/compile.sh
works automatically, so maybe there is an issue on Ubuntu. Perhaps README.md
should mention ./scripts/setup.sh
. Our build system expert is @pranav-vempati, so maybe he can make some improvements for Ubuntu. By the way, please note that ./scripts/compile.sh -m
builds with MFEM.
@dylan-copeland no problem at all! Thank you again for your help!
Hi All,
I am trying to compile libROM from source but I am not succesfull up to now. I work on Ubuntu 22.04.
1) When using
./scripts/compile.sh
cmake is unable to find Blas and Lapack and the script fails:EDIT: This is problably obvious as it is meant for LLNL machines only.
2) When I build in a folder (FI
build2
) withcmake ..
andmake
it can find Lapack and Blas but the build fails with:I have attached the full logs: log-cmake.txt log-make.txt
I have
liblapack-dev libblas-dev libscalapack-mpi-dev
installed. Am I doing something wrong here?EDIT: It fails when compiling
combine_samples
. We found it that it is somehow compiling it with a serial compilerusr/bin/c++
instead of a parallel oneusr/bin/mpic++
therefore it cannot deal with the MPI stuff. If we update the commands given bymake VERBOSE=1 combine_samples
to the parallel compiler it does not give these errors. Maybe something should be updated in the CMake files?Kind regards,
Jacob Lotz