Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
lib4neuro
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MolDyn
lib4neuro
Commits
c88c308d
Commit
c88c308d
authored
6 years ago
by
Martin Beseda
Browse files
Options
Downloads
Patches
Plain Diff
FIX: Trying to fix OpenBlass download
parent
e63511cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+0
-1
0 additions, 1 deletion
CMakeLists.txt
DownloadOpenBLAS.cmake
+22
-21
22 additions, 21 deletions
DownloadOpenBLAS.cmake
FindOpenBLAS.cmake
+65
-0
65 additions, 0 deletions
FindOpenBLAS.cmake
with
87 additions
and
22 deletions
CMakeLists.txt
+
0
−
1
View file @
c88c308d
...
...
@@ -144,7 +144,6 @@ if(NOT TURTLE_FOUND AND ALLOW_DEPENDENCIES_DOWNLOAD)
endif
()
message
(
"Checking Armadillo dependencies"
)
option
(
DOWNLOAD_OPENBLAS OFF
)
find_package
(
LAPACK
)
find_package
(
BLAS
)
if
(
NOT LAPACK_FOUND AND NOT BLAS_FOUND AND ALLOW_DEPENDENCIES_DOWNLOAD
)
...
...
This diff is collapsed.
Click to expand it.
DownloadOpenBLAS.cmake
+
22
−
21
View file @
c88c308d
...
...
@@ -20,29 +20,30 @@ FetchContent_Populate(OpenBLAS)
##################
# Build OpenBLAS #
##################
execute_process
(
COMMAND cmake -j
${
N_CORES
}
.
WORKING_DIRECTORY
${
OPENBLAS_LOCAL_PATH
}
RESULT_VARIABLE rv
)
if
(
NOT rv STREQUAL
"0"
)
message
(
"OpenBLAS build: cmake .:
${
rv
}
"
)
endif
()
execute_process
(
COMMAND cmake --build . -j
${
N_CORES
}
--config Release
WORKING_DIRECTORY
${
OPENBLAS_LOCAL_PATH
}
RESULT_VARIABLE rv
)
if
(
NOT rv STREQUAL
"0"
)
message
(
"OpenBLAS build: cmake --build . -j
${
N_CORES
}
:
${
rv
}
"
)
endif
()
set
(
BLAS_DIR external_dependencies/OpenBLAS
)
message
(
"BLAS_DIR "
${
BLAS_DIR
}
)
find_package
(
BLAS
)
#execute_process(
# COMMAND cmake -j ${N_CORES} .
# WORKING_DIRECTORY ${OPENBLAS_LOCAL_PATH}
# RESULT_VARIABLE rv
#)
#if(NOT rv STREQUAL "0")
# message("OpenBLAS build: cmake .: ${rv}")
#endif()
#
#execute_process(
# COMMAND cmake --build . -j ${N_CORES} --config Release
# WORKING_DIRECTORY ${OPENBLAS_LOCAL_PATH}
# RESULT_VARIABLE rv
#)
#if(NOT rv STREQUAL "0")
# message("OpenBLAS build: cmake --build . -j ${N_CORES}: ${rv}")
#endif()
set
(
OpenBLAS_DIR
${
CMAKE_CURRENT_LIST_DIR
}
/external_dependencies/OpenBLAS
)
find_package
(
OpenBLAS
)
if
(
NOT BLAS_FOUND
)
message
(
FATAL_ERROR
"OpenBLAS was not downloaded successfully!"
)
else
()
message
(
"OpenBLAS libraries: "
${
BLAS_LIBRARIES
}
)
endif
()
This diff is collapsed.
Click to expand it.
FindOpenBLAS.cmake
0 → 100644
+
65
−
0
View file @
c88c308d
message
(
"FindOpenBLAS starting..."
)
SET
(
Open_BLAS_INCLUDE_SEARCH_PATHS
${
OpenBLAS_INCLUDE_DIRECTORY
}
$ENV{OpenBLAS_INCLUDE_DIRECTORY}
/usr/include
/usr/include/openblas
/usr/include/openblas-base
/usr/local/include
/usr/local/include/openblas
/usr/local/include/openblas-base
/opt/OpenBLAS/include
${
CMAKE_CURRENT_LIST_DIR
}
/external_dependencies/OpenBLAS
)
SET
(
Open_BLAS_LIB_SEARCH_PATHS
${
OpenBLAS_LIBRARY_DIRECTORY
}
$ENV{OpenBLAS_LIBRARY_DIRECTORY}
/lib/
/lib/openblas-base
/lib64/
/usr/lib
/usr/lib/openblas-base
/usr/lib64
/usr/local/lib
/usr/local/lib64
/opt/OpenBLAS/lib
${
CMAKE_CURRENT_LIST_DIR
}
/external_dependencies/OpenBLAS/lib
)
FIND_PATH
(
OpenBLAS_INCLUDE_DIR
NAMES
cblas.h
PATHS
${
Open_BLAS_INCLUDE_SEARCH_PATHS
}
)
FIND_LIBRARY
(
OpenBLAS_LIBRARIES
NAMES
openblas
PATHS
${
Open_BLAS_LIB_SEARCH_PATHS
}
)
# Set OpenBLAS_Found
INCLUDE
(
FindPackageHandleStandardArgs
)
FIND_PACKAGE_HANDLE_STANDARD_ARGS
(
OpenBLAS
FAIL_MESSAGE
"OpenBLAS was NOT found!"
REQUIRED_VARS
OpenBLAS_INCLUDE_DIR
OpenBLAS_LIBRARY_DIR
)
IF
(
OpenBLAS_FOUND
)
MESSAGE
(
STATUS
"Found OpenBLAS libraries:
${
OpenBLAS_LIBRARIES
}
"
)
MESSAGE
(
STATUS
"Found OpenBLAS include:
${
OpenBLAS_INCLUDE_DIR
}
"
)
ELSE
()
MESSAGE
(
"Could not find OpenBLAS"
)
ENDIF
()
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