Compare commits

...

29 Commits

Author SHA1 Message Date
Joseph Greathouse
2a4c16ee51 Minor update to README to differentiate 1.8.3 and 1.8.2 2018-08-30 08:58:56 -05:00
Joseph Greathouse
4dec756b2d Update README for 1.8.3 release 2018-08-30 08:57:22 -05:00
JC Baratault
77cc24a773 Update README.md 2018-08-28 15:13:30 +02:00
Joseph Greathouse
7bfed202a0 Update to the "OpenCL-only install" directions. 2018-08-23 19:42:56 -05:00
Joseph Greathouse
980738d46e Merge pull request #367 from settle/master
Update README.md, delaying use of sudo until necessary
2018-08-18 23:48:42 -05:00
Joseph Greathouse
d7c97882e1 Update README based on some outstanding issues
Two user issues pointed out some confusing text in our current README. In particular: updated the text describing when to disable SDMA engines on Vega 10 (on any system that does not have PCIe atomic support), and show some directions for how to do an OpenCL-focused installation on Ubuntu.
2018-08-18 23:47:31 -05:00
Peng
c4eb6cd4be Merge pull request #489 from RadeonOpenCompute/zhang2amd-key_update-1
Update README.md
2018-08-03 09:19:38 -05:00
zhang2amd
3e4bda88e7 Update README.md
Added a comment to update the key if signature verification failed. Also updated key file hash since the key has extended expiration date.
2018-08-02 15:36:03 -07:00
James Edwards
8512273309 Merge pull request #460 from RadeonOpenCompute/roc-1.8.2
ROCm 1.8.2 Updates.
2018-07-19 11:59:12 -05:00
James Edwards
a1bb81003b ROCm 1.8.2 Updates. 2018-07-19 11:44:43 -05:00
James Edwards
fbcc9809de Update README.md 2018-07-06 14:42:37 -05:00
James Edwards
b834187cae Merge pull request #434 from RadeonOpenCompute/roc-1.8.1
Update README.md
2018-06-14 11:51:06 -05:00
James Edwards
260cb81efd Update README.md 2018-06-14 11:49:58 -05:00
James Edwards
62c11b68f7 Merge pull request #432 from RadeonOpenCompute/roc-1.8.1
Change extraction protocol to http.
2018-06-13 10:45:48 -05:00
James Edwards
c7ea2df946 Change extraction protocol to http. 2018-06-13 10:42:26 -05:00
Gregory Stoner
3b442534f8 Update README.md 2018-06-06 07:53:40 -05:00
Gregory Stoner
84a097d55d Update README.md 2018-06-06 07:53:06 -05:00
Gregory Stoner
7cc5548ea3 Update README.md 2018-06-06 07:48:28 -05:00
James Edwards
cf7c039199 Merge pull request #428 from RadeonOpenCompute/roc-1.8.1
Roc 1.8.1
2018-06-05 09:38:55 -05:00
James Edwards
648af6f3f8 ROCm 1.8.1 updates 2018-06-04 15:00:29 -05:00
James Edwards
4f8d605b12 ROCm 1.8.1 updates 2018-06-04 14:47:22 -05:00
Gregory Stoner
783eec4643 Update README.md 2018-05-17 10:59:51 -05:00
JC Baratault
dfdb135954 Update README.md 2018-05-15 09:58:41 +02:00
JC Baratault
2b19ff91a6 Update README.md 2018-05-15 09:49:32 +02:00
JC Baratault
ac4bd217aa Update README.md 2018-05-15 08:02:12 +02:00
JC Baratault
7c07ce6e89 Update README.md 2018-05-15 08:00:53 +02:00
Gregory Stoner
17dce4c250 Update README.md 2018-05-12 10:15:57 -05:00
Gregory Stoner
5a113b7799 Merge pull request #411 from RadeonOpenCompute/roc-1.8.0
Update README.md
2018-05-12 08:00:19 -07:00
Sean Settle
cf622281f4 Delay use of sudo until necessary 2018-03-18 15:38:01 -07:00
2 changed files with 110 additions and 74 deletions

178
README.md
View File

@@ -4,74 +4,73 @@ The ROCm Platform brings a rich foundation to advanced computing by seamlessly
#### Supported CPUs
Starting with ROCm 1.8, we have relaxed the requirements for PCIe Atomics on Vega 10 (GFX9) GPUs, and we have similarly opened up more options for number of PCIe lanes. With this release, these GFX9 GPUs can support CPUs without PCIe Atomics and, for example, run on PCIe Gen2 x1 lanes. To enable this option, please set the environment variable `HSA_ENABLE_SDMA=0`.
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.
Currently, our GFX8 GPUs (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 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).
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
For Fiji and Polaris GPUs, the ROCm platform leverages PCIe Atomics (Fetch and Add, Compare and Swap,
Unconditional Swap, AtomicsOp Completion).
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.
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, PCIe slots connected via the
Southbridge PCIe I/O controller, or PCIe slots connected through a PCIe switch that does
not support PCIe atomics.
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.
Experimental support for our Hawaii (GFX7) GPUs (Radeon R9 290, R9 390, FirePro W9100, S9150, S9170)
does not require or take advantage of PCIe Atomics. However, we still recommend that you use a CPU
from the list provided above for compatibility purposes.
#### Not supported or very limited support under ROCm
###### Limited Support
###### Limited support
* ROCm 1.8 and Vega10 should support PCIe Gen2 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. However, we have done very limited testing on these configurations, since our test farm has been catering to CPU listed above. This is where we need community support; if you find problems on such setups, please report these issues.
* Thunderbolt 1, 2, and 3 enabled breakout boxes should now be able to work with ROCm. Thunderbolt 1 and 2 are PCIe Gen2 based, and thus are only supported with GPUs that do not require PCIe Gen 3 atomics (i.e. Vega 10). However, we have done no testing on this configuration and would need comunity support due to limited access to this type of equipment
* 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
###### 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.
* We do not support GFX8-class GPUs (Fiji, Polaris, etc.) on CPUs that do not have PCIe Gen 3 with PCIe atomics.
* As such, do not support AMD Carrizo and Kaveri APUs as hosts for such GPUs..
* Thunderbolt 1 and 2 enabled GPUs are not supported by GFX8 GPUs on 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. In particular, 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 and that the system BIOS properly exposes the correct CRAT table - please inquire with the OEM about the latter.
* AMD Merlin/Falcon Embedded System is not currently supported by the public repo.
* AMD Raven Ridge APU are currently not supported
### New features to ROCm 1.8.3
### New Features to ROCm 1.8
* ROCm 1.8.3 is a minor update meant to fix compatibility issues on Ubuntu releases running kernel 4.15.0-33
### New features as of ROCm 1.8.2
#### DKMS driver installation
* Debian packages are provided for DKMS on Ubuntu
* RPM packages are provided for CentOS/RHEL 7.4 support
* RPM packages are provided for CentOS/RHEL 7.4 and 7.5 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
#### New Distrubtuion Suppport
#### New distribution support
* Binary Package support for Ubuntu 16.04
* Binary Package support for CentoOS 7.4
* Binary Package support for RHEL 7.4
* Binary package support for Ubuntu 16.04
* Binary package support for CentOS 7.4 and 7.5
* Binary package support for RHEL 7.4 and 7.5
#### Improved OpenMPI via UCX support
* UCX support for OpenMPI
* ROCm RDMA
### The latest ROCm platform - ROCm 1.8
### The latest ROCm platform - ROCm 1.8.3
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.8.x or rocm-1.8.x tag
@@ -88,7 +87,7 @@ of the following GitHub repositories:
* [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.8.0 release:
are also available on GitHub, and frozen for the rocm-1.8.3 release:
* [llvm](https://github.com/RadeonOpenCompute/llvm/tree/roc-1.8.x)
* [ldd](https://github.com/RadeonOpenCompute/lld/tree/roc-1.8.x)
@@ -97,18 +96,18 @@ are also available on GitHub, and frozen for the rocm-1.8.0 release:
#### Supported Operating Systems - New operating systems available
The ROCm 1.8 platform has been tested on the following operating systems:
The ROCm 1.8.3 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)
* CentOS 7.4 &. 7.5 (Using devetoolset-7 runtime support)
* RHEL 7.4. &. 7.5 (Using devetoolset-7 runtime support)
### Installing from AMD ROCm repositories
AMD is hosting both debian and RPM repositories for the ROCm 1.8 packages at this time.
AMD is hosting both Debian and RPM repositories for the ROCm 1.8.3 packages at this time.
The packages in the Debian repository have been signed to ensure package integrity.
#### Installing from a debian repository
#### Installing from a Debian repository
##### First make sure your system is up to date
@@ -118,14 +117,7 @@ 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.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
```
##### Add the ROCm apt repository
For Debian based systems, like Ubuntu, configure the Debian ROCm repository as
@@ -133,13 +125,14 @@ follows:
```shell
wget -qO - http://repo.radeon.com/rocm/apt/debian/rocm.gpg.key | sudo apt-key add -
sudo sh -c 'echo deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main > /etc/apt/sources.list.d/rocm.list'
echo 'deb [arch=amd64] http://repo.radeon.com/rocm/apt/debian/ xenial main' | sudo tee /etc/apt/sources.list.d/rocm.list
```
The gpg key might change, so it may need to be updated when installing a new
release. The current rocm.gpg.key is not avialable in a standard key ring distribution,
but has the following sha1sum hash:
The gpg key might change, so it may need to be updated when installing a new release.
If the key signature verification is failed while update, please re-add the key from
ROCm apt repository. The current rocm.gpg.key is not avialable in a standard key ring
distribution, but has the following sha1sum hash:
f0d739836a9094004b0a39058d046349aacc1178 rocm.gpg.key
f7f8147431c75e505c58a6f3a3548510869357a6 rocm.gpg.key
##### Install
@@ -153,7 +146,7 @@ sudo apt update
sudo apt install rocm-dkms
```
###### Next set your permsions
###### Next set your permissions
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
@@ -170,20 +163,47 @@ To add yourself to the video group you will need the sudo password and can use t
sudo usermod -a -G video $LOGNAME
```
You may want to ensure that any future users you add to your system are put into the "video" group by default. To do that, you can run the following commands:
```shell
echo 'ADD_EXTRA_GROUPS=1' | sudo tee -a /etc/adduser.conf
echo 'EXTRA_GROUPS=video' | sudo tee -a /etc/adduser.conf
```
Once complete, reboot your system.
Upon Reboot run
Upon Reboot run the following commands to verify that the ROCm installation waas successful. If you see your GPUs listed by both of these commands, you should be ready to go!
```shell
rocminfo
clinfo
/opt/rocm/bin/rocminfo
/opt/rocm/opencl/bin/x86_64/clinfo
```
If you have an [Install Issue ](https://rocm.github.io/install_issues.html) please read this FAQ .
Note that, to make running ROCm programs easier, you may wish to put the ROCm libraries in your LD_LIBRARY_PATH environment variable and the ROCm binaries in your PATH.
```shell
echo 'export LD_LIBRARY_PATH=/opt/rocm/opencl/lib/x86_64:/opt/rocm/hsa/lib:$LD_LIBRARY_PATH' | sudo tee -a /etc/profile.d/rocm.sh
echo 'export PATH=$PATH:/opt/rocm/bin:/opt/rocm/profiler/bin:/opt/rocm/opencl/bin/x86_64' | sudo tee -a /etc/profile.d/rocm.sh
```
###### Upon restart, To test your OpenCL instance
If you have an [Install Issue](https://rocm.github.io/install_issues.html) please read this FAQ .
Build and run Hello World OCL app..
###### Vega10 users who want to run ROCm on a system that does not support PCIe atomics must set HSA_ENABLE_SDMA=0
Currently, if you want to run ROCm on a Vega10 GPU (GFX9) on a system without PCIe atomics, you must turn off SDMA functionality.
```shell
export HSA_ENABLE_SDMA=0
```
###### Performing an OpenCL-only Installation of ROCm
Some users may want to install a subset of the full ROCm installation. In particular, if you are trying to install on a system with a limited amount of storage space, or which will only run a small collection of known applications, you may want to install only the packages that are required to run OpenCL applications. To do that, you can run the following installation command **instead** of the command to install `rocm-dkms`.
```shell
sudo apt-get install dkms rock-dkms rocm-opencl
```
###### Upon restart, to test your OpenCL instance
Build and run Hello World OCL app.
HelloWorld sample:
@@ -233,14 +253,15 @@ 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 hsakmt-roct
sudo apt purge hsakmt-roct-dev
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
### CentOS/RHEL 7 (both 7.4 and 7.5) 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
@@ -260,7 +281,7 @@ 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-server-rhscl-7-rpms
sudo subscription-manager repos --enable rhel-7-server-optional-rpms
sudo subscription-manager repos --enable rhel-7-server-extras-rpms
```
@@ -279,9 +300,9 @@ 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
#### Prepare CentOS/RHEL 7.4 or 7.5 for DKMS Install
Installing kernel drivers on CentOS/RHEL 7.4 requires dkms tool being installed:
Installing kernel drivers on CentOS/RHEL 7.4/7.5 requires dkms tool being installed:
```shell
sudo yum install -y epel-release
@@ -324,10 +345,17 @@ following command:
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, dont update the kernel. Add “--exclude=kernel*” flag to yum install. For example:
Current release supports up to CentOS/RHEL 7.4 and 7.5. Users should update to the latest version of the OS:
```shell
sudo yum update --exclude=kernel*
sudo yum update
```
###### Vega10 users who want to run ROCm on a system that does not support PCIe atomics must set HSA_ENABLE_SDMA=0
Currently, if you want to run ROCm on a Vega10 GPU (GFX9) on a system without PCIe atomics, you must turn off SDMA functionality.
```shell
export HSA_ENABLE_SDMA=0
```
#### Compiling applications using hcc, hip, etc.
@@ -348,9 +376,9 @@ sudo yum autoremove rocm-dkms
#### Known Issues / Workarounds
##### If you Plan to Run with X11 - we are seeing X freezes under load
##### 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.
In ROCm 1.8.3, the 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.
@@ -368,6 +396,14 @@ Once it's done, run sudo update-initramfs -u. Reboot and verify /sys/module/amdk
##### If you are you are using hipCaffe Alexnet training on ImageNet - we are seeing sporadic hangs of hipCaffe during training
###### Vega10 users who want to run ROCm on a system that does not support PCIe atomics must set HSA_ENABLE_SDMA=0
Currently, if you want to run ROCm on a Vega10 GPU (GFX9) on a system without PCIe atomics, you must turn off SDMA functionality.
```shell
export HSA_ENABLE_SDMA=0
```
#### Closed source components
The ROCm platform relies on a few closed source components to provide legacy
@@ -400,7 +436,7 @@ Note: make sure ~/bin exists and it is part of your PATH
```shell
mkdir ROCm && cd ROCm
repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-1.8.0
repo init -u https://github.com/RadeonOpenCompute/ROCm.git -b roc-1.8.3
repo sync
```
These series of commands will pull all of the open source code associated with

View File

@@ -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" />