From d2991594f3ee4e033d70406b4af495641e9485f3 Mon Sep 17 00:00:00 2001 From: Young Hui - AMD <145490163+yhuiYH@users.noreply.github.com> Date: Wed, 22 May 2024 21:58:47 -0400 Subject: [PATCH 1/2] Update env.rst syntax --- amd/hipcc/docs/env.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amd/hipcc/docs/env.rst b/amd/hipcc/docs/env.rst index 6829f62ee18902..5d65397b1a6465 100644 --- a/amd/hipcc/docs/env.rst +++ b/amd/hipcc/docs/env.rst @@ -10,7 +10,7 @@ HIPCC environment variables The environment variable ``HIP_PLATFORM`` can be used to specify ``amd`` or ``nvidia`` depending on the available backend tool flows: -* ``HIP_PLATFORM``='amd' or ``HIP_PLATFORM``='nvidia'. +* ``HIP_PLATFORM`` = ``amd`` or ``HIP_PLATFORM`` = ``nvidia`` .. note:: If ``HIP_PLATFORM`` is not set, then ``hipcc`` will attempt to auto-detect based on if the ``nvcc`` tool is found. From eeaf31ca1a932fc01761db38b03fd41aaa8ca399 Mon Sep 17 00:00:00 2001 From: randyh62 <42045079+randyh62@users.noreply.github.com> Date: Thu, 23 May 2024 13:51:35 -0700 Subject: [PATCH 2/2] Update env.rst corrected HIP_PLATFORM example --- amd/hipcc/docs/env.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/amd/hipcc/docs/env.rst b/amd/hipcc/docs/env.rst index 5d65397b1a6465..1a2940d82531b5 100644 --- a/amd/hipcc/docs/env.rst +++ b/amd/hipcc/docs/env.rst @@ -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.