CTestConfig.cmake 1.93 KB
Newer Older
1 2 3 4 5 6
## This file should be placed in the root directory of your project.
## Then modify the CMakeLists.txt file in the root directory of your
## project to incorporate the testing dashboard.
## # The following are required to uses Dart and the Cdash dashboard
##   ENABLE_TESTING()
##   INCLUDE(CTest)
7
set(CTEST_PROJECT_NAME "Chameleon")
8 9 10 11
set(CTEST_NIGHTLY_START_TIME "00:00:00 GMT")

set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "cdash.inria.fr")
12
# Shouldn't we change that to Chameleon ?
13 14 15 16 17
set(CTEST_DROP_LOCATION "/CDash/submit.php?project=Morse-Magma")
set(CTEST_DROP_SITE_CDASH TRUE)

#--------------------------------------------------------------------
# BUILDNAME variable construction
18
# This variable will be used to set the build name which will appear
19
# on the Chameleon dashboard http://cdash.inria.fr/CDash/
20 21 22 23 24
#--------------------------------------------------------------------
# Start with the short system name, e.g. "Linux", "FreeBSD" or "Windows"
if(NOT BUILDNAME)

    set(BUILDNAME "${CMAKE_SYSTEM_NAME}")
25

26 27 28 29 30 31 32 33
    # Add i386 or amd64
    if(CMAKE_SIZEOF_VOID_P EQUAL 8)
        set(BUILDNAME "${BUILDNAME}-amd64")
    else()
        set(BUILDNAME "${BUILDNAME}-i386")
    endif()

    # Add compiler name
PRUVOST Florent's avatar
PRUVOST Florent committed
34
    get_filename_component(CMAKE_C_COMPILER_NAME ${CMAKE_C_COMPILER} NAME)
35 36 37 38 39 40 41
    set(BUILDNAME "${BUILDNAME}-${CMAKE_C_COMPILER_NAME}")

    # Add the build type, e.g. "Debug, Release..."
    if(CMAKE_BUILD_TYPE)
        set(BUILDNAME "${BUILDNAME}-${CMAKE_BUILD_TYPE}")
    endif(CMAKE_BUILD_TYPE)

42
    # Specific options of Chameleon
43
    if(CHAMELEON_SCHED_QUARK)
44
        set(BUILDNAME "${BUILDNAME}-Quark")
45
    endif(CHAMELEON_SCHED_QUARK)
46

47
    if(CHAMELEON_SCHED_STARPU)
48
        set(BUILDNAME "${BUILDNAME}-StarPU")
49
    endif(CHAMELEON_SCHED_STARPU)
50

51
    if(CHAMELEON_USE_MPI)
52
        set(BUILDNAME "${BUILDNAME}-mpi")
53
    endif(CHAMELEON_USE_MPI)
54

55
    if(CHAMELEON_USE_CUDA)
56
        set(BUILDNAME "${BUILDNAME}-cuda")
PRUVOST Florent's avatar
PRUVOST Florent committed
57
    endif(CHAMELEON_USE_CUDA)
58

59 60
endif()