libgomp/libgomp.texi: Mention -fno-builtin-omp_is_initial_device
libgomp/ChangeLog: * libgomp.texi (omp_is_initial_device): Mention -fno-builtin-omp_is_initial_device and folding by default.
This commit is contained in:
parent
4d44f3fc38
commit
8b5a8b1f60
1 changed files with 4 additions and 0 deletions
|
@ -1754,6 +1754,10 @@ This function returns @code{true} if currently running on the host device,
|
|||
@code{false} otherwise. Here, @code{true} and @code{false} represent
|
||||
their language-specific counterparts.
|
||||
|
||||
Note that in GCC this value is already folded to a constant in the compiler;
|
||||
compile with @option{-fno-builtin-omp_is_initial_device} if a run-time function
|
||||
is desired.
|
||||
|
||||
@item @emph{C/C++}:
|
||||
@multitable @columnfractions .20 .80
|
||||
@item @emph{Prototype}: @tab @code{int omp_is_initial_device(void);}
|
||||
|
|
Loading…
Add table
Reference in a new issue