-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update install and howto section (#504)
* updated the installation instructions, pulling from readme and refining with testing * my files weren't pushed; trying again * added an explanation around make * missing a word * changed a word for smoother reading * Update rocThrust-install-overview.rst * fixed typo * an initial commit of some readme topics being pulled into the doc * updated the toc/index and modified the datatype support page a bit * changed some titles
- Loading branch information
1 parent
cd36fce
commit a621f6d
Showing
13 changed files
with
308 additions
and
169 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 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 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,40 @@ | ||
.. meta:: | ||
:description: Using multiple GPUs for testing | ||
:keywords: rocThrust, ROCm, testing, ctest, multiple GPUs, resource-spec | ||
|
||
*************************************************** | ||
How to run tests on multiple GPUs | ||
*************************************************** | ||
|
||
To run tests on multiple GPUs, you can configure your tests using the ``AMDGPU_TEST_TARGETS`` option or you can use CTest resource allocation. | ||
|
||
The ``AMDGPU_TEST_TARGETS`` CTest option lets you specify the families of GPUs on which you want to run your tests. For example, if you have two GPUs from the gfx900 family in your system, you can specify ``-DAMDGPU_TEST_TARGETS=gfx900`` when you configure your test to specify that you only want that family of GPUs to be tested. If you don't set ``AMDGPU_TEST_TARGETS``, the tests will be run on the default device in your system. | ||
|
||
You can use CTest resource allocation to run tests in a distributed manner across multiple GPUs and test multiple product families from one invocation. | ||
|
||
CTest resource allocation requires a resource specification file. You can generate a resource specification file using the ``GenerateResourceSpec.cmake`` utility script. | ||
|
||
After you have cloned the ``rocThrust`` repository and built rocThrust with the ``-DBUILD_TESTS=ON`` option, change directory to the ``build`` directory and run: | ||
|
||
.. code:: shell | ||
../cmake/GenerateResourceSpec.cmake | ||
This will generate a ``resources.json`` file in the ``build`` directory. Use the ``resources.json`` file in your call to ``ctest``. | ||
|
||
For example, if you have two compatible GPUs in your system, run: | ||
|
||
.. code:: shell | ||
ctest --resource-spec-file ./resources.json --parallel 2 | ||
.. note:: | ||
|
||
CTest resource allocation requires CMake 3.16 or later. | ||
|
||
|
||
|
||
|
||
|
||
|
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,23 @@ | ||
.. meta:: | ||
:description: Using rocThrust in a CMake project | ||
:keywords: rocThrust, ROCm, cmake, find_package | ||
|
||
******************************************* | ||
How to use rocThrust in a CMake project | ||
******************************************* | ||
|
||
To use rocThrust in your own project, add the following lines to your CMakeLists file: | ||
|
||
.. code:: | ||
# On ROCm rocThrust requires rocPRIM | ||
find_package(rocprim REQUIRED CONFIG PATHS "/opt/rocm/rocprim") | ||
# "/opt/rocm" - default install prefix | ||
find_package(rocthrust REQUIRED CONFIG PATHS "/opt/rocm/rocthrust") | ||
[...] | ||
# include rocThrust headers and roc::rocprim_hip target | ||
target_link_libraries(<your_target> roc::rocthrust) | ||
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,23 @@ | ||
.. meta:: | ||
:description: rocThrust installation overview | ||
:keywords: install, rocThrust, AMD, ROCm, installation, overview, general | ||
|
||
********************************* | ||
rocThrust installation overview | ||
********************************* | ||
|
||
The rocThrust source code is available from the `rocThrust GitHub Repository <https://github.com/ROCmSoftwarePlatform/rocThrust>`_. | ||
|
||
The develop branch is the default branch. The develop branch is intended for users who want to preview new features or contribute to the rocThrust code base. | ||
|
||
If you don't intend to contribute to the rocThrust code base and won't be previewing features, use a branch that matches the version of ROCm installed on your system. | ||
|
||
rocThrust can be built and installed with |install|_ on Linux, |rmake|_ on Windows, or `CMake <./rocThrust-install-with-cmake.html>`_ on Windows and Linux. | ||
|
||
.. |install| replace:: ``install`` | ||
.. _install: ./rocThrust-install-script.html | ||
|
||
.. |rmake| replace:: ``rmake.py`` | ||
.. _rmake: ./rocThrust-rmake-install.html | ||
|
||
CMake provides the most flexibility in building and installing rocThrust. |
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,30 @@ | ||
.. meta:: | ||
:description: Build and install rocThrust with the installation script | ||
:keywords: install, building, rocThrust, AMD, ROCm, source code, installation script, Linux | ||
|
||
******************************************************************** | ||
Building and installing rocThrust on Linux with the install script | ||
******************************************************************** | ||
|
||
You can use the ``install`` script to build and install rocThrust on Linux. You can also use `CMake <./rocThrust-install-with-cmake.html>`_ if you want more build and installation options. | ||
|
||
The ``install`` script is located in the ``rocThrust`` root directory. To build and install rocThrust with the ``install`` script, run: | ||
|
||
.. code-block:: shell | ||
./install --install | ||
This command will also download and install rocPRIM. | ||
|
||
To build rocThrust and generate tar, zip, and debian packages, run: | ||
|
||
.. code-block:: shell | ||
./install --package | ||
To see a complete list of options, run: | ||
|
||
.. code-block:: shell | ||
./install --help | ||
Oops, something went wrong.