You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -3,124 +3,25 @@ ROCm Container Toolkit offers tools to streamline the use of AMD GPUs with conta
3
3
-```amd-container-runtime``` - The AMD Container Runtime
4
4
-```amd-ctk``` - The AMD Container Toolkit CLI
5
5
6
-
# Installation
7
-
## Debian Package Install
8
-
### System Requirements
9
-
10
-
Before installing the AMD Container Toolkit, you need to install the following:
11
-
12
-
***Operating System**: Ubuntu 22.04 or Ubuntu 24.04
13
-
14
-
***ROCm Version**: 6.3.x (specific to each .deb pkg)
15
-
16
-
Each Debian package release of the AMD Container Toolkit is dependent on a specific version of the ROCm amdgpu driver. Please see table below for more information:
17
-
18
-
| Container Toolkit Debian Version | ROCm Version | AMDGPU Driver Version |
For the most up-to-date information on installing dkms drivers please see the [ROCm Install Quick Start](https://rocm.docs.amd.com/projects/install-on-linux/en/latest/install/quick-start.html) page. The below instructions are the most current instructions as of ROCm 6.2.4.
44
-
45
-
1. Download the driver from the Radeon repository ([repo.radeon.com](https://repo.radeon.com/amdgpu-install)) for your operating system. For example if you want to get the latest ROCm 6.3.4 drivers for Ubuntu 22.04 you would run the following command:
Please note that the above url will be different depending on what version of the drivers you will be installing and type of Operating System you are using.
2. Edit the sources list to add the Container Toolkit repository:
83
-
84
-
```text
85
-
**For Ubuntu 22.04**, add the following line:
86
-
87
-
> deb \[arch\=amd64 signed-by\=/etc/apt/keyrings/rocm.gpg\] https://repo.radeon.com/amd-container-toolkit/apt/1.2.0 jammy main
88
-
89
-
**For Ubuntu 24.04**, add the following line:
90
-
91
-
> deb \[arch\=amd64 signed-by\=/etc/apt/keyrings/rocm.gpg\] https://repo.radeon.com/amd-container-toolkit/apt/1.2.0 noble main
92
-
```
93
-
94
-
3. Update the package list again:
95
-
96
-
```text
97
-
> sudo apt update
98
-
```
99
-
100
-
#### Step 4: Install the Prerequisites for Container Toolkit
101
-
102
-
1. Install the Container toolkit.
103
-
104
-
```text
105
-
> sudo apt install amd-container-toolkit
106
-
```
107
-
108
-
2. Install docker version 25 or above.
109
-
110
-
## Debian Package Install
111
-
112
-
TBD
6
+
# Requirements
7
+
- Ubuntu 22.02 or 24.04
8
+
- Docker version 25 or later
9
+
10
+
# Quick Start
11
+
Install the Container toolkit.
12
+
13
+
```text
14
+
> sudo apt install amd-container-toolkit
15
+
```
113
16
114
17
# Configuring Docker
115
18
116
-
1. Configure the AMD container runtime for Docker as follows.
19
+
1. Configure the AMD container runtime for Docker as follows. The following command modifies the docker configuration file, /etc/docker/daemon.json, so that Docker can use the AMD container runtime.
117
20
118
21
```text
119
22
> sudo amd-ctk configure runtime
120
23
```
121
24
122
-
The above command modifies the docker configuration file, /etc/docker/daemon.json, so that Docker can use the AMD container runtime.
123
-
124
25
2. Restart the Docker daemon.
125
26
126
27
``` text
@@ -187,9 +88,7 @@ amd.com/gpu=0
187
88
/dev/dri/renderD128
188
89
```
189
90
190
-
4. Make AMD container runtime default runtime.
191
-
192
-
Avoid specifying ```--runtime=amd``` option with the ```docker run``` command by setting the AMD container runtime as the default for Docker.
91
+
4. Make AMD container runtime default runtime. Avoid specifying ```--runtime=amd``` option with the ```docker run``` command by setting the AMD container runtime as the default for Docker.
1. Provide containers access to all or a subset of the GPUs available on the host system, via the environment variable, ```AMD_VISIBLE_DEVICES```. The AMD container runtime is a wrapper on the low level runtime ```runc``` that intercepts and updates the [OCI spec](https://github.com/opencontainers/runtime-spec/blob/main/spec.md) that is generated by the container daemon and passed to ```runc```. Specifically, it injects the GPU devices, requested by the container CLI, into the OCI spec. The diagram below illustrates this for Docker.
2. Generates the CDI spec for AMD GPUs available on the host system. This enables Users to specify the GPU devices needed in the container using the CDI style. Most containers today have native support for CDI.
255
-
256
-
3. Provides CLI to configure Docker to use CDI and ```AMD_VISIBLE_DEVICES``` environment variable.
257
-
258
-
# Troubleshooting
259
-
260
-
TBD
261
-
262
122
# Release notes
123
+
1. Partitioned GPUs are not supported.
263
124
264
-
TBD
265
-
266
-
# Developer Guide
267
125
## Building from Source
268
126
To build debian package, use the following command.
269
127
@@ -277,4 +135,10 @@ To build rpm package, use the following command.
277
135
make pkg-rpm
278
136
```
279
137
280
-
The packages will be generated in the ```bin``` folder.
138
+
The packages will be generated in the ```bin``` folder.
139
+
140
+
# Documentation
141
+
For detailed documentation including installation guides and configuration options, see the documentation.
142
+
143
+
# License
144
+
This project is licensed under the Apache 2.0 License - see the [LICENSE](https://github.com/ROCm/container-toolkit/blob/main/LICENSE) file for details.
0 commit comments