+ All Categories
Home > Documents > A Tutorial of ROCm and HIP

A Tutorial of ROCm and HIP

Date post: 06-Feb-2022
Category:
Upload: others
View: 7 times
Download: 0 times
Share this document with a friend
12
ROCm Installation ROCm Tutorial Part 2
Transcript

ROCm Installation

ROCm Tutorial – Part 2

Part 2: ROCm Installation

2

3 ROCm Installation| ROCm Tutorial | AMD 20203

4 ROCm Installation| ROCm Tutorial | AMD 2020

Introduction

1. This modules covers some basics regarding the installation of ROCm

2. It serves to provide information about what are the different options to install ROCm

3. We will not be going over how to install ROCm◢ The tutorial system provided to you will already have ROCm installed

4. If you wish to install ROCm on any system you own detailed instructions are available

here (https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-Guide.html)

4

5 ROCm Installation| ROCm Tutorial | AMD 2020

Online Guides

5

1. Information/Commands regarding the installation of ROCm for different OS natively is

available here ( https://rocmdocs.amd.com/en/latest/Installation_Guide/Installation-

Guide.html )

2. Using ROCm with Docker (https://github.com/RadeonOpenCompute/ROCm-docker )

3. Using ROCm with Singularity (https://sylabs.io/guides/3.5/user-guide/gpu.html )

4. Using ROCm with Kubernetes (https://github.com/RadeonOpenCompute/k8s-device-

plugin )

6 ROCm Installation| ROCm Tutorial | AMD 2020

ROCm Hardware Requirements

6

◢ ROCm currently supports the following AMD GPUs:

◢ Radeon GPUs

◢ R9 Nano & R9 Fury X (Fiji)

◢ R9 480 & R9 580 (Polaris 10)

◢ RX Vega 56 & RX Vega 64 (Vega 10)

◢ Radeon VII (Vega 20)

◢ Radeon Instinct GPUs

◢ MI8 (Fiji)

◢ MI6 (Polaris 10)

◢ MI25 (Vega 10)

◢ MI50 & MI60 (Vega 20)

7 ROCm Installation| ROCm Tutorial | AMD 2020

ROCm Software Requirements

7

1. Following Linux based OS’s are supported under ROCm

◢ Ubuntu 16.04.6 (Kernel 4.15)

◢ Ubuntu 18.04.3(Kernel 5.0)

◢ CentOS v7.7 (Using devtoolset-7 runtime support)

◢ RHEL v7.7 (Using devtoolset-7 runtime support)

◢ SLES15 SP1

8 ROCm Installation| ROCm Tutorial | AMD 2020

ROCm Driver Considerations

8

rock-dkms amdgpu

Pros o Supports latest GPU features

o Tested thoroughly on all supported Linux

distros

o Includes latest GPU firmware

o All supported GPUs enabled regardless

of Linux kernel version

o Includes the latest Linux features

o Can work with ROCm unsupported distros

o Can also work with custom built Linux kernels

Cons • Not supported on some Linux distros.

• No support for Linux kernel > 5.4

• May not support latest GPU features

• Testing limited

• IPC and RDMA not enabled

• Limits available GPU memory

• GPU firmware is not the latest

9 ROCm Installation| ROCm Tutorial | AMD 2020

ROCm 3.3x

HCC 3.3

MathLibs 3.3

HIP 3.3

MIOpen 3.3

………...

Multi-Versioning Support

ROCm 3.4x

HCC 3.4

MathLibs 3.4

HIP 3.4

MIOpen 3.4

………...

Kernel Fusion Driver

◢ Multiple versions of ROCm can be installed on the same system

◢ This enables users to use the toolchain and libraries that best suits their needs

10 ROCm Installation| ROCm Tutorial | AMD 2020

Multi-Versioning Support Cont’d

10

1. The multiple versions needs to be installed from versioned packages

2. The multiple versions will be installed in /opt/rocm-# where “#” represents the version

number

3. Multi-version installation is not backward-compatible.

4. A single instance package cannot co-exist with a multi instance package

◢ Therefore, uninstall all rocm components before installing a multi-versioned package

11 ROCm Installation| ROCm Tutorial | AMD 2020

Container Support

11

1. Containers are being widely used in delivering microservices on the cloud

2. They have virtually no performance-overhead over running applications natively

3. ROCm provides container support for the following

• Docker

• Synergy

• Kubernetes

4. Support for more containers will be added in the future

12 ROCm Installation| ROCm Tutorial | AMD 2020

Conclusion

12

We have looked at different possible options

available for installing ROCm

ROCm provides support for all popular OS’s and container frameworks

In the next module, we will be taking a deep

dive on how to program a ROCm enabled GPU

using HIP


Recommended