Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Gaudi
Gaudi
Commits
c7b57364
Commit
c7b57364
authored
3 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Plain Diff
Do not link GaudiGoogleProfiling against tcmalloc and profiler
See merge request
!1282
parents
665950d0
f23ab7a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1282
Do not link GaudiGoogleProfiling against tcmalloc and profiler
Pipeline
#3336089
passed
3 years ago
Stage: pre-build-checks
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
GaudiProfiling/CMakeLists.txt
+5
-2
5 additions, 2 deletions
GaudiProfiling/CMakeLists.txt
cmake/modules/Findgperftools.cmake
+2
-1
2 additions, 1 deletion
cmake/modules/Findgperftools.cmake
with
7 additions
and
3 deletions
GaudiProfiling/CMakeLists.txt
+
5
−
2
View file @
c7b57364
...
...
@@ -48,12 +48,15 @@ endif()
# Google PerfTools profiler
#-----------------------------------
if
(
GAUDI_USE_GPERFTOOLS
)
# Note we do not link against libtcmalloc.so or libprofiler.so as they have to be
# preloaded (see next comment)
gaudi_add_module
(
GaudiGoogleProfiling
SOURCES src/component/google/GoogleAuditor.cpp
LINK GaudiKernel
GaudiAlgLib
ZLIB::ZLIB
gperftools::gperftools
)
ZLIB::ZLIB
)
# but we still need to add the include directories to the search path
target_include_directories
(
GaudiGoogleProfiling PRIVATE
${
GPERFTOOLS_INCLUDE_DIRS
}
)
# Special handling of unresolved symbols in GaudiGoogleProfiling.
# The profilers need to have libtcmalloc.so or libprofiler.so pre-loaded to
...
...
This diff is collapsed.
Click to expand it.
cmake/modules/Findgperftools.cmake
+
2
−
1
View file @
c7b57364
...
...
@@ -133,7 +133,8 @@ endif()
if
(
COMMAND __deprecate_var_for_target
)
foreach
(
v IN ITEMS GPERFTOOLS_INCLUDE_DIR
GPERFTOOLS_INCLUDE_DIRS GPERFTOOLS_TCMALLOC_LIBRARY
# GPERFTOOLS_INCLUDE_DIRS
GPERFTOOLS_TCMALLOC_LIBRARY
GPERFTOOLS_TCMALLOC_DEBUG_LIBRARY
GPERFTOOLS_TCMALLOC_MINIMAL_LIBRARY
GPERFTOOLS_TCMALLOC_AND_PROFILER_LIBRARY
...
...
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