Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions amd/hipcc/docs/env.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,17 @@ The environment variable ``HIP_PLATFORM`` can be used to specify ``amd`` or ``nv
Additional environment variable controls:

* ``CUDA_PATH`` : Path to the CUDA SDK. The default is ``/usr/local/cuda``. This is only used for NVIDIA platforms.
* ``HIPCC_COMPILE_FLAGS_APPEND`` : Append extra flags as compilation options to ``hipcc``.
* ``HIPCC_LINK_FLAGS_APPEND`` : Append extra flags as linking options to ``hipcc``.
* ``HIPCC_VERBOSE`` : Outputs detailed information on subcommands executed during compilation.

- ``HIPCC_VERBOSE = 1``: Displays the command to ``clang++`` or ``nvcc`` with all options (`hipcc-cmd`).
- ``HIPCC_VERBOSE = 2``: Displays all relevant environment variables and their values.
- ``HIPCC_VERBOSE = 4``: Displays only the arguments passed to the ``hipcc`` command (`hipcc_args`).
- ``HIPCC_VERBOSE = 5``: Displays both the command to ``clang++`` or ``nvcc`` and ``hipcc`` arguments (`hipcc-cmd` and `hipcc-args`).
- ``HIPCC_VERBOSE = 6``: Displays all relevant environment variables and their values, along with the arguments to the ``hipcc`` command.
- ``HIPCC_VERBOSE = 7``: Displays all of the above: `hipcc-cmd`, `hipcc-args`, and environment variables.