– Configuring incomplete, errors occurred!
See also “/home/walker/ngsuite/ngsolve-build/netgen/CMakeFiles/CMakeOutput.log”.
CMake Warning (dev) at cmake/SuperBuild.cmake:175 (find_package):
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run “cmake --help-policy CMP0074” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
CMake variable MKL_ROOT is set to:
/usr/share/intel-mkl
For compatibility, CMake is ignoring the variable.
Call Stack (most recent call first):
CMakeLists.txt:56 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
– Could NOT find MKL (missing: MKL_DIR)
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find MKL (missing: MKL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
cmake/cmake_modules/FindMKL.cmake:151 (find_package_handle_standard_args)
cmake/SuperBuild.cmake:175 (find_package)
CMakeLists.txt:56 (include)
I’m pretty sure that is the correct directory for MKL. However, it seems that cmake is just ignoring it. What should I do?
there some changes to how NGSolve tries to find MKL, so that now it uses the oneAPI MKLConfig.cmake script to locate MKL. Maybe give it a try without specifying MKL_ROOT? Before this change to ngsolve, I used the flag -DMKL_LIBRARY=${MKL_ROOT}/lib/libmkl_rt.so.2 which helped to locate MKL.
is no longer active. Also, it seems one is really supposed to get MUMPS through the official website. I’m trying to do that now. But what version is supported by NGSolve?
Alright, I made a little more progress. I was able to get the MUMPS tar ball, with the correct checksum.
However, when I proceed with “make”, it fails:
walker@LAPTOP-NGO6EPCF:~/ngsuite/ngsolve-build$ make
[ 0%] Built target check_submodules_start
[ 19%] Built target project_parmetis
[ 21%] Performing download step (download, verify and extract) for ‘project_mumps’
– verifying file…
file=‘/home/walker/ngsuite/ngsolve-src/external_dependencies/MUMPS_5.2.0.tar.gz’
– File already exists and hash match (skip download):
file=‘/home/walker/ngsuite/ngsolve-src/external_dependencies/MUMPS_5.2.0.tar.gz’
MD5=‘cd6d06f27ce2689eb0436e41fcc9caed’
– extracting…
src=‘/home/walker/ngsuite/ngsolve-src/external_dependencies/MUMPS_5.2.0.tar.gz’
dst=‘/home/walker/ngsuite/ngsolve-build/dependencies/src/project_mumps’
– extracting… [tar xfz]
– extracting… [analysis]
– extracting… [rename]
– extracting… [clean up]
– extracting… done
[ 23%] Performing update step for ‘project_mumps’
[ 26%] No patch step for ‘project_mumps’
[ 28%] No configure step for ‘project_mumps’
[ 30%] Performing build step for ‘project_mumps’
ana_orderings_wrappers_m.F:315:39:
314 | CALL MUMPS_COPY_INT_32TO64 (FRERE(1), NCMP, FRERE8)
| 2
315 | CALL MUMPS_COPY_INT_32TO64 (OPTIONS_METIS, LOPTIONS_METIS,
| 1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
ana_orderings_wrappers_m.F:318:29: …
I stopped the output. Similar errors are reported.
I guess I have the wrong compiler configured?? Any suggestions?
Do I need to set a cmake policy? There is something about this:
Policy CMP0074 is not set: find_package uses _ROOT variables.
Run “cmake --help-policy CMP0074” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
It seems that MKL_ROOT is ignored because of this policy. Do I need to change it? If so, then I have to modify the cmake files.
Ok, I succeeded in compiling from source. With MPI and MKL. netgen works and I can run a navier-stokes example. However, I have an issue with jupyter notebook. I’ll post another thread.
Ok, I went back and tried to add OpenCascade to my cmake command with:
-DUSE_OCC=ON
After cmake, I run make, and I eventually get this:
No rule to make target ‘/usr/lib/x86_64-linux-gnu/libtbb.so’, needed by ‘libnglib.so’. Stop.
What exactly is the problem? Do I need to install something else beforehand? Note: I also added these flags to my cmake:
-DUSE_PARDISO=ON -DUSE_UMFPACK=ON