Skip to content

Commit 40f2c86

Browse files
committed
Don't use multithreading for Aarch64
See mkazhdan#190 (comment).
1 parent 73ac105 commit 40f2c86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Src_CC_wrap/PoissonReconLib.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,8 @@ bool PoissonReconLib::Reconstruct( const Parameters& params,
715715

716716
#ifdef WITH_OPENMP
717717
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::OPEN_MP, std::thread::hardware_concurrency());
718+
#elif defined __aarch64__ // See https://github.com/mkazhdan/PoissonRecon/issues/190#issuecomment-922378290.
719+
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::NONE, std::thread::hardware_concurrency());
718720
#else
719721
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::THREAD_POOL, std::thread::hardware_concurrency());
720722
#endif
@@ -759,6 +761,8 @@ bool PoissonReconLib::Reconstruct( const Parameters& params,
759761

760762
#ifdef WITH_OPENMP
761763
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::OPEN_MP, std::thread::hardware_concurrency());
764+
#elif defined __aarch64__ // See https://github.com/mkazhdan/PoissonRecon/issues/190#issuecomment-922378290.
765+
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::NONE, std::thread::hardware_concurrency());
762766
#else
763767
ThreadPool::Init((ThreadPool::ParallelType)(int)ThreadPool::THREAD_POOL, std::thread::hardware_concurrency());
764768
#endif

0 commit comments

Comments
 (0)