96
edits
Changes
→Identifying False Sharing
}
int threads_used;
omp_set_num_threads(NUM_THREADS);
double start_time = omp_get_wtime();
#pragma omp parallel
{
int tid = omp_get_thread_num();
odds_local[tid] = 0.0;
#pragma omp for