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/build-config.ac 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: http://www.youtube.com/watch?v=DppLQ-KQA68.
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
cxu
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

Hello,

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
admin
Site Admin
Posts: 28
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

Hi,

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

for example, my config with mkl instead of netlib :

Code: Select all

with_linalg_flavor="mkl+magma"
LINALG_CPPFLAGS="-I${MAGMA_ROOT}/include -I${MKLROOT}/include"
LINALG_FCFLAGS="-I${MAGMA_ROOT}/include -I${MKLROOT}/include"
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

MAGMA_NUM_GPUS=3
MAGMA_NUM_THREADS=1
MAGMA_ROOT=/usr/local/magma2.5_gcc8.3_mkl
best,
jmb

Post Reply