Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
8e416685
Commit
8e416685
authored
Feb 13, 2015
by
PRUVOST Florent
Browse files
update usage of Finds regarding new modifications on them in morse_distrib
parent
8b8078af
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
8e416685
...
...
@@ -292,16 +292,14 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
if
(
NOT CHAMELEON_SIMULATION
)
# CHAMELEON depends on CBLAS
#---------------------------
-
find_package
(
BLAS
EXT REQUIRED
)
#---------------------------
find_package
(
C
BLAS
COMPONENTS BLASEXT
)
if
(
BLAS_FOUND AND BLAS_LIBRARY_DIRS
)
# the RPATH to be used when installing
list
(
APPEND CMAKE_INSTALL_RPATH
"
${
BLAS_LIBRARY_DIRS
}
"
)
else
()
message
(
FATAL_ERROR
"A BLAS library is required but has not been found"
)
endif
()
find_package
(
CBLAS
)
if
(
CBLAS_FOUND
)
include_directories
(
${
CBLAS_INCLUDE_DIRS
}
)
if
(
CBLAS_LIBRARY_DIRS
)
...
...
@@ -327,19 +325,17 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
# CHAMELEON depends on LAPACKE
#-----------------------------
find_package
(
LAPACKEXT REQUIRED
)
# standalone version of lapacke seems useless for now
# let the comment in case we meet some problems of non existing lapacke
# functions in lapack library such as mkl, acml, ...
#set(LAPACKE_STANDALONE TRUE)
find_package
(
LAPACKE COMPONENTS LAPACKEXT
)
if
(
LAPACK_FOUND AND LAPACK_LIBRARY_DIRS
)
# the RPATH to be used when installing
list
(
APPEND CMAKE_INSTALL_RPATH
"
${
LAPACK_LIBRARY_DIRS
}
"
)
else
()
message
(
FATAL_ERROR
"A LAPACK library is required but has not been found"
)
endif
()
# standalone version of lapacke seems useless for now
# let the comment in case we meet some problems of non existing lapacke
# functions in lapack library such as mkl, acml, ...
#set(LAPACKE_STANDALONE TRUE)
find_package
(
LAPACKE
)
if
(
LAPACKE_FOUND
)
include_directories
(
${
LAPACKE_INCLUDE_DIRS
}
)
if
(
LAPACKE_LIBRARY_DIRS
)
...
...
@@ -364,7 +360,7 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
endif
()
# CHAMELEON depends on TMG
#-------------------------
-
#-------------------------
if
(
CHAMELEON_ENABLE_TESTING OR CHAMELEON_ENABLE_TIMING
)
find_package
(
TMG
)
if
(
TMG_FOUND AND TMG_LIBRARY_DIRS
)
...
...
@@ -415,7 +411,7 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
#----------------------------------------------
if
(
CUDA_FOUND AND CHAMELEON_USE_MAGMA
)
set
(
CHAMELEON_MAGMA_VERSION
"1.4"
CACHE STRING
"oldest MAGMA version desired"
)
find_package
(
MAGMA
${
CHAMELEON_MAGMA_VERSION
}
COMPONENTS CBLAS LAPACK CUDA
)
find_package
(
MAGMA
${
CHAMELEON_MAGMA_VERSION
}
)
if
(
MAGMA_FOUND
)
message
(
"--
${
Blue
}
Add definition CHAMELEON_USE_CUBLAS"
" - Use GPU kernels from cuBLAS
${
ColourReset
}
"
)
...
...
example/link_chameleon/CMakeLists.txt
View file @
8e416685
...
...
@@ -27,11 +27,11 @@ if (MORSE_DISTRIB_DIR)
if
(
MORSE_CHAMELEON_USE_QUARK
)
find_package
(
CHAMELEON COMPONENTS QUARK
)
else
()
find_package
(
CHAMELEON COMPONENTS STARPU
)
find_package
(
CHAMELEON COMPONENTS STARPU
MPI CUDA MAGMA FXT
)
endif
()
if
(
CHAMELEON_FOUND
)
link_directories
(
${
CHAMELEON_LIBRARY_DIRS
}
)
include_directories
(
${
CHAMELEON_INCLUDE_DIRS
}
)
link_directories
(
${
CHAMELEON_LIBRARY_DIRS
_DEP
}
)
include_directories
(
${
CHAMELEON_INCLUDE_DIRS
_DEP
}
)
else
()
message
(
FATAL_ERROR
"Chameleon libraries not found in your environment."
"Please update your environment variables that help find it"
...
...
@@ -40,7 +40,7 @@ if (MORSE_DISTRIB_DIR)
# link_chameleon exe
add_executable
(
link_chameleon link_chameleon.c
)
target_link_libraries
(
link_chameleon
${
CHAMELEON_LIBRARIES
}
)
target_link_libraries
(
link_chameleon
${
CHAMELEON_LIBRARIES
_DEP
}
)
else
()
message
(
STATUS
"MORSE_DISTRIB_DIR is not set"
)
message
(
STATUS
"Please indicate where is located your MORSE distribution directory."
...
...
timing/CMakeLists.txt
View file @
8e416685
...
...
@@ -124,7 +124,7 @@ set(ZSRC
time_zgesv_incpiv.c
time_zgesv_incpiv_tile.c
time_zgesv_nopiv.c
time_zgesv_nopiv_tile.c
time_zgesv_nopiv_tile.c
)
precisions_rules_py
(
TIMINGS
"
${
ZSRC
}
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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