Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NVCC inability to compile .hip files notice and workaround #3650

Merged
merged 2 commits into from
Nov 22, 2024
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
6 changes: 6 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,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
Loading