Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
8c67f24c
Commit
8c67f24c
authored
Oct 18, 2017
by
PRUVOST Florent
Browse files
add dependencies between sources target and library to avoid parallel build failure
parent
98722214
Changes
7
Hide whitespace changes
Inline
Side-by-side
compute/CMakeLists.txt
View file @
8c67f24c
...
...
@@ -311,6 +311,7 @@ list(INSERT CHAMELEON_DEP 0 -lchameleon)
add_dependencies
(
chameleon
chameleon_include
control_include
chameleon_sources
)
set_property
(
TARGET chameleon PROPERTY LINKER_LANGUAGE Fortran
)
...
...
coreblas/compute/CMakeLists.txt
View file @
8c67f24c
...
...
@@ -114,7 +114,7 @@ set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};coreblas_sources" CA
# ------------
add_library
(
coreblas
${
COREBLAS_SRCS
}
)
list
(
INSERT CHAMELEON_DEP 0 -lcoreblas
)
add_dependencies
(
coreblas coreblas_include
)
add_dependencies
(
coreblas coreblas_include
coreblas_sources
)
set_property
(
TARGET coreblas PROPERTY LINKER_LANGUAGE Fortran
)
set_property
(
TARGET coreblas PROPERTY INSTALL_NAME_DIR
"
${
CMAKE_INSTALL_PREFIX
}
/lib"
)
...
...
cudablas/compute/CMakeLists.txt
View file @
8c67f24c
...
...
@@ -96,7 +96,7 @@ set(CHAMELEON_SOURCES_TARGETS "${CHAMELEON_SOURCES_TARGETS};cudablas_sources" CA
# Compile step
# ------------
add_library
(
cudablas
${
CUDABLAS_SRCS
}
)
add_dependencies
(
cudablas cudablas_include
)
add_dependencies
(
cudablas cudablas_include
cudablas_sources
)
set_property
(
TARGET cudablas PROPERTY LINKER_LANGUAGE Fortran
)
set_property
(
TARGET cudablas PROPERTY INSTALL_NAME_DIR
"
${
CMAKE_INSTALL_PREFIX
}
/lib"
)
...
...
runtime/parsec/CMakeLists.txt
View file @
8c67f24c
...
...
@@ -131,6 +131,7 @@ add_dependencies(chameleon_parsec
chameleon_include
control_include
runtime_parsec_include
parsec_sources
)
if
(
NOT CHAMELEON_SIMULATION
)
...
...
runtime/quark/CMakeLists.txt
View file @
8c67f24c
...
...
@@ -126,6 +126,7 @@ add_dependencies(chameleon_quark
chameleon_include
control_include
runtime_quark_include
quark_sources
)
if
(
NOT CHAMELEON_SIMULATION
)
add_dependencies
(
chameleon_quark coreblas_include
)
...
...
runtime/starpu/CMakeLists.txt
View file @
8c67f24c
...
...
@@ -148,6 +148,7 @@ add_dependencies(chameleon_starpu
chameleon_include
control_include
runtime_starpu_include
starpu_sources
)
if
(
NOT CHAMELEON_SIMULATION
)
add_dependencies
(
chameleon_starpu coreblas_include
)
...
...
timing/CMakeLists.txt
View file @
8c67f24c
...
...
@@ -59,12 +59,16 @@ if (NOT CHAMELEON_SIMULATION)
PRECISIONS
"
${
CHAMELEON_PRECISION
}
"
)
set
(
TIMING_SRCS
${
TIMING_AUX_SRCS_GENERATED
}
)
# Force generation of sources
# ---------------------------
add_custom_target
(
timing_aux_sources ALL SOURCES
${
TIMINGS_SRCS
}
)
set
(
CHAMELEON_SOURCES_TARGETS
"
${
CHAMELEON_SOURCES_TARGETS
}
;timing_aux_sources"
CACHE INTERNAL
"List of targets of sources"
)
# Create libchameleon_timing.a
# -----------------------------
add_library
(
chameleon_timing STATIC
${
TIMING_SRCS
}
)
set_property
(
TARGET chameleon_timing PROPERTY LINKER_LANGUAGE Fortran
)
add_dependencies
(
chameleon_timing timing_include
)
add_dependencies
(
chameleon_timing timing_include
timing_aux_sources
)
endif
()
# Generate the morse testing sources for all possible precisions
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment