forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request llvm#69 from ROCm/hipcc_docs
Hipcc docs
- Loading branch information
Showing
11 changed files
with
120 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.. meta:: | ||
:description: HIPCC environment variables | ||
:keywords: HIPCC, ROCm, HIP tools, HIP compiler | ||
|
||
.. _hipcc_build: | ||
|
||
****************************************** | ||
Building and testing HIPCC | ||
****************************************** | ||
|
||
To build the ``hipcc`` and ``hipconfig`` executables, use the following commands. | ||
|
||
.. code-block:: bash | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make -j | ||
.. note:: | ||
The tools are created in the current build folder, and will need to be copied to ``/opt/rocm/hip/bin`` folder location. | ||
|
||
Testing HIPCC | ||
============= | ||
|
||
Currently ``hipcc`` and ``hipconfig`` tools are tested by building and running test samples that can be found at `HIP-tests <https://github.com/ROCm/hip-tests/tree/develop/samples>`_. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.. meta:: | ||
:description: HIPCC environment variables | ||
:keywords: HIPCC, ROCm, HIP tools, HIP compiler | ||
|
||
.. _hipcc_vars: | ||
|
||
****************************************** | ||
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'. | ||
.. note:: | ||
If ``HIP_PLATFORM`` is not set, then ``hipcc`` will attempt to auto-detect based on if the ``nvcc`` tool is found. | ||
|
||
Additional environment variable controls: | ||
|
||
* ``CUDA_PATH`` : Path to the CUDA SDK. The default is ``/usr/local/cuda``. This is only used for NVIDIA platforms. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.. meta:: | ||
:description: HIPCC command | ||
:keywords: HIPCC, ROCm, HIP tools, HIP compiler | ||
|
||
.. _hipcc-docs: | ||
|
||
****************************************** | ||
HIPCC documentation | ||
****************************************** | ||
|
||
``hipcc`` is a compiler driver utility that will call clang or nvcc, depending on target, and pass the appropriate include and library options for the target compiler and HIP infrastructure. | ||
|
||
There is both a Perl version, and a C++ executable version of the ``hipcc`` and ``hipconfig`` compiler driver utilities provided. By default the Perl version is used when ``hipcc`` is run. To enable the C++ versions, set the environment variable ``HIP_USE_PERL_SCRIPTS=0``. | ||
|
||
|
||
The documentation is structured as follows: | ||
|
||
.. grid:: 2 | ||
:gutter: 3 | ||
|
||
.. grid-item-card:: Installation | ||
|
||
* :ref:`hipcc_build` | ||
* :ref:`hipcc_vars` | ||
|
||
.. grid-item-card:: How to | ||
|
||
* :ref:`hipcc_use` | ||
|
||
To contribute to the documentation, refer to | ||
`Contributing to ROCm <https://rocm.docs.amd.com/en/latest/contribute/contributing.html>`_. | ||
|
||
You can find licensing information on the | ||
`Licensing <https://rocm.docs.amd.com/en/latest/about/license.html>`_ page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
# Anywhere {branch} is used, the branch name will be substituted. | ||
# These comments will also be removed. | ||
defaults: | ||
numbered: False | ||
maxdepth: 6 | ||
root: index | ||
subtrees: | ||
- numbered: False | ||
entries: | ||
- file: env | ||
- file: usage | ||
- file: build | ||
- file: test | ||
- caption: About | ||
entries: | ||
- file: license | ||
|
||
- caption: Install | ||
entries: | ||
- file: build | ||
- file: env | ||
|
||
- caption: How to | ||
entries: | ||
- file: usage | ||
|
||
- caption: About | ||
entries: | ||
- file: license.md |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.. meta:: | ||
:description: HIPCC environment variables | ||
:keywords: HIPCC, ROCm, HIP tools, HIP compiler | ||
|
||
.. _hipcc_use: | ||
|
||
****************************************** | ||
Using HIPCC | ||
****************************************** | ||
|
||
The built executables can be used the same way as the ``hipcc`` and ``hipconfig`` Perl scripts. | ||
To use the newly built executables from the build folder use ``./`` in front of the executable name. | ||
For example: | ||
|
||
.. code-block:: shell | ||
./hipconfig --help | ||
./hipcc --help | ||
./hipcc --version | ||
./hipconfig --full | ||