Skip to content

Commit 824585f

Browse files
Updated macro API documentation
1 parent 0ce8883 commit 824585f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/documentation/gpuParallelization.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,16 @@ Note: Ordering is not guaranteed or stable, so use key-value pairing when using
4444

4545
**Macro Invocation**
4646

47-
Uses FYPP eval directive using `#:call`
47+
In order to parallelize a loop, simply place two macro calls on either end of the loop:
4848

4949
```C
50-
#:call GPU_PARALLEL_LOOP(...)
50+
$:$GPU_PARALLEL_LOOP(...)
5151
{code}
52-
#:endcall GPU_PARALLEL_LOOP
52+
$:END_GPU_PARALLEL_LOOP()
5353
```
5454
55+
This wraps the lines in `code` with parallelization calls to openACC or openMP, depending on environement and compiler settings.
56+
5557
**Parameters**
5658
5759
| name | data type | Default Value | description |

0 commit comments

Comments
 (0)