Skip to content

Commit

Permalink
Use async concurrency for Aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
ababo committed Dec 6, 2021
1 parent 73ac105 commit ab33210
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Src_CC_wrap/PoissonReconLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,8 @@ bool PoissonReconLib::Reconstruct( const Parameters& params,

#ifdef WITH_OPENMP
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::OPEN_MP, std::thread::hardware_concurrency());
#elif defined __aarch64__ // See https://github.com/mkazhdan/PoissonRecon/issues/190#issuecomment-922378290.
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::ASYNC, std::thread::hardware_concurrency());
#else
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::THREAD_POOL, std::thread::hardware_concurrency());
#endif
Expand Down Expand Up @@ -759,6 +761,8 @@ bool PoissonReconLib::Reconstruct( const Parameters& params,

#ifdef WITH_OPENMP
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::OPEN_MP, std::thread::hardware_concurrency());
#elif defined __aarch64__ // See https://github.com/mkazhdan/PoissonRecon/issues/190#issuecomment-922378290.
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::ASYNC, std::thread::hardware_concurrency());
#else
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::THREAD_POOL, std::thread::hardware_concurrency());
#endif
Expand Down

0 comments on commit ab33210

Please sign in to comment.