Skip to content

Commit

Permalink
Add NVCC inability to compile .hip files notice and workaround
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 f5cf7bd commit 3566e88
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ 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

0 comments on commit 3566e88

Please sign in to comment.