PrintOpts.cmake 3.08 KB
Newer Older
1 2
###
#
3 4
# @file PrintOpts.cmake
#
Mathieu Faverge's avatar
Mathieu Faverge committed
5 6
# @copyright 2009-2014 The University of Tennessee and The University of
#                      Tennessee Research Foundation. All rights reserved.
7
# @copyright 2012-2018 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
8
#                      Univ. Bordeaux. All rights reserved.
9 10 11
#
###
#
Mathieu Faverge's avatar
Mathieu Faverge committed
12 13
#  @project CHAMELEON
#  CHAMELEON is a software package provided by:
14 15 16 17
#     Inria Bordeaux - Sud-Ouest,
#     Univ. of Tennessee,
#     King Abdullah Univesity of Science and Technology
#     Univ. of California Berkeley,
18
#     Univ. of Colorado Denver.
19
#
Mathieu Faverge's avatar
Mathieu Faverge committed
20
# @version 1.0.0
21
#  @author Florent Pruvost
22
#  @date 2014-11-10
23 24
#
###
25

26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
set(dep_message "\nConfiguration of Chameleon:\n"
        "       BUILDNAME ...........: ${BUILDNAME}\n"
        "       SITE ................: ${SITE}\n"
        "\n"
        "       Compiler: C .........: ${CMAKE_C_COMPILER} (${CMAKE_C_COMPILER_ID})\n"
        "       Compiler: Fortran ...: ${CMAKE_Fortran_COMPILER} (${CMAKE_Fortran_COMPILER_ID})\n")
if(CHAMELEON_USE_MPI)
  set(dep_message "${dep_message}"
  "       Compiler: MPI .......: ${MPI_C_COMPILER}\n"
  "       compiler flags ......: ${MPI_C_COMPILE_FLAGS}\n")
endif()
set(dep_message "${dep_message}"
"       Linker: .............: ${CMAKE_LINKER}\n"
"\n"
"       Build type ..........: ${CMAKE_BUILD_TYPE}\n"
"       Build shared ........: ${BUILD_SHARED_LIBS}\n"
"       CFlags ..............: ${CMAKE_C_FLAGS}\n"
"       LDFlags .............: ${CMAKE_C_LINK_FLAGS}\n"
44
"       EXE LDFlags .........: ${CMAKE_EXE_LINKER_FLAGS}\n"
45 46 47 48 49 50
"\n"
"       Implementation paradigm\n"
"       CUDA ................: ${CHAMELEON_USE_CUDA}\n"
"       MPI .................: ${CHAMELEON_USE_MPI}\n"
"\n"
"       Runtime specific\n"
51
"       PARSEC ..............: ${CHAMELEON_SCHED_PARSEC}\n"
PRUVOST Florent's avatar
PRUVOST Florent committed
52
"       QUARK ...............: ${CHAMELEON_SCHED_QUARK}\n"
53
"       STARPU ..............: ${CHAMELEON_SCHED_STARPU}\n"
54 55
"\n"
"       Kernels specific\n"
56 57
"       BLAS ................: ${BLAS_VENDOR_FOUND}\n"
"       LAPACK...............: ${LAPACK_VENDOR_FOUND}\n"
58
"\n"
59
"       Trace ...............: ${CHAMELEON_ENABLE_TRACING}\n"
60 61 62
"       Simulation mode .....: ${CHAMELEON_SIMULATION}\n"
"\n"
"       Binaries to build\n"
PRUVOST Florent's avatar
PRUVOST Florent committed
63
"       documentation ........: ${CHAMELEON_ENABLE_DOC}\n"
64 65 66 67 68
"       example ..............: ${CHAMELEON_ENABLE_EXAMPLE}\n"
"       testing ..............: ${CHAMELEON_ENABLE_TESTING}\n"
"       timing ...............: ${CHAMELEON_ENABLE_TIMING}\n"
"\n"
"       CHAMELEON dependencies :\n")
PRUVOST Florent's avatar
PRUVOST Florent committed
69
foreach (_dep ${CHAMELEON_LIBRARIES_DEP})
70 71 72 73 74 75 76 77
    set(dep_message "${dep_message}"
    "                                 ${_dep}\n")
endforeach ()
set(dep_message "${dep_message}"
"\n"
"       INSTALL_PREFIX ......: ${CMAKE_INSTALL_PREFIX}\n\n")

string(REPLACE ";" " " dep_message_wsc "${dep_message}")
78
message(${dep_message})
79 80
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/config.log "${dep_message_wsc}")
message(STATUS "Configuration is done - A summary of the current configuration"
81
"\n   has been written in ${CMAKE_CURRENT_BINARY_DIR}/config.log")
82 83 84
# installation
# ------------
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/config.log DESTINATION share/chameleon)