Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
218e681c
Commit
218e681c
authored
Jul 04, 2016
by
PRUVOST Florent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Morse Finds update
parent
27f9a090
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
346 additions
and
329 deletions
+346
-329
CMakeModules/morse/find/FindBLAS.cmake
CMakeModules/morse/find/FindBLAS.cmake
+323
-318
CMakeModules/morse/find/FindBLASEXT.cmake
CMakeModules/morse/find/FindBLASEXT.cmake
+10
-5
CMakeModules/morse/find/FindCBLAS.cmake
CMakeModules/morse/find/FindCBLAS.cmake
+1
-0
CMakeModules/morse/find/FindLAPACKEXT.cmake
CMakeModules/morse/find/FindLAPACKEXT.cmake
+10
-6
CMakeModules/morse/find/FindPTSCOTCH.cmake
CMakeModules/morse/find/FindPTSCOTCH.cmake
+1
-0
CMakeModules/morse/find/FindSCOTCH.cmake
CMakeModules/morse/find/FindSCOTCH.cmake
+1
-0
No files found.
CMakeModules/morse/find/FindBLAS.cmake
View file @
218e681c
This diff is collapsed.
Click to expand it.
CMakeModules/morse/find/FindBLASEXT.cmake
View file @
218e681c
...
...
@@ -291,13 +291,18 @@ endif()
set
(
BLAS_LIBRARY_DIRS
""
)
string
(
REPLACE
" "
";"
BLAS_LIBRARIES
"
${
BLAS_LIBRARIES
}
"
)
foreach
(
blas_lib
${
BLAS_LIBRARIES
}
)
string
(
REPLACE
"-L"
""
blas_lib
"
${
blas_lib
}
"
)
if
(
EXISTS
"
${
blas_lib
}
"
)
list
(
APPEND BLAS_LIBRARY_DIRS
"
${
blas_lib
}
"
)
else
()
get_filename_component
(
a_blas_lib_dir
"
${
blas_lib
}
"
PATH
)
if
(
EXISTS
"
${
a_blas_lib_dir
}
"
)
list
(
APPEND BLAS_LIBRARY_DIRS
"
${
a_blas_lib_dir
}
"
)
list
(
APPEND BLAS_LIBRARY_DIRS
"
${
a_blas_lib_dir
}
"
)
else
()
string
(
REPLACE
"-L"
""
blas_lib
"
${
blas_lib
}
"
)
if
(
EXISTS
"
${
blas_lib
}
"
)
list
(
APPEND BLAS_LIBRARY_DIRS
"
${
blas_lib
}
"
)
else
()
get_filename_component
(
a_blas_lib_dir
"
${
blas_lib
}
"
PATH
)
if
(
EXISTS
"
${
a_blas_lib_dir
}
"
)
list
(
APPEND BLAS_LIBRARY_DIRS
"
${
a_blas_lib_dir
}
"
)
endif
()
endif
()
endif
()
endforeach
()
...
...
CMakeModules/morse/find/FindCBLAS.cmake
View file @
218e681c
...
...
@@ -124,6 +124,7 @@ if (BLAS_FOUND)
# this can be the case with libs such as MKL, ACML
include
(
CheckFunctionExists
)
set
(
CMAKE_REQUIRED_LIBRARIES
"
${
BLAS_LINKER_FLAGS
}
;
${
BLAS_LIBRARIES
}
"
)
set
(
CMAKE_REQUIRED_FLAGS
"
${
BLAS_COMPILER_FLAGS
}
"
)
unset
(
CBLAS_WORKS CACHE
)
check_function_exists
(
cblas_dscal CBLAS_WORKS
)
mark_as_advanced
(
CBLAS_WORKS
)
...
...
CMakeModules/morse/find/FindLAPACKEXT.cmake
View file @
218e681c
...
...
@@ -248,13 +248,18 @@ endif()
set
(
LAPACK_LIBRARY_DIRS
""
)
string
(
REPLACE
" "
";"
LAPACK_LIBRARIES
"
${
LAPACK_LIBRARIES
}
"
)
foreach
(
lapack_lib
${
LAPACK_LIBRARIES
}
)
string
(
REPLACE
"-L"
""
lapack_lib
"
${
lapack_lib
}
"
)
if
(
EXISTS
"
${
lapack_lib
}
"
)
list
(
APPEND LAPACK_LIBRARY_DIRS
"
${
lapack_lib
}
"
)
else
()
get_filename_component
(
a_lapack_lib_dir
"
${
lapack_lib
}
"
PATH
)
if
(
EXISTS
"
${
a_lapack_lib_dir
}
"
)
list
(
APPEND LAPACK_LIBRARY_DIRS
"
${
a_lapack_lib_dir
}
"
)
list
(
APPEND LAPACK_LIBRARY_DIRS
"
${
a_lapack_lib_dir
}
"
)
else
()
string
(
REPLACE
"-L"
""
lapack_lib
"
${
lapack_lib
}
"
)
if
(
EXISTS
"
${
lapack_lib
}
"
)
list
(
APPEND LAPACK_LIBRARY_DIRS
"
${
lapack_lib
}
"
)
else
()
get_filename_component
(
a_lapack_lib_dir
"
${
lapack_lib
}
"
PATH
)
if
(
EXISTS
"
${
a_lapack_lib_dir
}
"
)
list
(
APPEND LAPACK_LIBRARY_DIRS
"
${
a_lapack_lib_dir
}
"
)
endif
()
endif
()
endif
()
endforeach
()
...
...
@@ -262,7 +267,6 @@ if (LAPACK_LIBRARY_DIRS)
list
(
REMOVE_DUPLICATES LAPACK_LIBRARY_DIRS
)
endif
()
# check that LAPACK has been found
# ---------------------------------
include
(
FindPackageHandleStandardArgs
)
...
...
CMakeModules/morse/find/FindPTSCOTCH.cmake
View file @
218e681c
...
...
@@ -230,6 +230,7 @@ foreach(ptscotch_lib ${PTSCOTCH_libs_to_find})
mark_as_advanced
(
PTSCOTCH_
${
ptscotch_lib
}
_LIBRARY
)
endforeach
()
list
(
REMOVE_DUPLICATES PTSCOTCH_LIBRARY_DIRS
)
# check a function to validate the find
if
(
PTSCOTCH_LIBRARIES
)
...
...
CMakeModules/morse/find/FindSCOTCH.cmake
View file @
218e681c
...
...
@@ -213,6 +213,7 @@ foreach(scotch_lib ${SCOTCH_libs_to_find})
mark_as_advanced
(
SCOTCH_
${
scotch_lib
}
_LIBRARY
)
endforeach
()
list
(
REMOVE_DUPLICATES SCOTCH_LIBRARY_DIRS
)
# check a function to validate the find
if
(
SCOTCH_LIBRARIES
)
...
...
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