forked from personal/squiggle.c
add comment; recompile
This commit is contained in:
parent
b352cdf3ba
commit
27f9d76e9a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -63,6 +63,8 @@ void sampler_parallel(double (*sampler)(uint64_t* seed), double* results, int n_
|
||||||
{
|
{
|
||||||
#pragma omp for
|
#pragma omp for
|
||||||
for (i = 0; i < n_threads; i++) {
|
for (i = 0; i < n_threads; i++) {
|
||||||
|
// It's possible I don't need the for, and could instead call omp
|
||||||
|
// in some different way and get the thread number with omp_get_thread_num()
|
||||||
int lower_bound_inclusive = i * quotient;
|
int lower_bound_inclusive = i * quotient;
|
||||||
int upper_bound_not_inclusive = ((i + 1) * quotient); // note the < in the for loop below,
|
int upper_bound_not_inclusive = ((i + 1) * quotient); // note the < in the for loop below,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user