mirror of
https://github.com/ROCm/ROCm.git
synced 2026-01-10 15:18:11 -05:00
Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5efe65ee6 | ||
|
|
36d82f83f1 | ||
|
|
2d09dfa9ca | ||
|
|
ae280c5745 | ||
|
|
af228d3b64 | ||
|
|
620a4af0b3 | ||
|
|
549042b40e | ||
|
|
a6e1b016fa | ||
|
|
ca40c6ff09 | ||
|
|
9959f915b3 | ||
|
|
94ef8cd402 | ||
|
|
f8af328270 | ||
|
|
d8e77a4181 | ||
|
|
8b91b9c980 | ||
|
|
378cf1eb7d | ||
|
|
73bb1da071 | ||
|
|
cd4ea291e2 | ||
|
|
eeae755296 | ||
|
|
9f8d733da1 | ||
|
|
389750df8c |
335
README.md
335
README.md
@@ -3,110 +3,112 @@ The ROCm Platform brings a rich foundation to advanced computing by seamlessly
|
||||
integrating the CPU and GPU with the goal of solving real-world problems.
|
||||
|
||||
#### Supported CPUs
|
||||
The ROCm Platform leverages PCIe Atomics (Fetch ADD, Compare and SWAP,
|
||||
Unconditional SWAP, AtomicsOpCompletion).
|
||||
[PCIe atomics](https://github.com/RadeonOpenCompute/RadeonOpenCompute.github.io/blob/master/ROCmPCIeFeatures.md)
|
||||
are only supported on PCIe Gen3 Enabled CPUs and PCIe Gen3 Switches like
|
||||
Broadcom PLX. When you install your GPUs make sure you install them in a fully
|
||||
PCIe Gen3 x16 or x8 slot attached either directly to the CPU's Root I/O
|
||||
controller or via a PCIe switch directly attached to the CPU's Root I/O
|
||||
controller. In our experience many issues stem from trying to use consumer
|
||||
motherboards which provide Physical x16 Connectors that are electrically
|
||||
connected as e.g. PCIe Gen2 x4. This typically occurs when connecting via the
|
||||
Southbridge PCIe I/O controller. If you motherboard is part of this category,
|
||||
please do not use this connector for your GPUs, if you intend to exploit ROCm.
|
||||
|
||||
|
||||
Our GFX8 GPU's (Fiji & Polaris Family) and GFX9 (Vega) use PCIe Gen 3 and PCIe Atomics.
|
||||
Starting with ROCm 1.8 we have relexed the use PCIe Atomics and also PCIe Lane choice for Vega10/GFX9 class GPU. So now you can support CPU with out PCIe Atomics and also use Gen2 x1 lanes.
|
||||
|
||||
Currently our GFX8 GPU's (Fiji & Polaris Family)still need to use PCIe Gen 3 and PCIe Atomics, but are looking at relaxing this in a future release, once we have fully tested firmware.
|
||||
|
||||
|
||||
Current CPUs which support PCIe Gen3 + PCIe Atomics are:
|
||||
* AMD Ryzen CPUs;
|
||||
* AMD EPYC CPUs;
|
||||
* Intel Xeon E7 V3 or newer CPUs;
|
||||
* Intel Xeon E5 v3 or newer CPUs;
|
||||
* Intel Xeon E3 v3 or newer CPUs;
|
||||
* Intel Core i7 v4, Core i5 v4, Core i3 v4 or newer CPUs (i.e. Haswell family or newer).
|
||||
* AMD Ryzen CPUs;
|
||||
|
||||
Upcoming CPUs which will support PCIe Gen3 + PCIe Atomics are:
|
||||
* AMD Naples Server CPUs;
|
||||
* Cavium Thunder X Server Processor.
|
||||
|
||||
For FIJI and Polaris GPU's the ROCm Platform leverages PCIe Atomics (Fetch ADD, Compare and SWAP,
|
||||
Unconditional SWAP, AtomicsOpCompletion).
|
||||
[PCIe atomics](https://github.com/RadeonOpenCompute/RadeonOpenCompute.github.io/blob/master/ROCmPCIeFeatures.md)
|
||||
PCIe Atomics are only supported on PCIe Gen3 Enabled CPUs and PCIe Gen3 Switches like
|
||||
Broadcom PLX. When you install your GPUs make sure you install them in a fully
|
||||
PCIe Gen3 x16 or x8, x4 or x1 slot attached either directly to the CPU's Root I/O
|
||||
controller or via a PCIe switch directly attached to the CPU's Root I/O
|
||||
controller. In our experience many issues stem from trying to use consumer
|
||||
motherboards which provide Physical x16 Connectors that are electrically
|
||||
connected as e.g. PCIe Gen2 x4 connected via the
|
||||
Southbridge PCIe I/O controller.
|
||||
|
||||
|
||||
Experimental support for our GFX7 GPUs Radeon R9 290, R9 390, AMD FirePro S9150, S9170 note they do not support or
|
||||
take advantage of PCIe Atomics. However, we still recommend that you use a CPU
|
||||
from the list provided above.
|
||||
|
||||
#### Not supported or very limited support under ROCm
|
||||
* We do not support ROCm with PCIe Gen 2 enabled CPUs such as the AMD Opteron,
|
||||
Phenom, Phenom II, Athlon, Athlon X2, Athlon II and Older Intel Xeon and Intel
|
||||
Core Architecture and Pentium CPUs.
|
||||
* We also do not support AMD Carrizo and Kaveri APU as host for compliant dGPU
|
||||
attachments.
|
||||
* Thunderbolt 1 and 2 enabled GPU's are not supported by ROCm. Thunderbolt 1 & 2
|
||||
are PCIe Gen2 based.
|
||||
* AMD Carrizo based APUs have limited support due to OEM & ODM's choices when it
|
||||
comes to some key configuration parameters. On point, we have observed that
|
||||
Carrizo Laptops, AIOs and Desktop systems showed inconsistencies in exposing and
|
||||
enabling the System BIOS parameters required by the ROCm stack. Before
|
||||
purchasing a Carrizo system for ROCm, please verify that the BIOS provides an
|
||||
option for enabling IOMMUv2. If this is the case, the final requirement is
|
||||
associated with correct CRAT table support - please inquire with the OEM about
|
||||
the latter.
|
||||
* AMD Merlin/Falcon Embedded System is also not currently supported by the public Repo.
|
||||
* AMD Raven Ridge APU are currently not supported
|
||||
###### Limited Support
|
||||
|
||||
### New Features to ROCm 1.7
|
||||
|
||||
* With ROCm 1.8 and Vega10 it should support PCIe Gen 2 enabled CPUs such as the AMD Opteron, Phenom, Phenom II, Athlon, Athlon X2, Athlon II and Older Intel Xeon and Intel Core Architecture and Pentium CPUs. But we have done very limited testing. Since our test farm today has been catering to CPU listed above. This is where we need comunity support.
|
||||
* Thunderbolt 1,2 &. 3 enabled breakout boxes GPU's should now be able to work with ROCm. Thunderbolt 1 & 2 are PCIe Gen2 based. But we have done no testing on this config and would need comunity support do limited access to this type of equipment
|
||||
|
||||
###### Not Supported
|
||||
|
||||
|
||||
* We also do not support AMD Carrizo and Kaveri APU as host for compliant dGPU attachments.
|
||||
* Thunderbolt 1 and 2 enabled GPU's are not supported by ROCm. Thunderbolt 1 & 2 are PCIe Gen2 based.
|
||||
* AMD Carrizo based APUs have limited support due to OEM & ODM's choices when it comes to some key configuration parameters. On point, we have observed that Carrizo Laptops, AIOs and Desktop systems showed inconsistencies in exposing and enabling the System BIOS parameters required by the ROCm stack. Before purchasing a Carrizo system for ROCm, please verify that the BIOS provides an option for enabling IOMMUv2. If this is the case, the final requirement is associated with correct CRAT table support - please inquire with the OEM about the latter.
|
||||
* AMD Merlin/Falcon Embedded System is also not currently supported by the public Repo.
|
||||
* AMD Raven Ridge APU are currently not supported
|
||||
|
||||
|
||||
### New Features to ROCm 1.8
|
||||
|
||||
#### DKMS driver installation
|
||||
|
||||
* New driver installation uses Dynamic Kernel Module Support (DKMS)
|
||||
* Only amdkfd and amdgpu kernel modules are installed to support AMD hardware
|
||||
* Currently only Debian packages are provided for DKMS (no Fedora suport available)
|
||||
* See the [ROCT-Thunk-Interface](https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/roc-1.7.x) and [ROCK-Kernel-Driver](https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/tree/roc-1.7.x) for additional documentation on driver setup
|
||||
* Debian packages are provided for DKMS on Ubuntu
|
||||
* RPM packages are provided for CentOS/RHEL 7.4 support
|
||||
* See the [ROCT-Thunk-Interface](https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/roc-1.8.x) and [ROCK-Kernel-Driver](https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/tree/roc-1.8.x) for additional documentation on driver setup
|
||||
|
||||
#### Developer preview of the new OpenCL 1.2 compatible language runtime and compiler
|
||||
#### New Distrubtuion Suppport
|
||||
|
||||
* OpenCL 2.0 compatible kernel language support with OpenCL 1.2 compatible
|
||||
runtime
|
||||
* Supports offline ahead of time compilation today;
|
||||
during the Beta phase we will add in-process/in-memory compilation.
|
||||
* Binary Package support for Ubuntu 16.04
|
||||
* Binary Package support for Fedora 24 is not currently available
|
||||
* Dropping binary package support for Ubuntu 14.04, Fedora 23
|
||||
* Binary Package support for CentoOS 7.4
|
||||
* Binary Package support for RHEL 7.4
|
||||
|
||||
#### IPC support
|
||||
#### Improved OpenMPI via UCX support
|
||||
|
||||
* UCX support for OpenMPI
|
||||
* ROCm RDMA
|
||||
|
||||
### The latest ROCm platform - ROCm 1.8
|
||||
|
||||
### The latest ROCm platform - ROCm 1.7
|
||||
The latest tested version of the drivers, tools, libraries and source code for
|
||||
the ROCm platform have been released and are available under the roc-1.7.x or rocm-1.7.x tag
|
||||
the ROCm platform have been released and are available under the roc-1.8.x or rocm-1.8.x tag
|
||||
of the following GitHub repositories:
|
||||
|
||||
* [ROCK-Kernel-Driver](https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/tree/roc-1.7.x)
|
||||
* [ROCR-Runtime](https://github.com/RadeonOpenCompute/ROCR-Runtime/tree/roc-1.7.x)
|
||||
* [ROCT-Thunk-Interface](https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/roc-1.7.x)
|
||||
* [ROC-smi](https://github.com/RadeonOpenCompute/ROC-smi/tree/roc-1.7.x)
|
||||
* [HCC compiler](https://github.com/RadeonOpenCompute/hcc/tree/roc-1.7.x)
|
||||
* [compiler-runtime](https://github.com/RadeonOpenCompute/compiler-rt/tree/roc-1.7.x)
|
||||
* [HIP](https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP/tree/roc-1.7.x)
|
||||
* [HIP-Examples](https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP-Examples/tree/roc-1.7.x)
|
||||
* [ROCK-Kernel-Driver](https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/tree/roc-1.8.x)
|
||||
* [ROCR-Runtime](https://github.com/RadeonOpenCompute/ROCR-Runtime/tree/roc-1.8.x)
|
||||
* [ROCT-Thunk-Interface](https://github.com/RadeonOpenCompute/ROCT-Thunk-Interface/tree/roc-1.8.x)
|
||||
* [ROC-smi](https://github.com/RadeonOpenCompute/ROC-smi/tree/roc-1.8.x)
|
||||
* [HCC compiler](https://github.com/RadeonOpenCompute/hcc/tree/roc-1.8.x)
|
||||
* [compiler-runtime](https://github.com/RadeonOpenCompute/compiler-rt/tree/roc-1.8.x)
|
||||
* [HIP](https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP/tree/roc-1.8.x)
|
||||
* [HIP-Examples](https://github.com/GPUOpen-ProfessionalCompute-Tools/HIP-Examples/tree/roc-1.8.x)
|
||||
* [atmi](https://github.com/RadeonOpenCompute/atmi/tree/0.3.7)
|
||||
|
||||
Additionally, the following mirror repositories that support the HCC compiler
|
||||
are also available on GitHub, and frozen for the rocm-1.7.2 release:
|
||||
are also available on GitHub, and frozen for the rocm-1.8.0 release:
|
||||
|
||||
* [llvm](https://github.com/RadeonOpenCompute/llvm/tree/roc-1.7.x)
|
||||
* [ldd](https://github.com/RadeonOpenCompute/lld/tree/roc-1.7.x)
|
||||
* [hcc-clang-upgrade](https://github.com/RadeonOpenCompute/hcc-clang-upgrade/tree/roc-1.7.x)
|
||||
* [ROCm-Device-Libs](https://github.com/RadeonOpenCompute/ROCm-Device-Libs/tree/roc-1.7.x)
|
||||
* [llvm](https://github.com/RadeonOpenCompute/llvm/tree/roc-1.8.x)
|
||||
* [ldd](https://github.com/RadeonOpenCompute/lld/tree/roc-1.8.x)
|
||||
* [hcc-clang-upgrade](https://github.com/RadeonOpenCompute/hcc-clang-upgrade/tree/roc-1.8.x)
|
||||
* [ROCm-Device-Libs](https://github.com/RadeonOpenCompute/ROCm-Device-Libs/tree/roc-1.8.x)
|
||||
|
||||
#### Supported Operating Systems
|
||||
#### Supported Operating Systems - New operating systems available
|
||||
|
||||
The ROCm 1.7 platform has been tested on the following operating systems:
|
||||
The ROCm 1.8 platform has been tested on the following operating systems:
|
||||
* Ubuntu 16.04
|
||||
* CentOS 7.4 (Using devetoolset-7 runtime support)
|
||||
* RHEL 7.4 (Using devetoolset-7 runtime support)
|
||||
|
||||
### Installing from AMD ROCm repositories
|
||||
AMD is hosting only debian repositories for the ROCm 1.7 packages at this time. It is expected
|
||||
that an rpm repository will be available in the next point release.
|
||||
|
||||
AMD is hosting both debian and RPM repositories for the ROCm 1.8 packages at this time.
|
||||
|
||||
The packages in the Debian repository have been signed to ensure package integrity.
|
||||
Directions for each repository are given below:
|
||||
|
||||
#### Installing from a debian repository
|
||||
|
||||
##### First make sure your system is up to date
|
||||
|
||||
@@ -116,20 +118,16 @@ sudo apt dist-upgrade
|
||||
sudo apt install libnuma-dev
|
||||
sudo reboot
|
||||
```
|
||||
#### Optional: Upgrade to 4.13 kernel
|
||||
Although not required, it is recommended as of ROCm 1.7.2 that the system's kernel is upgraded to the latest 4.13 version available:
|
||||
##### Optional: Upgrade to 4.13 kernel
|
||||
|
||||
Although not required, it is recommended as of ROCm 1.8.0 that the system's kernel is upgraded to the latest 4.13 version available:
|
||||
|
||||
```shell
|
||||
sudo apt install linux-headers-4.13.0-32-generic linux-image-4.13.0-32-generic linux-image-extra-4.13.0-32-generic linux-signed-image-4.13.0-32-generic
|
||||
sudo reboot
|
||||
```
|
||||
#### Packaging server update
|
||||
The packaging server has been changed from the old http://packages.amd.com
|
||||
to the new repository site http://repo.radeon.com.
|
||||
|
||||
#### Debian repository - apt
|
||||
|
||||
##### Add the ROCm apt repository
|
||||
|
||||
For Debian based systems, like Ubuntu, configure the Debian ROCm repository as
|
||||
follows:
|
||||
|
||||
@@ -143,8 +141,9 @@ but has the following sha1sum hash:
|
||||
|
||||
f0d739836a9094004b0a39058d046349aacc1178 rocm.gpg.key
|
||||
|
||||
##### Install or Update
|
||||
Next, update the apt repository list and install/update the rocm package:
|
||||
##### Install
|
||||
|
||||
Next, update the apt repository list and install the rocm package:
|
||||
|
||||
>**Warning**: Before proceeding, make sure to completely
|
||||
>[uninstall any previous ROCm package](https://github.com/RadeonOpenCompute/ROCm#removing-pre-release-packages):
|
||||
@@ -155,6 +154,7 @@ sudo apt install rocm-dkms
|
||||
```
|
||||
|
||||
###### Next set your permsions
|
||||
|
||||
With move to upstreaming the KFD driver and the support of DKMS, for all Console aka headless user, you will need to add all your users to the 'video" group by setting the Unix permissions
|
||||
|
||||
Configure
|
||||
@@ -172,36 +172,40 @@ sudo usermod -a -G video $LOGNAME
|
||||
|
||||
Once complete, reboot your system.
|
||||
|
||||
We recommend you [verify your installation](https://github.com/RadeonOpenCompute/ROCm#verify-installation) to make sure everything completed successfully.
|
||||
Upon Reboot run
|
||||
```shell
|
||||
rocminfo
|
||||
clinfo
|
||||
```
|
||||
|
||||
#### To install ROCm with Developer Preview of OpenCL
|
||||
If you have an [Install Issue ](https://rocm.github.io/install_issues.html) please read this FAQ .
|
||||
|
||||
##### Start by following the instruction of installing ROCm with Debian repository:
|
||||
|
||||
No additional steps are required. The rocm-opencl package is now installed with rocm-dkms as a dependency. This includes the development package, rocm-opencl-dev.
|
||||
|
||||
|
||||
###### Upon restart, To test your OpenCL instance
|
||||
|
||||
Build and run Hello World OCL app..
|
||||
|
||||
HelloWorld sample:
|
||||
```
|
||||
|
||||
```shell
|
||||
wget https://raw.githubusercontent.com/bgaster/opencl-book-samples/master/src/Chapter_2/HelloWorld/HelloWorld.cpp
|
||||
wget https://raw.githubusercontent.com/bgaster/opencl-book-samples/master/src/Chapter_2/HelloWorld/HelloWorld.cl
|
||||
```
|
||||
|
||||
Build it using the default ROCm OpenCL include and library locations:
|
||||
```
|
||||
|
||||
```shell
|
||||
g++ -I /opt/rocm/opencl/include/ ./HelloWorld.cpp -o HelloWorld -L/opt/rocm/opencl/lib/x86_64 -lOpenCL
|
||||
```
|
||||
|
||||
Run it:
|
||||
```
|
||||
|
||||
```shell
|
||||
./HelloWorld
|
||||
```
|
||||
|
||||
##### Un-install
|
||||
##### How to un-install from Ubuntu 16.04
|
||||
|
||||
To un-install the entire rocm development package execute:
|
||||
|
||||
```shell
|
||||
@@ -209,6 +213,7 @@ sudo apt autoremove rocm-dkms
|
||||
```
|
||||
|
||||
##### Installing development packages for cross compilation
|
||||
|
||||
It is often useful to develop and test on different systems. In this scenario,
|
||||
you may prefer to avoid installing the ROCm Kernel to your development system.
|
||||
|
||||
@@ -222,11 +227,130 @@ sudo apt install rocm-dev
|
||||
>**Note:** To execute ROCm enabled apps you will require a system with the full
|
||||
>ROCm driver stack installed
|
||||
|
||||
##### Known Issues / Workarounds
|
||||
##### Removing pre-release packages
|
||||
|
||||
######## If you Plan to Run with X11 - we are seeing X freezes under load
|
||||
If you installed any of the ROCm pre-release packages from github, they will
|
||||
need to be manually un-installed:
|
||||
|
||||
ROCm 1.7.2 a kernel parameter noretry has been set to 1 to improve overall system performance. However it has been proven to bring instability to graphics driver shipped with Ubuntu. This is an ongoing issue and we are looking into it.
|
||||
```shell
|
||||
sudo apt purge libhsakmt
|
||||
sudo apt purge compute-firmware
|
||||
sudo apt purge $(dpkg -l | grep 'kfd\|rocm' | grep linux | grep -v libc | awk '{print $2}')
|
||||
```
|
||||
|
||||
If possible, we would recommend starting with a fresh OS install.
|
||||
|
||||
### CentOS/RHEL 7 Support
|
||||
|
||||
Support for CentOS/RHEL 7 has been added in ROCm 1.8, but requires a special
|
||||
runtime environment provided by the RHEL Software Collections and additional
|
||||
dkms support packages to properly install in run.
|
||||
|
||||
#### Preparing RHEL 7 for installation
|
||||
|
||||
RHEL is a subscription based operating system, and must enable several external
|
||||
repositories to enable installation of the devtoolset-7 environment and the DKMS
|
||||
support files. These steps are not required for CentOS.
|
||||
|
||||
First, the subscription for RHEL must be enabled and attached to a pool id. Please
|
||||
see Obtaining an RHEL image and license page for instructions on registering your
|
||||
system with the RHEL subscription server and attaching to a pool id.
|
||||
|
||||
|
||||
Second, enable the following repositories:
|
||||
|
||||
```shell
|
||||
sudo subscription-manager repos --enable rhel-7-server-rhscl-rpms
|
||||
sudo subscription-manager repos --enable rhel-7-server-optional-rpms
|
||||
sudo subscription-manager repos --enable rhel-7-server-extras-rpms
|
||||
```
|
||||
|
||||
Third, enable additional repositories by downloading and installing the epel-release-latest-7 repository RPM:
|
||||
|
||||
```shell
|
||||
sudo rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
|
||||
```
|
||||
|
||||
#### Install and setup Devtoolset-7
|
||||
|
||||
To setup the Devtoolset-7 environment, follow the instructions on this page:
|
||||
|
||||
https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/
|
||||
|
||||
Note that devtoolset-7 is a Software Collections package, and is not supported by AMD.
|
||||
|
||||
#### Prepare CentOS/RHEL 7.4 for DKMS Install
|
||||
|
||||
Installing kernel drivers on CentOS/RHEL 7.4 requires dkms tool being installed:
|
||||
|
||||
```shell
|
||||
sudo yum install -y epel-release
|
||||
sudo yum install -y dkms kernel-headers-`uname -r`
|
||||
```
|
||||
|
||||
|
||||
At this point they system can install ROCm using the DKMS drivers.
|
||||
|
||||
Installing ROCm on the system
|
||||
At this point ROCm can be installed on the target system. Create a /etc/yum.repos.d/rocm.repo file with the following contents:
|
||||
|
||||
```shell
|
||||
[ROCm]
|
||||
name=ROCm
|
||||
baseurl=http://repo.radeon.com/rocm/yum/rpm
|
||||
enabled=1
|
||||
gpgcheck=0
|
||||
```
|
||||
|
||||
The repo's URL should point to the location of the repositories repodata database. Install ROCm components using these commands:
|
||||
|
||||
```shell
|
||||
sudo yum install rocm-dkms
|
||||
```
|
||||
|
||||
The rock-dkms component should be installed and the /dev/kfd device should be available on reboot.
|
||||
|
||||
Ensure that your user account is a member of the "video" or "wheel" group prior to using the ROCm driver.
|
||||
You can find which groups you are a member of with the following command:
|
||||
|
||||
```shell
|
||||
groups
|
||||
```
|
||||
|
||||
To add yourself to the video (or wheel) group you will need the sudo password and can use the
|
||||
following command:
|
||||
|
||||
```shell
|
||||
sudo usermod -a -G video $LOGNAME
|
||||
```
|
||||
|
||||
Current release supports up to CentOS/RHEL 7.4. If for any reason the system needs to be updated to 7.5, don’t update the kernel. Add “--exclude=kernel*” flag to yum install. For example:
|
||||
|
||||
```shell
|
||||
sudo yum update --exclude=kernel*
|
||||
```
|
||||
|
||||
#### Compiling applications using hcc, hip, etc.
|
||||
|
||||
To compile applications or samples, please use gcc-7.2 provided by the devtoolset-7 environment.
|
||||
To do this, compile all applications after running this command:
|
||||
|
||||
```shell
|
||||
scl enable devtoolset-7 bash
|
||||
```
|
||||
#### How to un-install ROCm from CentOS/RHEL 7.4
|
||||
|
||||
To un-install the entire rocm development package execute:
|
||||
|
||||
```shell
|
||||
sudo yum autoremove rocm-dkms
|
||||
```
|
||||
|
||||
#### Known Issues / Workarounds
|
||||
|
||||
##### If you Plan to Run with X11 - we are seeing X freezes under load
|
||||
|
||||
ROCm 1.8.0 a kernel parameter noretry has been set to 1 to improve overall system performance. However it has been proven to bring instability to graphics driver shipped with Ubuntu. This is an ongoing issue and we are looking into it.
|
||||
|
||||
Before that, please try apply this change by changing noretry bit to 0.
|
||||
|
||||
@@ -242,24 +366,10 @@ options amdkfd noretry=0
|
||||
|
||||
Once it's done, run sudo update-initramfs -u. Reboot and verify /sys/module/amdkfd/parameters/noretry stays as 0.
|
||||
|
||||
|
||||
##### Removing pre-release packages
|
||||
If you installed any of the ROCm pre-release packages from github, they will
|
||||
need to be manually un-installed:
|
||||
|
||||
```shell
|
||||
sudo apt purge libhsakmt
|
||||
sudo apt purge compute-firmware
|
||||
sudo apt purge $(dpkg -l | grep 'kfd\|rocm' | grep linux | grep -v libc | awk '{print $2}')
|
||||
```
|
||||
|
||||
If possible, we would recommend starting with a fresh OS install.
|
||||
|
||||
#### RPM repository - dnf (yum)
|
||||
|
||||
A repository containing rpm packages is currently not available for the ROCm 1.7 release.
|
||||
##### If you are you are using hipCaffe Alexnet training on ImageNet - we are seeing sporadic hangs of hipCaffe during training
|
||||
|
||||
#### Closed source components
|
||||
|
||||
The ROCm platform relies on a few closed source components to provide legacy
|
||||
functionality like HSAIL finalization and debugging/profiling support. These
|
||||
components are only available through the ROCm repositories, and will either be
|
||||
@@ -269,12 +379,14 @@ made available in the following packages:
|
||||
* hsa-ext-rocr-dev
|
||||
|
||||
### Getting ROCm source code
|
||||
Modifications can be made to the ROCm 1.7 components by modifying the open
|
||||
|
||||
Modifications can be made to the ROCm 1.8 components by modifying the open
|
||||
source code base and rebuilding the components. Source code can be cloned from
|
||||
each of the GitHub repositories using git, or users can use the repo command
|
||||
and the ROCm 1.7 manifest file to download the entire ROCm 1.7 source code.
|
||||
and the ROCm 1.8 manifest file to download the entire ROCm 1.8 source code.
|
||||
|
||||
#### Installing repo
|
||||
|
||||
Google's repo tool allows you to manage multiple git repositories
|
||||
simultaneously. You can install it by executing the following commands:
|
||||
|
||||
@@ -285,13 +397,14 @@ chmod a+x ~/bin/repo
|
||||
Note: make sure ~/bin exists and it is part of your PATH
|
||||
|
||||
#### Cloning the code
|
||||
|
||||
```shell
|
||||
mkdir ROCm && cd ROCm
|
||||
repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-1.7.2
|
||||
repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-1.8.0
|
||||
repo sync
|
||||
```
|
||||
These series of commands will pull all of the open source code associated with
|
||||
the ROCm 1.7 release. Please ensure that ssh-keys are configured for the
|
||||
the ROCm 1.8 release. Please ensure that ssh-keys are configured for the
|
||||
target machine on GitHub for your GitHub ID.
|
||||
|
||||
* OpenCL Runtime and Compiler will be submitted to the Khronos Group, prior to
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
<manifest>
|
||||
|
||||
<remote name="roc-github"
|
||||
fetch="ssh://git@github.com/RadeonOpenCompute/" />
|
||||
fetch="http://git@github.com/RadeonOpenCompute/" />
|
||||
<remote name="pctools-github"
|
||||
fetch="ssh://git@github.com/GPUOpen-ProfessionalCompute-Tools/" />
|
||||
fetch="http://git@github.com/GPUOpen-ProfessionalCompute-Tools/" />
|
||||
|
||||
<default revision="roc-1.7.x"
|
||||
<default revision="roc-1.8.x"
|
||||
remote="roc-github"
|
||||
sync-j="4" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user