Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 2825b6e1 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Move the check for simulation to the higher level

parent b706a3ac
No related branches found
No related tags found
1 merge request!55Fix #42 - HQR header installation
...@@ -614,7 +614,7 @@ endif(NOT CHAMELEON_SIMULATION) ...@@ -614,7 +614,7 @@ endif(NOT CHAMELEON_SIMULATION)
# ------------------------------- # -------------------------------
if( CHAMELEON_SCHED_STARPU ) if( CHAMELEON_SCHED_STARPU )
set(CHAMELEON_STARPU_VERSION "1.1" CACHE STRING "oldest STARPU version desired") set(CHAMELEON_STARPU_VERSION "1.1" CACHE STRING "oldest STARPU version desired")
# create list of components in order to make a single call to find_package(starpu...) # create list of components in order to make a single call to find_package(starpu...)
if(NOT CHAMELEON_SIMULATION) if(NOT CHAMELEON_SIMULATION)
...@@ -1006,57 +1006,46 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}) ...@@ -1006,57 +1006,46 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include) include_directories(${CMAKE_CURRENT_BINARY_DIR}/include)
if (NOT CHAMELEON_SIMULATION)
############################################################################### ###############################################################################
# Coreblas library (kernels for CPUs) # # Coreblas library (kernels for CPUs) #
####################################### #######################################
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/coreblas/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/coreblas/include) include_directories(${CMAKE_CURRENT_BINARY_DIR}/coreblas/include)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/coreblas/include) add_subdirectory(coreblas)
add_subdirectory(coreblas)
#------------------------------------------------------------------------------ ###############################################################################
# Cudablas library (kernels for CUDAs) #
########################################
############################################################################### if(CHAMELEON_USE_CUDA)
# Cudablas library (kernels for CUDAs) #
########################################
if(CHAMELEON_USE_CUDA)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/cudablas/include) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/cudablas/include)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/cudablas/include) include_directories(${CMAKE_CURRENT_BINARY_DIR}/cudablas/include)
add_subdirectory(cudablas) add_subdirectory(cudablas)
endif()
endif() endif()
#------------------------------------------------------------------------------
############################################################################### ###############################################################################
# Add HQR library # # Add HQR library #
################### ###################
add_subdirectory(hqr) add_subdirectory(hqr)
include_directories(hqr/include) include_directories(hqr/include)
#------------------------------------------------------------------------------
############################################################################### ###############################################################################
# Main library # # Main library #
################ ################
add_subdirectory(include) add_subdirectory(include)
add_subdirectory(control) add_subdirectory(control)
add_subdirectory(compute) add_subdirectory(compute)
#------------------------------------------------------------------------------
############################################################################### ###############################################################################
# Runtime library # # Runtimes libraries #
################### ######################
add_subdirectory(runtime) add_subdirectory(runtime)
#------------------------------------------------------------------------------
############################################################################### ###############################################################################
# Executables and Tests # # Executables and Tests #
######################### #########################
enable_testing() enable_testing()
include(CTest) include(CTest)
......
...@@ -27,10 +27,8 @@ ...@@ -27,10 +27,8 @@
### ###
add_subdirectory(include) add_subdirectory(include)
if (NOT CHAMELEON_SIMULATION) add_subdirectory(compute)
add_subdirectory(compute) add_subdirectory(eztrace_module)
add_subdirectory(eztrace_module)
endif()
### ###
### END CMakeLists.txt ### END CMakeLists.txt
......
...@@ -109,26 +109,21 @@ set(COREBLAS_SRCS ...@@ -109,26 +109,21 @@ set(COREBLAS_SRCS
add_library(coreblas ${COREBLAS_SRCS}) add_library(coreblas ${COREBLAS_SRCS})
list(INSERT CHAMELEON_DEP 0 -lcoreblas) list(INSERT CHAMELEON_DEP 0 -lcoreblas)
add_dependencies(coreblas coreblas_include) add_dependencies(coreblas coreblas_include)
set_property(TARGET coreblas PROPERTY LINKER_LANGUAGE Fortran) #set_property(TARGET coreblas PROPERTY LINKER_LANGUAGE Fortran)
set_property(TARGET coreblas PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib") #set_property(TARGET coreblas PROPERTY INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
if(NOT CHAMELEON_SIMULATION) target_link_libraries(coreblas
target_link_libraries(coreblas ${LAPACKE_LIBRARIES} ${CBLAS_LIBRARIES}) ${LAPACKE_LIBRARIES}
endif(NOT CHAMELEON_SIMULATION) ${LAPACK_SEQ_LIBRARIES}
${CBLAS_LIBRARIES}
${BLAS_SEQ_LIBRARIES}
)
# # Dependencies step # Installation
# # -----------------
# foreach(_external_package "blas" "cblas" "lapack" "lapacke")
# string(TOUPPER "${_external_package}" _NAMEVAR)
# if(${_NAMEVAR}_EP)
# add_dependencies(coreblas ${_external_package}_build)
# endif()
# endforeach()
# installation
# ------------ # ------------
install(TARGETS coreblas install(TARGETS coreblas
DESTINATION lib) ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib)
### ###
### END CMakeLists.txt ### END CMakeLists.txt
......
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