Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chameleon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
Chameleon
Commits
2825b6e1
Commit
2825b6e1
authored
7 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Move the check for simulation to the higher level
parent
b706a3ac
No related branches found
No related tags found
1 merge request
!55
Fix #42 - HQR header installation
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+17
-28
17 additions, 28 deletions
CMakeLists.txt
coreblas/CMakeLists.txt
+2
-4
2 additions, 4 deletions
coreblas/CMakeLists.txt
coreblas/compute/CMakeLists.txt
+11
-16
11 additions, 16 deletions
coreblas/compute/CMakeLists.txt
with
30 additions
and
48 deletions
CMakeLists.txt
+
17
−
28
View file @
2825b6e1
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
coreblas/CMakeLists.txt
+
2
−
4
View file @
2825b6e1
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
coreblas/compute/CMakeLists.txt
+
11
−
16
View file @
2825b6e1
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment