mirror of
https://github.com/PhasicFlow/phasicFlow.git
synced 2025-06-22 16:28:30 +00:00
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:
@ -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_ );
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user