Adding MAGMA 2.5.4 to Abinit 8.10.3

option, parallelism,...

Moderators: jbeuken, Jordan, pouillon

Forum rules
Please have a look at ~abinit/doc/config/ in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to:
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Post Reply
Posts: 1
Joined: Sat Dec 12, 2020 1:04 am

Adding MAGMA 2.5.4 to Abinit 8.10.3

Post by cxu » Sat Dec 12, 2020 4:54 am


I am trying to add MAGMA to Abinit. I have installed MAGMA using cmake and did not receive any errors, and I also find it inside of the usr/local directory, so I am assuming MAGMA installed correctly. Abinit runs fine with GPU support when I do not add magma, but when I try and add --with-linalg-flavor="netlib+magma", it throws out the error:

Code: Select all

configure: using tarball repository /home/cxu/.abinit/tarballs
checking for the requested linear algebra support... netlib+magma
checking whether to select a fallback for linear algebra... no
checking for AXPBY support in specified BLAS libraries... no
checking for gemm3m in specified libraries... no
checking for library containing zgemm... -lblas
checking for library containing zhpev... -llapack
checking for library containing magmaf_zheevd... no
configure: error: Magma library requested but not found
Does anyone know what is wrong?
Any help would be appreciated.

Thanks. :)

User avatar
Site Admin
Posts: 33
Joined: Thu Sep 17, 2009 9:49 am

Re: Adding MAGMA 2.5.4 to Abinit 8.10.3

Post by admin » Sun Jan 03, 2021 7:20 pm


You need to specify the path of the magma installation folder.

for example, my config with mkl instead of netlib :

Code: Select all

LINALG_LIBS="-L${MAGMA_ROOT}/lib -Wl,--start-group -lmagma -lcuda -Wl,--end-group -L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lgomp -lpthread -lm"
and some environmental variables :

Code: Select all


Post Reply