Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 7e60e17d authored by Nathalie Furmento's avatar Nathalie Furmento
Browse files

do not disable new-testing when simulation is enabled

parent 033423fc
No related branches found
No related tags found
1 merge request!191Simulation
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
# @copyright 2009-2014 The University of Tennessee and The University of # @copyright 2009-2014 The University of Tennessee and The University of
# Tennessee Research Foundation. All rights reserved. # Tennessee Research Foundation. All rights reserved.
# @copyright 2012-2019 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, # @copyright 2012-2020 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
# Univ. Bordeaux. All rights reserved. # Univ. Bordeaux. All rights reserved.
# #
### ###
...@@ -501,13 +501,6 @@ else (NOT CHAMELEON_SIMULATION) ...@@ -501,13 +501,6 @@ else (NOT CHAMELEON_SIMULATION)
set(CHAMELEON_ENABLE_EXAMPLE OFF) set(CHAMELEON_ENABLE_EXAMPLE OFF)
message("-- ${BoldBlue}CHAMELEON_ENABLE_EXAMPLE is set to ON but we turn it OFF.") message("-- ${BoldBlue}CHAMELEON_ENABLE_EXAMPLE is set to ON but we turn it OFF.")
endif () endif ()
if (CHAMELEON_ENABLE_TESTING)
set(CHAMELEON_ENABLE_TESTING OFF)
message("-- ${BoldBlue}CHAMELEON_ENABLE_TESTING is set to ON but we turn it OFF."
"\n Because we are compiling the simulation mode (CHAMELEON_SIMULATION=ON),"
"\n there is no sense in compiling testing drivers that are used to check"
"\n numerical correctness of algorithms and kernels.${ColourReset}")
endif ()
# Simulation mode: we depend on SimGrid # Simulation mode: we depend on SimGrid
find_package(SIMGRID REQUIRED) find_package(SIMGRID REQUIRED)
...@@ -995,10 +988,13 @@ if(CHAMELEON_ENABLE_EXAMPLE AND NOT CHAMELEON_SIMULATION) ...@@ -995,10 +988,13 @@ if(CHAMELEON_ENABLE_EXAMPLE AND NOT CHAMELEON_SIMULATION)
endif(CHAMELEON_ENABLE_EXAMPLE AND NOT CHAMELEON_SIMULATION) endif(CHAMELEON_ENABLE_EXAMPLE AND NOT CHAMELEON_SIMULATION)
# Testing executables # Testing executables
if(CHAMELEON_ENABLE_TESTING AND NOT CHAMELEON_SIMULATION) if(CHAMELEON_ENABLE_TESTING)
add_subdirectory(testing)
add_subdirectory(new-testing) add_subdirectory(new-testing)
endif(CHAMELEON_ENABLE_TESTING AND NOT CHAMELEON_SIMULATION) endif(CHAMELEON_ENABLE_TESTING)
if(CHAMELEON_ENABLE_EXAMPLE AND NOT CHAMELEON_SIMULATION)
add_subdirectory(testing)
endif(CHAMELEON_ENABLE_EXAMPLE AND NOT CHAMELEON_SIMULATION)
# Timing executables # Timing executables
if(CHAMELEON_ENABLE_TIMING) if(CHAMELEON_ENABLE_TIMING)
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# #
# @copyright 2009-2014 The University of Tennessee and The University of # @copyright 2009-2014 The University of Tennessee and The University of
# Tennessee Research Foundation. All rights reserved. # Tennessee Research Foundation. All rights reserved.
# @copyright 2012-2019 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, # @copyright 2012-2020 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria,
# Univ. Bordeaux. All rights reserved. # Univ. Bordeaux. All rights reserved.
# #
### ###
...@@ -25,9 +25,6 @@ ...@@ -25,9 +25,6 @@
# @date 2014-11-16 # @date 2014-11-16
# #
### ###
if (CHAMELEON_SIMULATION)
message(ERROR "new-testing directory should not be included when simulation is enabled")
endif()
# Generate chameleon auxiliary testing sources for all possible precisions # Generate chameleon auxiliary testing sources for all possible precisions
# -------------------------------------------------------------------- # --------------------------------------------------------------------
...@@ -128,10 +125,14 @@ foreach(_precision ${CHAMELEON_PRECISION} ) ...@@ -128,10 +125,14 @@ foreach(_precision ${CHAMELEON_PRECISION} )
) )
add_dependencies(${_precision}new-testing add_dependencies(${_precision}new-testing
chameleon_include chameleon_include
coreblas_include
control_include control_include
new-testing_include new-testing_include
) )
if(NOT CHAMELEON_SIMULATION)
add_dependencies(${_precision}new-testing
coreblas_include
)
endif(NOT CHAMELEON_SIMULATION)
set_property(TARGET ${_precision}new-testing PROPERTY LINKER_LANGUAGE Fortran) set_property(TARGET ${_precision}new-testing PROPERTY LINKER_LANGUAGE Fortran)
target_link_libraries(${_precision}new-testing ${libs_for_tests}) target_link_libraries(${_precision}new-testing ${libs_for_tests})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment