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
f895c492
Commit
f895c492
authored
5 years ago
by
Martin Beseda
Browse files
Options
Downloads
Patches
Plain Diff
[ENH] Added OpenMP support for compilation.
parent
b7ca31db
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+10
-0
10 additions, 0 deletions
CMakeLists.txt
src/CMakeLists.txt
+1
-0
1 addition, 0 deletions
src/CMakeLists.txt
with
11 additions
and
0 deletions
CMakeLists.txt
+
10
−
0
View file @
f895c492
...
...
@@ -25,6 +25,7 @@ MESSAGE(STATUS "Using CMake ${CMAKE_VERSION}")
# Compile for profiling with GProf
# - binaries need to be run to create gmon.out file and
# 'gprof' command is run subsequently!
#TODO create 'profiling' user parameter
#ADD_COMPILE_OPTIONS(-pg)
#ADD_LINK_OPTIONS(-pg)
...
...
@@ -153,6 +154,15 @@ ELSEIF("${DEPENDENCIES_LINK_TYPE}" STREQUAL "shared")
SET
(
LIB_SUFFIX
"so"
)
ENDIF
()
#-------------#
# Find OpenMP #
#-------------#
MESSAGE
(
"Looking for OpenMP support..."
)
FIND_PACKAGE
(
OpenMP
)
IF
(
OpenMP_FOUND
)
ADD_COMPILE_OPTIONS
(
${
OpenMP_CXX_FLAGS
}
)
ENDIF
()
#-------------------------#
# Find external libraries #
#-------------------------#
...
...
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
1
−
0
View file @
f895c492
...
...
@@ -145,6 +145,7 @@ IF("${BUILD_LIB}" STREQUAL "yes")
${
BLAS_LIBRARIES
}
${
LAPACK_LIBRARIES
}
${
GFORT
}
${
OpenMP_CXX_LIBRARIES
}
)
TARGET_INCLUDE_DIRECTORIES
(
...
...
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