Skip to content

Commit 62da407

Browse files
Restored the preferred table formatting (leading/trailing pipes, no leading/trailing spaces around interior pipes).
1 parent 4bbbd1d commit 62da407

4 files changed

Lines changed: 38 additions & 38 deletions

File tree

docs/parallel/openmp/reference/openmp-clauses.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ Provides links to clauses used in the OpenMP API.
1818

1919
Visual C++ supports the following OpenMP clauses:
2020

21-
Clause | Description
22-
---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
23-
[copyin](#copyin) | Allows threads to access the master thread's value, for a [threadprivate](openmp-directives.md#threadprivate) variable.
24-
[copyprivate](#copyprivate) | Specifies that one or more variables should be shared among all threads.
25-
[default](#default-openmp) | Specifies the behavior of unscoped variables in a parallel region.
26-
[firstprivate](#firstprivate) | Specifies that each thread should have its own instance of a variable, and that the variable should be initialized with the value of the variable, because it exists before the parallel construct.
27-
[if](#if-openmp) | Specifies whether a loop should be executed in parallel or in serial.
28-
[lastprivate](#lastprivate) | Specifies that the enclosing context's version of the variable is set equal to the private version of whichever thread executes the final iteration (for-loop construct) or last section (#pragma sections).
29-
[nowait](#nowait) | Overrides the barrier implicit in a directive.
30-
[num_threads](#num-threads) | Sets the number of threads in a thread team.
31-
[ordered](#ordered-openmp-clauses) | Required on a parallel [for](openmp-directives.md#for-openmp) statement if an [ordered](openmp-directives.md#ordered-openmp-directives) directive is to be used in the loop.
32-
[private](#private-openmp) | Specifies that each thread should have its own instance of a variable.
33-
[reduction](#reduction) | Specifies that one or more variables that are private to each thread are the subject of a reduction operation at the end of the parallel region.
34-
[schedule](#schedule) | Applies to the [for](openmp-directives.md#for-openmp) directive.
35-
[shared](#shared-openmp) | Specifies that one or more variables should be shared among all threads.
21+
|Clause|Description|
22+
|------|-----------|
23+
|[copyin](#copyin)|Allows threads to access the master thread's value, for a [threadprivate](openmp-directives.md#threadprivate) variable.|
24+
|[copyprivate](#copyprivate)|Specifies that one or more variables should be shared among all threads.|
25+
|[default](#default-openmp)|Specifies the behavior of unscoped variables in a parallel region.|
26+
|[firstprivate](#firstprivate)|Specifies that each thread should have its own instance of a variable, and that the variable should be initialized with the value of the variable, because it exists before the parallel construct.|
27+
|[if](#if-openmp)|Specifies whether a loop should be executed in parallel or in serial.|
28+
|[lastprivate](#lastprivate)|Specifies that the enclosing context's version of the variable is set equal to the private version of whichever thread executes the final iteration (for-loop construct) or last section (#pragma sections).|
29+
|[nowait](#nowait)|Overrides the barrier implicit in a directive.|
30+
|[num_threads](#num-threads)|Sets the number of threads in a thread team.|
31+
|[ordered](#ordered-openmp-clauses)|Required on a parallel [for](openmp-directives.md#for-openmp) statement if an [ordered](openmp-directives.md#ordered-openmp-directives) directive is to be used in the loop.|
32+
|[private](#private-openmp)|Specifies that each thread should have its own instance of a variable.|
33+
|[reduction](#reduction)|Specifies that one or more variables that are private to each thread are the subject of a reduction operation at the end of the parallel region.|
34+
|[schedule](#schedule)|Applies to the [for](openmp-directives.md#for-openmp) directive.|
35+
|[shared](#shared-openmp)|Specifies that one or more variables should be shared among all threads.|
3636

3737
## <a name="copyin"></a>copyin
3838

docs/parallel/openmp/reference/openmp-data-types.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ Provides links to data types used in the OpenMP API.
1818

1919
The Visual C++ implementation of the OpenMP standard includes the following data types.
2020

21-
Data type | Description
22-
----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
23-
[omp_lock_t](#omp-lock-t) | A type that holds the status of a lock, whether the lock is available or if a thread owns a lock.
24-
[omp_nest_lock_t](#omp-nest-lock-t) | A type that holds one of the following pieces of information about a lock: whether the lock is available, and the identity of the thread that owns the lock and a nesting count.
21+
|Data type|Description|
22+
|---------|-----------|
23+
|[omp_lock_t](#omp-lock-t)|A type that holds the status of a lock, whether the lock is available or if a thread owns a lock.|
24+
|[omp_nest_lock_t](#omp-nest-lock-t)|A type that holds one of the following pieces of information about a lock: whether the lock is available, and the identity of the thread that owns the lock and a nesting count.|
2525

2626
## <a name="omp-lock-t"></a>omp_lock_t
2727

docs/parallel/openmp/reference/openmp-directives.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ Provides links to directives used in the OpenMP API.
1818

1919
Visual C++ supports the following OpenMP directives:
2020

21-
Directive | Description
22-
------------------------------------- | -----------------------------------------------------------------------------------------------------------------
23-
[atomic](#atomic) | Specifies that a memory location that will be updated atomically.
24-
[barrier](#barrier) | Synchronizes all threads in a team; all threads pause at the barrier, until all threads execute the barrier.
25-
[critical](#critical) | Specifies that code is only executed on one thread at a time.
26-
[flush](#flush-openmp) | Specifies that all threads have the same view of memory for all shared objects.
27-
[for](#for-openmp) | Causes the work done in a `for` loop inside a parallel region to be divided among threads.
28-
[master](#master) | Specifies that only the master thread should execute a section of the program.
29-
[ordered](#ordered-openmp-directives) | Specifies that code under a parallelized `for` loop should be executed like a sequential loop.
30-
[parallel](#parallel) | Defines a parallel region, which is code that will be executed by multiple threads in parallel.
31-
[sections](#sections-openmp) | Identifies code sections to be divided among all threads.
32-
[single](#single) | Lets you specify that a section of code should be executed on a single thread, not necessarily the master thread.
33-
[threadprivate](#threadprivate) | Specifies that a variable is private to a thread.
21+
|Directive|Description|
22+
|---------|-----------|
23+
|[atomic](#atomic)|Specifies that a memory location that will be updated atomically.|
24+
|[barrier](#barrier)|Synchronizes all threads in a team; all threads pause at the barrier, until all threads execute the barrier.|
25+
|[critical](#critical)|Specifies that code is only executed on one thread at a time.|
26+
|[flush](#flush-openmp)|Specifies that all threads have the same view of memory for all shared objects.|
27+
|[for](#for-openmp)|Causes the work done in a `for` loop inside a parallel region to be divided among threads.|
28+
|[master](#master)|Specifies that only the master thread should execute a section of the program.|
29+
|[ordered](#ordered-openmp-directives)|Specifies that code under a parallelized `for` loop should be executed like a sequential loop.|
30+
|[parallel](#parallel)|Defines a parallel region, which is code that will be executed by multiple threads in parallel.|
31+
|[sections](#sections-openmp)|Identifies code sections to be divided among all threads.|
32+
|[single](#single)|Lets you specify that a section of code should be executed on a single thread, not necessarily the master thread.|
33+
|[threadprivate](#threadprivate)|Specifies that a variable is private to a thread.|
3434

3535
## <a name="atomic"></a>atomic
3636

docs/parallel/openmp/reference/openmp-environment-variables.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ Provides links to environment variables used in the OpenMP API.
1818

1919
The Visual C++ implementation of the OpenMP standard includes the following environment variables. These environment variables are read at program startup and modifications to their values are ignored at runtime (for example, using [_putenv, _wputenv](../../../c-runtime-library/reference/putenv-wputenv.md)).
2020

21-
Environment variable | Description
22-
----------------------------------- | -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
23-
[OMP_DYNAMIC](#omp-dynamic) | Specifies whether the OpenMP run time can adjust the number of threads in a parallel region.
24-
[OMP_NESTED](#omp-nested) | Specifies whether nested parallelism is enabled, unless nested parallelism is enabled or disabled with `omp_set_nested`.
25-
[OMP_NUM_THREADS](#omp-num-threads) | Sets the maximum number of threads in the parallel region, unless overridden by [omp_set_num_threads](openmp-functions.md#omp-set-num-threads) or [num_threads](openmp-clauses.md#num-threads).
26-
[OMP_SCHEDULE](#omp-schedule) | Modifies the behavior of the [schedule](openmp-clauses.md#schedule) clause when `schedule(runtime)` is specified in a `for` or `parallel for` directive.
21+
|Environment variable|Description|
22+
|--------------------|-----------|
23+
|[OMP_DYNAMIC](#omp-dynamic)|Specifies whether the OpenMP run time can adjust the number of threads in a parallel region.|
24+
|[OMP_NESTED](#omp-nested)|Specifies whether nested parallelism is enabled, unless nested parallelism is enabled or disabled with `omp_set_nested`.|
25+
|[OMP_NUM_THREADS](#omp-num-threads)|Sets the maximum number of threads in the parallel region, unless overridden by [omp_set_num_threads](openmp-functions.md#omp-set-num-threads) or [num_threads](openmp-clauses.md#num-threads).|
26+
|[OMP_SCHEDULE](#omp-schedule)|Modifies the behavior of the [schedule](openmp-clauses.md#schedule) clause when `schedule(runtime)` is specified in a `for` or `parallel for` directive.|
2727

2828
## <a name="omp-dynamic"></a>OMP_DYNAMIC
2929

0 commit comments

Comments
 (0)