Repository navigation
Created installation section #440
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
Merged
stanleytsang-amd
merged 12 commits into
ROCm:develop
from
spolifroni-amd:spolifroni-amd/create-install-doc
Jan 21, 2025
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
6c12114
these files aren't used. part of them is in What Is
spolifroni-amd cfc98f6
changed 'integral' to 'integer'
spolifroni-amd 3cfdf40
Added installation files
spolifroni-amd 6ab1a72
Merge branch 'develop' into spolifroni-amd/create-install-doc
spolifroni-amd 3c5eece
Update README.md
spolifroni-amd 7756030
changing the link
spolifroni-amd b89810a
Merge branch 'spolifroni-amd/create-install-doc' of github.com:spolif…
spolifroni-amd 2fe183c
reworded what is and data type support
spolifroni-amd 630ea5e
Update docs/install/hipCUB-prerequisites.rst
spolifroni-amd 6d64bf0
Update docs/install/hipCUB-install-on-Windows.rst
spolifroni-amd ca8b6b1
added link to cmake
spolifroni-amd be6a12b
uppercases.
spolifroni-amd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,32 @@ | ||
| .. meta:: | ||
| :description: Build and install hipCUB with rmake.py | ||
| :keywords: install, building, hipCUB, AMD, ROCm, source code, installation script, Windows | ||
|
|
||
| ******************************************************************** | ||
| Building and installing hipCUB on Windows | ||
| ******************************************************************** | ||
|
|
||
| You can use ``rmake.py`` to build and install hipCUB on Microsoft Windows. You can also use `CMake <./hipCUB-install-with-cmake.html>`_ if you want more build and installation options. | ||
|
|
||
|
|
||
| ``rmake.py`` is located in the ``hipCUB`` root directory. To build and install hipCUB with ``rmake.py``, run: | ||
|
|
||
| .. code:: shell | ||
|
|
||
| python rmake.py -i | ||
|
|
||
| This command also downloads `rocPRIM <https://rocm.docs.amd.com/projects/rocPRIM/en/latest/index.html>`_ and installs it in ``C:\hipSDK``. | ||
|
|
||
| The ``-c`` option builds all clients, including the unit tests: | ||
|
|
||
| .. code:: shell | ||
|
|
||
| python rmake.py -c | ||
|
|
||
| To see a complete list of ``rmake.py`` options, run: | ||
|
|
||
| .. code-block:: shell | ||
|
|
||
| python rmake.py --help | ||
|
|
||
|
|
This file contains hidden or 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: hipCUB installation overview | ||
| :keywords: install, hipCUB, AMD, ROCm, installation, overview, general | ||
|
|
||
| ********************************* | ||
| hipCUB installation overview | ||
| ********************************* | ||
|
|
||
| The hipCUB source code is available from the `hipCUB GitHub Repository <https://github.com/ROCmSoftwarePlatform/hipCUB>`_. | ||
|
|
||
| The develop branch is the default branch. The develop branch is intended for users who want to preview new features or contribute to the hipCUB code base. | ||
|
|
||
| If you don't intend to contribute to the hipCUB code base and won't be previewing features, use a branch that matches the version of ROCm installed on your system. | ||
|
|
||
| hipCUB can be built and installed with |rmake|_ on Windows, or `CMake <./hipCUB-install-with-cmake.html>`_ on both Windows and Linux. | ||
|
|
||
| .. |install| replace:: ``install`` | ||
| .. _install: ./rocThrust-install-script.html | ||
|
|
||
| .. |rmake| replace:: ``rmake.py`` | ||
| .. _rmake: ./hipCUB-install-on-Windows.html | ||
|
|
||
| CMake provides the most flexibility in building and installing hipCUB. | ||
|
spolifroni-amd marked this conversation as resolved.
Resolved
|
||
This file contains hidden or 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,56 @@ | ||
| .. meta:: | ||
| :description: Build and install hipCUB with CMake | ||
| :keywords: install, building, hipCUB, AMD, ROCm, source code, cmake | ||
|
|
||
| .. _install-with-cmake: | ||
|
|
||
| ******************************************************************** | ||
| Building and installing hipCUB with CMake | ||
| ******************************************************************** | ||
|
|
||
| You can build and install hipCUB with CMake on AMD and NVIDIA GPUs on Windows or Linux. | ||
|
|
||
| Before you begin, set ``CXX`` to ``amdclang++`` or ``hipcc`` if you're building hipCUB on an AMD GPU, or to ``nvcc`` if you're building hipCUB on an NVIDIA GPU. Then set ``CMAKE_CXX_COMPILER`` to the compiler's absolute path. For example: | ||
|
|
||
| .. code:: shell | ||
|
|
||
| CXX=amdclang++ | ||
| CMAKE_CXX_COMPILER=/opt/rocm/bin/amdclang++ | ||
|
|
||
| Create the ``build`` directory inside the ``hipCUB`` directory, then change directory to the ``build`` directory: | ||
|
|
||
| .. code:: shell | ||
|
|
||
| mkdir build | ||
| cd build | ||
|
|
||
| Generate the makefile using the ``cmake`` command: | ||
|
|
||
| .. code:: shell | ||
|
|
||
| cmake ../. [-D<OPTION1=VALUE1> [-D<OPTION2=VALUE2>] ...] | ||
|
|
||
| The available build options are: | ||
|
|
||
|
|
||
| * ``BUILD_BENCHMARK``. Set this to ``ON`` to build benchmark tests. Off by default. | ||
| * ``BUILD_TEST``. Set this to ``ON`` to build tests. Off by default. | ||
| * ``DEPENDENCIES_FORCE_DOWNLOAD``. Set this to ``ON`` to download the dependencies regardless of whether or not they are already installed. Off by default. | ||
|
|
||
| Build hipCUB using the generated make file: | ||
|
|
||
| .. code:: shell | ||
|
|
||
| make -j4 | ||
|
|
||
| After you've built hipCUB, you can optionally generate tar, zip, and deb packages: | ||
|
|
||
| .. code:: shell | ||
|
|
||
| make package | ||
|
|
||
| Finally, install hipCUB: | ||
|
|
||
| .. code:: shell | ||
|
|
||
| make install |
This file contains hidden or 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,35 @@ | ||
| .. meta:: | ||
| :description: hipCUB Installation Prerequisites | ||
| :keywords: install, hipCUB, AMD, ROCm, prerequisites, dependencies, requirements | ||
|
|
||
| ******************************************************************** | ||
| hipCUB prerequisites | ||
| ******************************************************************** | ||
|
|
||
| hipCUB has the following prerequisites on all platforms: | ||
|
|
||
| * `CMake <https://cmake.org/>`_ version 3.16 or higher | ||
|
|
||
| On AMD GPUs: | ||
|
|
||
| * `ROCm <https://rocm.docs.amd.com/projects/install-on-linux/en/latest/index.html>`_ | ||
| * `amdclang++ <https://rocm.docs.amd.com/projects/llvm-project/en/latest/index.html>`_ | ||
| * `rocPRIM <https://rocm.docs.amd.com/projects/rocPRIM/en/latest/index.html>`_ | ||
|
|
||
| amdclang++ is installed with ROCm. rocPRIM is automatically downloaded and installed by the CMake script. | ||
|
|
||
| On NVIDIA GPUs: | ||
|
|
||
| * The CUDA Toolkit | ||
| * CCCL library version 2.3.2 or later | ||
| * CUB and Thrust | ||
| * libcu++ version 2.2.0 | ||
|
|
||
| The CCCL library is automatically downloaded and built by the CMake script. If libcu++ isn't found on the system, it will be downloaded from the CCCL repository. | ||
|
|
||
| On Microsoft Windows: | ||
|
|
||
|
|
||
| * Python verion 3.6 or later | ||
| * Visual Studio 2019 with Clang support | ||
| * Strawberry Perl |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.