[DFTB-Plus-User] Error with mpifx and scalapack location
Benjamin Hourahine
benjamin.hourahine at strath.ac.uk
Mon Jan 30 09:23:42 CET 2023
Hello Manuel,
you can probably also set it on the comand line for cmake, something like
-DSCALAPACK_LIBRARY="mkl_scalapack_lp64;mkl_blacs_openmpi_lp64"
if it's already in path, but unable to work out what to use.
Regards
Ben
Dr. B. Hourahine, SUPA, Department of Physics,
University of Strathclyde, John Anderson Building,
107 Rottenrow, Glasgow G4 0NG, UK.
+44 141 548 2325, benjamin.hourahine at strath.ac.uk
2013/4 THE Awards Entrepreneurial University of the Year
2012/13 THE Awards UK University of the Year
The University of Strathclyde is a charitable body,
registered in Scotland, number SC015263
________________________________
From: DFTB-Plus-User <dftb-plus-user-bounces at mailman.zfn.uni-bremen.de> on behalf of Bálint Aradi <aradi at uni-bremen.de>
Sent: 30 January 2023 07:48
To: dftb-plus-user at mailman.zfn.uni-bremen.de <dftb-plus-user at mailman.zfn.uni-bremen.de>
Subject: Re: [DFTB-Plus-User] Error with mpifx and scalapack location
CAUTION: This email originated outside the University. Check before clicking links or attachments.
Dear Manuel,
Look at the issue here:
https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdftbplus%2Fdftbplus%2Fissues%2F1149&data=05%7C01%7Cbenjamin.hourahine%40strath.ac.uk%7Ce329496ef7d845852d0e08db029674d9%7C631e0763153347eba5cd0457bee5944e%7C0%7C0%7C638106617440416565%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=OetSPjQE1d9KnResEjacqLyQuN0wygqya8gRXLWhj0U%3D&reserved=0
You would probably have to specify the SCALAPACK libraries explicitely.
The Scalapack detection is not as smooth, as it should be currently. (In
contrast to Lapack, CMake does not offer a detection module for
Scalapack...)
Best regards,
Bálint
On 25.01.23 16:25, Manuel Pérez Escribano wrote:
> Dear,
>
> I am trying to compile the source code of DFTB+ to be able to run it
> using MPI parallelization. This is the command I have been trying to
> build the code:
>
> FC=mpiifort CC=mpicc cmake
> -DCMAKE_INSTALL_PREFIX=/home/perez/soft/dftbplus-22.2/bin
> -DSCALAPACK_LIBRARY_DIR=/home/perez/soft/intel/oneapi/mkl/2022.1.0/lib/intel64/ -B _build .
>
> Cmake starts normally and the last lines of the prompt are:
>
> -- Found BLAS:
> /home/perez/soft/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_intel_lp64.so;/home/perez/soft/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_intel_thread.so;/home/perez/soft/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_core.so;/home/perez/soft/intel/oneapi/compiler/2022.1.0/linux/compiler/lib/intel64_lin/libiomp5.so;-lm;-ldl
> -- Found CustomBlas:
> /home/perez/soft/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_intel_lp64.so;/home/perez/soft/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_intel_thread.so;/home/perez/soft/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_core.so;/home/perez/soft/intel/oneapi/compiler/2022.1.0/linux/compiler/lib/intel64_lin/libiomp5.so;-lm;-ldl
> -- Looking for Fortran cheev
> -- Looking for Fortran cheev - found
> -- A library with LAPACK API found.
> -- Found CustomLapack:
> /home/perez/soft/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_intel_lp64.so;/home/perez/soft/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_intel_thread.so;/home/perez/soft/intel/oneapi/mkl/2022.1.0/lib/intel64/libmkl_core.so;/home/perez/soft/intel/oneapi/compiler/2022.1.0/linux/compiler/lib/intel64_lin/libiomp5.so;-lm;-ldl;-lm;-ldl
> -- MpiFx: Using source in external/mpifx/origin
> CMake Error at
> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
> Could NOT find CustomScalapack (missing: SCALAPACK_LIBRARY)
> Call Stack (most recent call first):
> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445
> (_FPHSA_FAILURE_MESSAGE)
> cmake/Modules/FindCustomScalapack.cmake:112
> (find_package_handle_standard_args)
> CMakeLists.txt:191 (find_package)
>
> Seems like Scalapack and Blas are found but then MPIFx is not able to
> locate them. Is there any way of avoiding this error? Maybe forcing
> MpiFx to use the same Scalapack that is used for DFTB+? I am not sure
> whether it is possible or what to look at.
>
> Thank you very much and best regards,
>
> Manuel
>
> _______________________________________________
> DFTB-Plus-User mailing list
> DFTB-Plus-User at mailman.zfn.uni-bremen.de
> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.zfn.uni-bremen.de%2Fcgi-bin%2Fmailman%2Flistinfo%2Fdftb-plus-user&data=05%7C01%7Cbenjamin.hourahine%40strath.ac.uk%7Ce329496ef7d845852d0e08db029674d9%7C631e0763153347eba5cd0457bee5944e%7C0%7C0%7C638106617440416565%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=BImunAmoa3hvlJFF7xERpBSp8x6iuOc2iZMD%2FqnpQcU%3D&reserved=0
--
Dr. Bálint Aradi
Bremen Center for Computational Materials Science, University of Bremen
https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.bccms.uni-bremen.de%2Fcms%2Fpeople%2Fb-aradi%2F&data=05%7C01%7Cbenjamin.hourahine%40strath.ac.uk%7Ce329496ef7d845852d0e08db029674d9%7C631e0763153347eba5cd0457bee5944e%7C0%7C0%7C638106617440416565%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=io0UIVGOzP5Fi3PH89rYzH7qQrGsxymmnb%2FL7G29Bbc%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.zfn.uni-bremen.de/pipermail/dftb-plus-user/attachments/20230130/46f60724/attachment.htm>
More information about the DFTB-Plus-User
mailing list