Join omp pragmas
in d5p2.
This commit is contained in:
parent
5afa103769
commit
b096a62100
@ -83,8 +83,7 @@ int main(int argc, char **argv) {
|
|||||||
uint64_t lowest_loc_n = UINT64_MAX;
|
uint64_t lowest_loc_n = UINT64_MAX;
|
||||||
|
|
||||||
for (size_t i = 0; i < seed_ranges_len; i += 2) {
|
for (size_t i = 0; i < seed_ranges_len; i += 2) {
|
||||||
#pragma omp shared(lowest_loc_n)
|
#pragma omp parallel for shared(lowest_loc_n)
|
||||||
#pragma omp parallel for
|
|
||||||
for (uint64_t r = seed_ranges[i]; r < seed_ranges[i] + seed_ranges[i+1]; ++r) {
|
for (uint64_t r = seed_ranges[i]; r < seed_ranges[i] + seed_ranges[i+1]; ++r) {
|
||||||
uint64_t seed = r;
|
uint64_t seed = r;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user