Join omp pragmas

in d5p2.
This commit is contained in:
Alexander Andreev 2023-12-06 03:45:36 +04:00
parent 5afa103769
commit b096a62100
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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;