Skip to content

Commit

Permalink
Update env.rst
Browse files Browse the repository at this point in the history
corrected HIP_PLATFORM example
  • Loading branch information
randyh62 authored May 23, 2024
1 parent d299159 commit eeaf31c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions amd/hipcc/docs/env.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
HIPCC environment variables
******************************************

The environment variable ``HIP_PLATFORM`` can be used to specify ``amd`` or ``nvidia`` depending on the available backend tool flows:
The environment variable ``HIP_PLATFORM`` can be used to specify ``amd`` or ``nvidia`` depending on the available backend tool flows. For example:

* ``HIP_PLATFORM`` = ``amd`` or ``HIP_PLATFORM`` = ``nvidia``
.. code-block:: shell
export HIP_PLATFORM=amd
.. note::
If ``HIP_PLATFORM`` is not set, then ``hipcc`` will attempt to auto-detect based on if the ``nvcc`` tool is found.
Expand Down

0 comments on commit eeaf31c

Please sign in to comment.