Skip to content

Commit cd6dc7d

Browse files
committed
Version 18.75
1 parent eea22ab commit cd6dc7d

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Src/FEMTree.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,7 +2525,7 @@ namespace PoissonRecon
25252525
const DenseNodeData< T , FEMSignatures >& _coefficients;
25262526
DenseNodeData< T , FEMSignatures > _coarseCoefficients;
25272527
public:
2528-
_MultiThreadedEvaluator( const FEMTree* tree , const DenseNodeData< T , FEMSignatures >& coefficients , int threads=std::thread::hardware_concurrency() );
2528+
_MultiThreadedEvaluator( const FEMTree* tree , const DenseNodeData< T , FEMSignatures >& coefficients , int threads=ThreadPool::NumThreads() );
25292529
template< unsigned int _PointD=PointD > CumulativeDerivativeValues< T , Dim , _PointD > values( Point< Real , Dim > p , int thread=0 , const FEMTreeNode* node=NULL );
25302530
template< unsigned int _PointD=PointD > CumulativeDerivativeValues< T , Dim , _PointD > centerValues( const FEMTreeNode* node , int thread=0 );
25312531
template< unsigned int _PointD=PointD > CumulativeDerivativeValues< T , Dim , _PointD > cornerValues( const FEMTreeNode* node , int corner , int thread=0 );
@@ -2539,7 +2539,7 @@ namespace PoissonRecon
25392539
std::vector< ConstPointSupportKey< IsotropicUIntPack< Dim , DensityDegree > > > _neighborKeys;
25402540
const DensityEstimator< DensityDegree >& _density;
25412541
public:
2542-
MultiThreadedWeightEvaluator( const FEMTree* tree , const DensityEstimator< DensityDegree >& density , int threads=std::thread::hardware_concurrency() );
2542+
MultiThreadedWeightEvaluator( const FEMTree* tree , const DensityEstimator< DensityDegree >& density , int threads=ThreadPool::NumThreads() );
25432543
Real weight( Point< Real , Dim > p , int thread=0 );
25442544
};
25452545

@@ -2555,7 +2555,7 @@ namespace PoissonRecon
25552555
typename FEMIntegrator::template PointEvaluator< UIntPack< FEMSigs ... > , ZeroUIntPack< Dim > > *_pointEvaluator;
25562556
const SparseNodeData< T , FEMSignatures >& _coefficients;
25572557
public:
2558-
MultiThreadedSparseEvaluator( const FEMTree* tree , const SparseNodeData< T , FEMSignatures >& coefficients , int threads=std::thread::hardware_concurrency() );
2558+
MultiThreadedSparseEvaluator( const FEMTree* tree , const SparseNodeData< T , FEMSignatures >& coefficients , int threads=ThreadPool::NumThreads() );
25592559
~MultiThreadedSparseEvaluator( void ){ if( _pointEvaluator ) delete _pointEvaluator; }
25602560
void addValue( Point< Real , Dim > p , T &t , int thread=0 , const FEMTreeNode* node=NULL );
25612561
template< typename AccumulationFunctor/*=std::function< void ( const T & , Real s ) > */ >

Src/FEMTree.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ FEMTree< Dim , Real >::FEMTree( size_t blockSize ) : _nodeInitializer( *this ) ,
337337
{
338338
if( blockSize )
339339
{
340-
nodeAllocators.resize( std::thread::hardware_concurrency() );
340+
nodeAllocators.resize( ThreadPool::NumThreads() );
341341
for( size_t i=0 ; i<nodeAllocators.size() ; i++ )
342342
{
343343
nodeAllocators[i] = new Allocator< FEMTreeNode >();

Src/PreProcessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ DAMAGE.
4646
#define USE_DEEP_TREE_NODES // Chances are that if you are using big data, you want to support a tree with depth>15.
4747
#endif // BIG_DATA
4848

49-
#define ADAPTIVE_SOLVERS_VERSION "18.74" // The version of the code
49+
#define ADAPTIVE_SOLVERS_VERSION "18.75" // The version of the code
5050
#define MEMORY_ALLOCATOR_BLOCK_SIZE 1<<12 // The chunk size for memory allocation
5151

5252
#define ADAPTIVE_PADDING // Only pushes padding points deep enough so that they are "close" to the slab in terms of units at that depth

Src/Reconstructors.streams.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ namespace PoissonRecon
240240

241241
OutputInputFaceStream( void )
242242
{
243-
size_t sz = std::thread::hardware_concurrency();
243+
size_t sz = ThreadPool::NumThreads();
244244

245245
_backingVectors.resize( sz , nullptr );
246246

@@ -293,7 +293,7 @@ namespace PoissonRecon
293293

294294
~OutputInputFaceStream( void )
295295
{
296-
size_t sz = std::thread::hardware_concurrency();
296+
size_t sz = ThreadPool::NumThreads();
297297

298298
delete _backingVector;
299299
delete _backingFile;
@@ -351,7 +351,7 @@ namespace PoissonRecon
351351
OutputInputFactoryTypeStream( Factory &factory , std::function< Vertex ( const Position< Real , Dim > & , const Gradient< Real , Dim > & , const Weight< Real > & , const Data & ... ) > converter )
352352
: _converter( converter )
353353
{
354-
size_t sz = std::thread::hardware_concurrency();
354+
size_t sz = ThreadPool::NumThreads();
355355

356356
_backingVectors.resize( sz , nullptr );
357357

@@ -399,7 +399,7 @@ namespace PoissonRecon
399399

400400
~OutputInputFactoryTypeStream( void )
401401
{
402-
size_t sz = std::thread::hardware_concurrency();
402+
size_t sz = ThreadPool::NumThreads();
403403

404404
delete _backingVector;
405405
delete _backingFile;

0 commit comments

Comments
 (0)