Bug fix for memory leak on CPU

- the call for tbb is disabled.
- parallel sort of Kokkos is also very slow.
- for now, std::sort is used for sort, which is more performant than both avaible options. This would be changed anytime any possible solution is found.
This commit is contained in:
Hamidreza
2025-03-15 17:15:32 +03:30
parent 892f5395bc
commit 5eef26a6ed
4 changed files with 16 additions and 7 deletions

View File

@ -193,7 +193,7 @@ public:
if( capacity+1 > flags_.size() )
{
reallocNoInit(flags_, capacity+1);
reallocInit(flags_, capacity+1);
}
// fill the flags
@ -219,7 +219,7 @@ public:
{
// get more space to prevent reallocations in next iterations
uint32 len = size_*1.1+1;
reallocNoInit(sortedPairs_, len);
reallocInit(sortedPairs_, len);
}
Kokkos::parallel_for(
@ -231,6 +231,7 @@ public:
// - sort paris based on the first and second
sort(sortedPairs_, 0, size_ );
}