Skip to content

Commit

Permalink
Move warning to "hipcc detected my platform incorrectly" section
Browse files Browse the repository at this point in the history
  • Loading branch information
James Xu authored and jamesxu2 committed Nov 22, 2024
1 parent 3566e88 commit b864bbb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ its limitations, if any, compared with the equivalent CUDA API.
The kernel language features are documented in the
:doc:`/reference/cpp_language_extensions` page.

.. warning::
If you specify HIP_PLATFORM=NVIDIA with hipcc, you also need to pass ``-x cu``
to hipcc when compiling files with the ``.hip`` file extension. Otherwise,
nvcc will not recognize the ``.hip`` file extension and will fail with
``nvcc fatal : Don't know what to do with <file>.hip``.


Relation to other GPGPU frameworks
==================================

Expand Down Expand Up @@ -136,6 +129,12 @@ The environment variable ``HIP_PLATFORM`` can be used to specify the platform
for which the code is going to be compiled with ``hipcc``. See the
:doc:`hipcc environment variables<hipcc:env>` for more information.

.. warning::
If you specify HIP_PLATFORM=NVIDIA with hipcc, you also need to pass ``-x cu``
to hipcc when compiling files with the ``.hip`` file extension. Otherwise,
nvcc will not recognize the ``.hip`` file extension and will fail with
``nvcc fatal : Don't know what to do with <file>.hip``.

How to use HIP-Clang to build HIP programs?
------------------------------------------------------

Expand Down

0 comments on commit b864bbb

Please sign in to comment.