diff --git a/bazaar/OpenMP_demo/matrix.cpp b/bazaar/OpenMP_demo/matrix.cpp index 7bd14ff49..5a337e3f4 100644 --- a/bazaar/OpenMP_demo/matrix.cpp +++ b/bazaar/OpenMP_demo/matrix.cpp @@ -15,7 +15,7 @@ static void MatMult_device() { #pragma omp parallel shared(hsize, chunk) private(row, col, inner) { // Do matrix multiply sharing iterations on outer loop - #pragma omp for schedule (static, chunk) + #pragma omp for schedule(static, chunk) for (row = 0; row < hsize; ++row) { for (col = 0; col < hsize; ++col) { float sum = 0; diff --git a/bazaar/OpenMP_demo/pi.cpp b/bazaar/OpenMP_demo/pi.cpp index 2b9c2bbf4..7eadb1122 100644 --- a/bazaar/OpenMP_demo/pi.cpp +++ b/bazaar/OpenMP_demo/pi.cpp @@ -7,7 +7,7 @@ static double pi_device() { long count = 0, i; // Parallel loop with reduction for calculating PI - #pragma omp parallel for private(i, x, y) shared (samples) reduction(+:count) + #pragma omp parallel for private(i, x, y) shared(samples) reduction(+:count) for (i = 0; i < samples; ++i) { x = Random(1000000)/1000000.; y = Random(1000000)/1000000.; @@ -15,7 +15,6 @@ static double pi_device() { count++; } return 4.0 * count / samples; - } static double pi_host() { diff --git a/bazaar/OpenMP_demo/srcdoc.tpp/OpenMP$en-us.tpp b/bazaar/OpenMP_demo/srcdoc.tpp/OpenMP$en-us.tpp index 38e0a3323..9d0c1b90c 100644 --- a/bazaar/OpenMP_demo/srcdoc.tpp/OpenMP$en-us.tpp +++ b/bazaar/OpenMP_demo/srcdoc.tpp/OpenMP$en-us.tpp @@ -3,7 +3,7 @@ topic "OpenMP"; [a83;*R6 $$1,0#31310162474203024125188417583966:caption] [{_}%EN-US [s1; [+184 OpenMP]&] -[s0; [2 OpenMP package includes simple ][^https`:`/`/en`.wikipedia`.org`/wiki`/OpenMP^2 O +[s0; [2 OpenMP`_demo package includes simple ][^https`:`/`/en`.wikipedia`.org`/wiki`/OpenMP^2 O penMP][2 benchmarks and demos.]&] [s0;2 &] [s0; [2 OpenMP (Open Multi`-Processing) is a standard API that supports @@ -14,7 +14,8 @@ C and C`+`+. ]&] all main compilers. See Project/Package organizer and include file for details.]&] [s0;2 &] -[s0; [2 More OpenMP in FAQ ][^http`:`/`/openmp`.org`/openmp`-faq`.html`#WhatIs^2 here][2 .]&] +[s0; [2 More OpenMP info in FAQ ][^http`:`/`/openmp`.org`/openmp`-faq`.html`#WhatIs^2 her +e][2 .]&] [s0;2 &] [s0; [2 Benchmarks and demos are:]&] [s0;i150;O0; [2 Pi-|-|Pi number benchmark]&]