Commit a1c0c4d7 authored by Daniel Wortmann's avatar Daniel Wortmann

Updated ELPA configuration scripts

parent cb86dcf3
#First check if we can compile with ELPA #First check if we can compile with ELPA
try_compile(FLEUR_USE_ELPA ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_ELPA.f90 try_compile(FLEUR_USE_ELPA ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/tests/test_ELPA.f90
LINK_LIBRARIES ${FLEUR_LIBRARIES}) LINK_LIBRARIES ${FLEUR_LIBRARIES})
if (NOT FLEUR_USE_ELPA) if (NOT FLEUR_USE_ELPA)
if (DEFINED CLI_ELPA_OPENMP) if (DEFINED CLI_ELPA_OPENMP)
set(TEST_LIBRARIES "${FLEUR_LIBRARIES};-lelpa_openmp") set(TEST_LIBRARIES "${FLEUR_LIBRARIES};-lelpa_openmp")
......
program test program test
use elpa1 use elpa
integer:: ierr,mpi_subcom, myrowblacs, mycolblacs integer:: ierr,mpi_subcom, myrowblacs, mycolblacs
integer:: mpi_comm_rows,mpi_comm_cols integer:: mpi_comm_rows,mpi_comm_cols
ierr=elpa_init(20171201)
end end
...@@ -28,4 +28,7 @@ else ...@@ -28,4 +28,7 @@ else
fi fi
FLEUR_LIBDIR="$PWD/INSTALL_DIR/lib $FLEUR_LIBDIR" FLEUR_LIBDIR="$PWD/INSTALL_DIR/lib $FLEUR_LIBDIR"
FLEUR_INCLUDEDIR="$PWD/INSTALL_DIR/include $FLEUR_INCLUDEDIR" FLEUR_INCLUDEDIR="$PWD/INSTALL_DIR/include $FLEUR_INCLUDEDIR"
if [ -r $PWD/INSTALL_DIR/lib/libelpa_openmp.a ]
then
CLI_ELPA_OPENMP=1
fi
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