Skip to content

Commit d31b2ba

Browse files
committed
Switched back to the implementation of binary splitting without barriers on main-worker-threads.
1 parent 12b5407 commit d31b2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ChudnovskyPiBS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ mpz_class ChudnovskyPiBS::calculatePi()
254254

255255
//std::cout << NUM_THREADS_IN_CPU << std::endl;
256256
//std::cout << TOTAL_THREAD_COUNT << std::endl;
257-
bsReturn BSResult = bs_multithreaded_barrier(0, N, TOTAL_THREAD_COUNT, 0); //bs_multithreaded(0, N, TOTAL_THREAD_COUNT); //bs_multithreaded_barrier(0, N, TOTAL_THREAD_COUNT, 0); //bs(0, N); //apparently Q and T gotten are wrong.
257+
bsReturn BSResult = bs_multithreaded(0, N, TOTAL_THREAD_COUNT); //bs_multithreaded(0, N, TOTAL_THREAD_COUNT); //bs_multithreaded_barrier(0, N, TOTAL_THREAD_COUNT, 0); //bs(0, N); //apparently Q and T gotten are wrong.
258258
//BSResult.Q.get_str();
259259
//BSResult.T.get_str();
260260
//return mpz_fdiv_q((Q * 426880 * sqrtC) / T

0 commit comments

Comments
 (0)