ReportConfig.txt 3.18 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
if(NOT WIN32)
  string(ASCII 27 Esc)
  set(CReset "${Esc}[m")
  set(Bold   "${Esc}[1m")
  set(Red    "${Esc}[31m")
  set(Green  "${Esc}[32m")
  set(BRed   "${Esc}[1;31m")
  set(BGreen "${Esc}[1;32m")
endif()


message("${BRed}\n\n************************Summary***************************${CReset}")
13 14 15 16
message("${Green}Compiler   : ${CReset} ${CMAKE_Fortran_COMPILER}")
message("${Green}Compiler ID: ${CReset} ${CMAKE_Fortran_COMPILER_ID}")
message("${Green}Flags      : ${CReset} ${CMAKE_Fortran_FLAGS}")
message("${Green}Libraries  : ${CReset} ${FLEUR_LIBRARIES}")
17
message("\n${Red}These Libraries are required:${CReset}")
18 19
message("${Green}  XML Library found       : ${CReset}    ${FLEUR_USE_XML}")
message("${Green}  LAPACK Library found    : ${CReset}    ${FLEUR_USE_LAPACK}")
20
message("${Red}These Libraries are optional:${CReset}")
21 22 23 24 25 26 27 28 29
message("${Green}  ELPA (one node) Library found : ${CReset}    ${FLEUR_USE_ELPA_ONENODE}")
message("${Green}  FFT from MKL found            : ${CReset}    ${FLEUR_USE_FFTMKL}")
message("${Green}  LibXC Library found           : ${CReset}    ${FLEUR_USE_LIBXC}")
message("${Green}  HDF5 Library found            : ${CReset}    ${FLEUR_USE_HDF5}")
message("${Green}  Wannier90 1.2 Library found   : ${CReset}    ${FLEUR_USE_WANN}")
message("${Green}  Wannier90-4   Library found   : ${CReset}    ${FLEUR_USE_WANN4}")
message("${Green}  Wannier90-5   Library found   : ${CReset}    ${FLEUR_USE_WANN5}")
message("${Green}  MAGMA Library found           : ${CReset}    ${FLEUR_USE_MAGMA}")
message("${Green}  MPI Library found             : ${CReset}    ${FLEUR_USE_MPI}")
30
if (FLEUR_USE_MPI)
31 32 33
  message("${Green}    SCALAPACK Library found     : ${CReset}    ${FLEUR_USE_SCALAPACK}")
  message("${Green}    ELPA Library found          : ${CReset}    ${FLEUR_USE_ELPA}")
  message("${Green}    ChASE Library found         : ${CReset}    ${FLEUR_USE_CHASE}")
34
else()
35 36 37
  message("${Green}    SCALAPACK Library found     : ${CReset}    ---")
  message("${Green}    ELPA Library found          : ${CReset}    ---")
  message("${Green}    ChASE Library found         : ${CReset}    ---")
38
endif()
39
message("${Green}  Compile GPU version           :  ${CReset}   ${FLEUR_USE_GPU}")
40
if (FLEUR_USE_GPU)
41
  message("${Green}  CuSolver Library found        : ${CReset}    ${FLEUR_USE_CUSOLVER}")
42
endif()
43 44 45 46 47
message("\n")
message("${Green}Compile serial version        : ${CReset}    ${FLEUR_USE_SERIAL}")
message("${Green}Compile parallel version      : ${CReset}    ${FLEUR_USE_MPI}")
message("\n")
message("${Green}Git describe  : ${CReset}${git_describe}")
48 49 50 51 52 53 54 55 56 57
message("${Green}Git hash      : ${CReset}${git_hash}")
message("${Green}Doxygen found : ${CReset}${FLEUR_USE_DOXYGEN}")
message("${BRed}************************-------***************************${CReset}")

#some checks
if (NOT FLEUR_USE_XML)
   message(FATAL_ERROR "${BRed}No libxml2 Library found. This is required.${CReset}")
endif()
if (NOT FLEUR_USE_LAPACK)
   message(FATAL_ERROR "${BRed}No LAPACK Library found. This is required.${CReset}")
58
endif()
59

60 61 62
if (NOT (FLEUR_USE_SERIAL OR FLEUR_USE_MPI))
    message(FATAL_ERROR "You should either compile a parallel or serial version (or both)")
endif()
63 64 65 66

if (FLEUR_WARN_MESSAGE)
    message("${BRed}${FLEUR_WARN_MESSAGE}${CReset}")
endif()