Skip to content

Commit 62c5953

Browse files
dhruvachakronlieb
authored andcommitted
[OpenMP] [Docs] Update comand line docs and link it from top-level md file.
Change-Id: I40a79307cff7734ffeafe95fe5906eba18594b4b (cherry picked from commit 2cf6b8f)
1 parent 748df05 commit 62c5953

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

openmp/docs/CommandLineArgumentReference.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,23 @@ Do not link the device library for CUDA or HIP device compilation.
184184
^^^^^^^^^^^^^
185185
Do not include the default CUDA or HIP headers, and do not add CUDA or HIP
186186
include paths.
187+
188+
``-fopenmp-target-fast, -fno-openmp-target-fast``
189+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
190+
Enables fast optimization options for OpenMP target offloading:
191+
-fopenmp-target-ignore-env-vars, -fopenmp-assume-no-thread-state,
192+
-fopenmp-assume-no-nested-parallelism. Enables -O3 if no -O* level is
193+
specified.
194+
195+
``-fopenmp-target-ignore-env-vars, -fno-openmp-target-ignore-env-vars``
196+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
197+
Generate code assuming that device related environment variables can be ignored.
198+
199+
``-fopenmp-assume-no-thread-state, -fno-openmp-assume-no-thread-state``
200+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
201+
Assume that no thread in a parallel region will modify an ICV.
202+
203+
``-fopenmp-assume-no-nested-parallelism, -fno-openmp-assume-no-nested-parallelism``
204+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
205+
Assume that no thread in a parallel region will encounter a parallel region.
206+

openmp/docs/openmp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Obtain the value of `gpu-arch` by running the following command:
7878
[//]: # (dated link below, needs updating)
7979

8080
See the complete list of compiler command-line references
81-
[here](https://github.com/ROCm/llvm-project/blob/amd-stg-open/clang/docs/CommandGuide/clang.rst).
81+
[here](https://github.com/ROCm/llvm-project/blob/amd-staging/openmp/docs/CommandLineArgumentReference.rst).
8282

8383
### Using `rocprof` with OpenMP
8484

0 commit comments

Comments
 (0)