Skip to content

Commit d2546bf

Browse files
authored
Merge pull request llvm#160 from AMD-Lightning-Internal/amd/dev/harkgill/update-environment-variable-docs
Add documentation on HIPCC_COMPILE_FLAGS_APPEND and HIPCC_LINK_FLAGS_…
2 parents 02bf7c6 + 2232799 commit d2546bf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

amd/hipcc/docs/env.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,17 @@ The environment variable ``HIP_PLATFORM`` can be used to specify ``amd`` or ``nv
1818
Additional environment variable controls:
1919

2020
* ``CUDA_PATH`` : Path to the CUDA SDK. The default is ``/usr/local/cuda``. This is only used for NVIDIA platforms.
21+
* ``HIPCC_COMPILE_FLAGS_APPEND`` : Append extra flags as compilation options to ``hipcc``.
22+
* ``HIPCC_LINK_FLAGS_APPEND`` : Append extra flags as linking options to ``hipcc``.
23+
* ``HIPCC_VERBOSE`` : Outputs detailed information on subcommands executed during compilation.
24+
25+
- ``HIPCC_VERBOSE = 1``: Displays the command to ``clang++`` or ``nvcc`` with all options (`hipcc-cmd`).
26+
- ``HIPCC_VERBOSE = 2``: Displays all relevant environment variables and their values.
27+
- ``HIPCC_VERBOSE = 4``: Displays only the arguments passed to the ``hipcc`` command (`hipcc_args`).
28+
- ``HIPCC_VERBOSE = 5``: Displays both the command to ``clang++`` or ``nvcc`` and ``hipcc`` arguments (`hipcc-cmd` and `hipcc-args`).
29+
- ``HIPCC_VERBOSE = 6``: Displays all relevant environment variables and their values, along with the arguments to the ``hipcc`` command.
30+
- ``HIPCC_VERBOSE = 7``: Displays all of the above: `hipcc-cmd`, `hipcc-args`, and environment variables.
31+
32+
33+
34+

0 commit comments

Comments
 (0)