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
Merge requests
!1757
online: Disable parallel sorting to prevent memleak from libTBB
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
online: Disable parallel sorting to prevent memleak from libTBB
fweig/cbmroot:memleak-fix
into
master
Overview
1
Commits
4
Pipelines
5
Changes
2
Merged
Felix Weiglhofer
requested to merge
fweig/cbmroot:memleak-fix
into
master
1 year ago
Overview
1
Commits
4
Pipelines
5
Changes
2
Refs
#3028
Edited
1 year ago
by
Felix Weiglhofer
0
0
Merge request reports
Compare
master
version 4
f0ad2c49
1 year ago
version 3
fdc5659b
1 year ago
version 2
7b7030fc
1 year ago
version 1
4ca78e52
1 year ago
master (base)
and
latest version
latest version
b09311d3
4 commits,
1 year ago
version 4
f0ad2c49
4 commits,
1 year ago
version 3
fdc5659b
3 commits,
1 year ago
version 2
7b7030fc
2 commits,
1 year ago
version 1
4ca78e52
2 commits,
1 year ago
2 files
+
10
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
algo/base/compat/Algorithm.h
+
6
−
3
View file @ b09311d3
Edit in single-file editor
Open in Web IDE
Show full file
@@ -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
);
Loading