-
Notifications
You must be signed in to change notification settings - Fork 88
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 #3495 from ROCm/docsfor62
Update latest documentation for new design
- Loading branch information
Showing
11 changed files
with
246 additions
and
56 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
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,62 @@ | ||
.. meta:: | ||
:description: Build and install MIGraphX using CMake | ||
:keywords: build, install, MIGraphX, AMD, ROCm, CMake | ||
|
||
******************************************************************** | ||
Build and install MIGraphX using CMake | ||
******************************************************************** | ||
|
||
ROCm must be installed before installing MIGraphX. See `ROCm installation for Linux <https://rocm.docs.amd.com/projects/install-on-linux/en/latest/>`_ for information on how to install ROCm on Linux. | ||
|
||
.. note:: | ||
|
||
This method for building MIGraphX requires using ``sudo``. | ||
|
||
|
||
1. Install the dependencies: | ||
|
||
.. code:: shell | ||
sudo rbuild build -d depend -B build -DGPU_TARGETS=$(/opt/rocm/bin/rocminfo | grep -o -m1 'gfx.*') | ||
.. note:: | ||
|
||
If ``rbuild`` is not installed on your system, install it with: | ||
|
||
.. code:: shell | ||
pip3 install --prefix /usr/local https://github.com/RadeonOpenCompute/rbuild/archive/master.tar.gz | ||
2. Create a build directory and change directory to it: | ||
|
||
.. code:: shell | ||
mkdir build | ||
cd build | ||
3. Configure CMake: | ||
|
||
.. code:: shell | ||
CXX=/opt/rocm/llvm/bin/clang++ cmake .. -DGPU_TARGETS=$(/opt/rocm/bin/rocminfo | grep -o -m1 'gfx.*') | ||
4. Build MIGraphX source code: | ||
|
||
.. code:: shell | ||
make -j$(nproc) | ||
You can verify this using: | ||
|
||
.. code:: shell | ||
make -j$(nproc) check | ||
5. Install MIGraphX libraries: | ||
|
||
.. code:: shell | ||
make install | ||
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,52 @@ | ||
.. meta:: | ||
:description: Installing MIGraphX using Docker | ||
:keywords: install, MIGraphX, AMD, ROCm, Docker | ||
|
||
******************************************************************** | ||
Installing MIGraphX using Docker | ||
******************************************************************** | ||
|
||
ROCm must be installed before installing MIGraphX. See `ROCm installation for Linux <https://rocm.docs.amd.com/projects/install-on-linux/en/latest/>`_ for information on how to install ROCm on Linux. | ||
|
||
.. note:: | ||
|
||
Docker commands are run using ``sudo``. | ||
|
||
1. Build the Docker image. This command will install all the prerequisites required to install MIGraphX. Ensure that you are running this in the same directory as ``Dockerfile``. | ||
|
||
.. code:: shell | ||
sudo docker build -t migraphx . | ||
2. Create and run the container. Once this command is run, you will be in the ``/code/AMDMIGraphX`` directory of a pseudo-tty. | ||
|
||
.. code:: shell | ||
sudo docker run --device='/dev/kfd' --device='/dev/dri' -v=`pwd`:/code/AMDMIGraphX -w /code/AMDMIGraphX --group-add video -it migraphx | ||
3. In the ``/code/AMDMIGraphX``, create a ``build`` directory, then change directory to ``/code/AMDMIGraphX/build``: | ||
|
||
.. code:: shell | ||
mkdir build | ||
cd build | ||
4. Configure CMake: | ||
|
||
.. code:: shell | ||
CXX=/opt/rocm/llvm/bin/clang++ cmake .. -DGPU_TARGETS=$(/opt/rocm/bin/rocminfo | grep -o -m1 'gfx.*') | ||
4. Build the MIGraphX libraries: | ||
|
||
.. code:: shell | ||
make -j$(nproc) | ||
5. Install the libraries: | ||
|
||
.. code:: shell | ||
make install |
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,32 @@ | ||
.. meta:: | ||
:description: Build and install MIGraphX using rbuild | ||
:keywords: build, install, MIGraphX, AMD, ROCm, rbuild | ||
|
||
******************************************************************** | ||
Build and install MIGraphX using rbuild | ||
******************************************************************** | ||
|
||
ROCm must be installed before installing MIGraphX. See `ROCm installation for Linux <https://rocm.docs.amd.com/projects/install-on-linux/en/latest/>`_ for information on how to install ROCm on Linux. | ||
|
||
.. note:: | ||
|
||
This method for building MIGraphX requires using ``sudo``. | ||
|
||
1. Install `rocm-cmake`, `pip3`, `rocblas`, and `miopen-hip`: | ||
|
||
.. code:: shell | ||
sudo apt install -y rocm-cmake python3-pip rocblas miopen-hip | ||
2. Install `rbuild <https://github.com/RadeonOpenCompute/rbuild>`_: | ||
|
||
.. code:: shell | ||
pip3 install --prefix /usr/local https://github.com/RadeonOpenCompute/rbuild/archive/master.tar.gz | ||
3. Build MIGraphX source code: | ||
|
||
.. code:: shell | ||
sudo rbuild build -d depend -B build -DGPU_TARGETS=$(/opt/rocm/bin/rocminfo | grep -o -m1 'gfx.*') |
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,32 @@ | ||
.. meta:: | ||
:description: Build and install MIGraphX | ||
:keywords: build, install, MIGraphX, AMD, ROCm, rbuild, development, contributing | ||
|
||
******************************************************************** | ||
Building MIGraphX | ||
******************************************************************** | ||
|
||
ROCm must be installed prior to building MIGraphX. See `ROCm installation for Linux <https://rocm.docs.amd.com/projects/install-on-linux/en/latest/>`_ for information on ROCm installation on Linux. | ||
|
||
.. note:: | ||
|
||
This method for building MIGraphX requires using ``sudo``. | ||
|
||
1. Install `rocm-cmake`, `pip3`, `rocblas`, and `miopen-hip`: | ||
|
||
.. code:: shell | ||
sudo apt install -y rocm-cmake python3-pip rocblas miopen-hip | ||
2. Install `rbuild <https://github.com/RadeonOpenCompute/rbuild>`_: | ||
|
||
.. code:: shell | ||
pip3 install --prefix /usr/local https://github.com/RadeonOpenCompute/rbuild/archive/master.tar.gz | ||
3. Build MIGraphX source code: | ||
|
||
.. code:: shell | ||
sudo rbuild build -d depend -B build -DGPU_TARGETS=$(/opt/rocm/bin/rocminfo | grep -o -m1 'gfx.*') |
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: Installing MIGraphX using the package installer | ||
:keywords: install, MIGraphX, AMD, ROCm, package installer | ||
|
||
******************************************************************** | ||
Installing MIGraphX | ||
******************************************************************** | ||
|
||
ROCm must be installed before installing MIGraphX. See `ROCm installation for Linux <https://rocm.docs.amd.com/projects/install-on-linux/en/latest/>`_ for information on how to install ROCm on Linux. | ||
|
||
Installing MIGraphX using the package installer is sufficient for users who want to use the MIGraphX API. | ||
|
||
If you want to develop for MIGraphX and contribute to the source code, see `Building MIGraphX <https://rocm.docs.amd.com/projects/AMDMIGraphX/en/latest/install/docs/install/building_migraphx.html>`_ and `Developing for MIGraphX <https://rocm.docs.amd.com/projects/AMDMIGraphX/en/latest/dev/contributing-to-migraphx.html>`_ | ||
|
||
The package installer will install all the prerequisites needed for MIGraphX. | ||
|
||
Use the following command to install MIGraphX: | ||
|
||
.. code:: shell | ||
sudo apt update && sudo apt install -y migraphx |
Oops, something went wrong.