Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
de45cae5
Commit
de45cae5
authored
1 year ago
by
Felix Weiglhofer
Browse files
Options
Downloads
Patches
Plain Diff
online: Disable parallel sorting to prevent memleak from libTBB
parent
eec2510c
No related branches found
No related tags found
1 merge request
!1757
online: Disable parallel sorting to prevent memleak from libTBB
Pipeline
#28835
passed
1 year ago
Stage: build
Stage: package
Stage: verify
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
algo/base/BuildInfo.h
+4
-0
4 additions, 0 deletions
algo/base/BuildInfo.h
algo/base/compat/Algorithm.h
+6
-3
6 additions, 3 deletions
algo/base/compat/Algorithm.h
with
10 additions
and
3 deletions
algo/base/BuildInfo.h
+
4
−
0
View file @
de45cae5
...
...
@@ -6,6 +6,10 @@
#include
<string>
#if __has_include(<execution>) && !defined(__CLING__)
#include
<execution>
// for feature test macro __cpp_lib_parallel_algorithm
#endif
#if defined(HAVE_TBB) && defined(__cpp_lib_parallel_algorithm)
#define HAVE_PARALLEL_ALGORITHM
#endif
...
...
This diff is collapsed.
Click to expand it.
algo/base/compat/Algorithm.h
+
6
−
3
View file @
de45cae5
...
...
@@ -19,8 +19,7 @@
#include
<algorithm>
#if defined(__cpp_lib_execution) && defined(HAVE_PARALLEL_ALGORITHM)
#define WITH_EXECUTION
#ifdef HAVE_PARALLEL_ALGORITHM
#include
<execution>
#endif
...
...
@@ -36,7 +35,11 @@ namespace cbm::algo
template
<
typename
It
,
typename
Compare
>
void
Sort
(
It
first
,
It
last
,
Compare
comp
)
{
#ifdef WITH_EXECUTION
// Disable parallel sorting for the moment
// The underlying implementation in libTBB has a massive memory leak:
// https://community.intel.com/t5/Intel-oneAPI-Threading-Building/std-sort-std-execution-par-unseq-has-a-memory-leak-on-Linux/m-p/1580910
#if 0
// #ifdef HAVE_PARALLEL_ALGORITHM
std::sort(std::execution::par_unseq, first, last, comp);
#else
std
::
sort
(
first
,
last
,
comp
);
...
...
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