ReportConfig.txt 3.35 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
message("${Green}  ELPA (one node) Library found : ${CReset}    ${FLEUR_USE_ELPA_ONENODE}")
message("${Green}  FFT from MKL found            : ${CReset}    ${FLEUR_USE_FFTMKL}")
23
message("${Green}  SpFFT found                   : ${CReset}    ${FLEUR_USE_SPFFT}")
24 25 26 27 28
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}")
29
message("${Green}  EDSolver Library found        : ${CReset}    ${FLEUR_USE_EDSOLVER}")
30 31
message("${Green}  MAGMA Library found           : ${CReset}    ${FLEUR_USE_MAGMA}")
message("${Green}  MPI Library found             : ${CReset}    ${FLEUR_USE_MPI}")
32
if (FLEUR_USE_MPI)
33 34 35
  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}")
36
else()
37 38 39
  message("${Green}    SCALAPACK Library found     : ${CReset}    ---")
  message("${Green}    ELPA Library found          : ${CReset}    ---")
  message("${Green}    ChASE Library found         : ${CReset}    ---")
40
endif()
41
message("${Green}  Compile GPU version           :  ${CReset}   ${FLEUR_USE_GPU}")
42
if (FLEUR_USE_GPU)
43
  message("${Green}  CuSolver Library found        : ${CReset}    ${FLEUR_USE_CUSOLVER}")
44
endif()
45 46 47 48 49
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}")
50 51 52 53 54 55 56 57 58 59
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}")
60
endif()
61

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

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