Commit 694ff79e authored by Daniel Wortmann's avatar Daniel Wortmann

Fixed configuration for jureca

parent 27cca03f
#Cmake file for juropa
#Cmake file for jureca
# this requires the following modules to be loaded:
# Intel, ParaStationMPI, libxml2, imkl, CMake
set(CMAKE_Fortran_COMPILER mpif90)
enable_language(Fortran)
enable_language(C Fortran)
set(Fleur_uses_serial FALSE)
find_package(LibXml2 REQUIRED)
set(CMAKE_C_FLAGS "-I${LIBXML2_INCLUDE_DIR}")
if ((NOT DEFINED ENV{NO_HDF}) AND (DEFINED ENV{HDF5_ROOT}))
set (HDF5_INCL "-I$ENV{HDF5_ROOT}/include")
set(HDF5_LIBS "-L$ENV{HDF5_ROOT}/lib -lhdf5_fortran -lhdf5 -lz")
......@@ -20,10 +28,10 @@ else ()
message(FATAL_ERROR "No MPI found, your compiler should be set to mpif90 ...")
endif ()
set(LAPACK_LIBS "-mkl -lmatmul -openmp -lpthread")
set(LAPACK_LIBS "-lxml2 -mkl -lmatmul -qopenmp -lpthread")
set(CMAKE_Fortran_FLAGS "${HDF5_INCL} -mkl -warn nousage -assume byterecl -r8" )
set(CMAKE_Fortran_FLAGS_RELEASE " -O4 -g -openmp -xSSE3 -axSSE4.2 -parallel" )
set(CMAKE_Fortran_FLAGS_DEBUG " -O0 -g -openmp" )
set(CMAKE_Fortran_FLAGS_RELEASE " -O4 -g -qopenmp -xSSE3 -axSSE4.2 -parallel" )
set(CMAKE_Fortran_FLAGS_DEBUG " -O0 -g -qopenmp" )
if (DEFINED ENV{SCALAPACK_ROOT})
set(Fleur_uses_SCALAPACK TRUE)
......
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