Commit 09629253 authored by Daniel Wortmann's avatar Daniel Wortmann

Modifications to re-enable MAGMA interface

parent 0b4b09dc
...@@ -6,6 +6,7 @@ include("cmake/tests/test_XML.cmake") ...@@ -6,6 +6,7 @@ include("cmake/tests/test_XML.cmake")
include("cmake/tests/test_LAPACK.cmake") include("cmake/tests/test_LAPACK.cmake")
include("cmake/tests/test_MPI.cmake") include("cmake/tests/test_MPI.cmake")
include("cmake/tests/test_HDF5.cmake") include("cmake/tests/test_HDF5.cmake")
include("cmake/tests/test_MAGMA.cmake")
if (FLEUR_USE_MPI) if (FLEUR_USE_MPI)
include("cmake/tests/test_SCALAPACK.cmake") include("cmake/tests/test_SCALAPACK.cmake")
include("cmake/tests/test_ELPA.cmake") include("cmake/tests/test_ELPA.cmake")
......
ml purge ml purge
ml PGI MVAPICH2 CMake libxml2/.2.9.4 ml PGI MVAPICH2 CMake libxml2/.2.9.4 imkl
#First check if we can compile with ELPA
try_compile(FLEUR_USE_MAGMA ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_MAGMA.f90
LINK_LIBRARIES ${FLEUR_LIBRARIES}
)
message("MAGMA Library found:${FLEUR_USE_MAGMA}")
if (FLEUR_USE_MAGMA)
set(FLEUR_MPI_DEFINITIONS ${FLEUR_MPI_DEFINITIONS} "CPP_MAGMA")
endif()
program test
use magma
IMPLICIT NONE
integer :: mout,err,iwork(5)
REAL :: eigtemp(5),rwork(5)
COMPLEX :: a(5,5),b(5,5),work(5)
call magmaf_zhegvdx_2stage_m(1,1,MagmaVec,MagmaRangeI,MagmaLower,5,a,5,b,5,&
0.0,0.0,1,2,mout,eigTemp,work,5,rwork,5,iwork,5,err)
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment