Commit 1a0a8bda authored by haswelliris's avatar haswelliris
Browse files

Update prerequisites installation instructions

parent 84d3d6fd
...@@ -24,22 +24,25 @@ GDRCopy requires kernel module installation on the host system. Complete these s ...@@ -24,22 +24,25 @@ GDRCopy requires kernel module installation on the host system. Complete these s
#### Build and installation #### Build and installation
```bash ```bash
git clone https://github.com/NVIDIA/gdrcopy wget https://github.com/NVIDIA/gdrcopy/archive/refs/tags/v2.4.4.tar.gz
cd gdrcopy cd gdrcopy-2.4.4/
make -j$(nproc) make -j$(nproc)
sudo make prefix=/opt/gdrcopy install sudo make prefix=/opt/gdrcopy install
``` ```
#### Kernel module installation #### Kernel module installation
After compiling the software, you need to install the appropriate packages based on your Linux distribution.
For instance, using Ubuntu 22.04 and CUDA 12.3 as an example:
```bash ```bash
cd packages cd packages
CUDA=/path/to/cuda ./build-deb-packages.sh CUDA=/path/to/cuda ./build-deb-packages.sh
sudo dpkg -i gdrdrv-dkms_2.4-4_amd64.deb \ sudo dpkg -i gdrdrv-dkms_2.4.4_amd64.Ubuntu22_04.deb \
libgdrapi_2.4-4_amd64.deb \ libgdrapi_2.4.4_amd64.Ubuntu22_04.deb \
gdrcopy-tests_2.4-4_amd64.deb \ gdrcopy-tests_2.4.4_amd64.Ubuntu22_04+cuda12.3.deb \
gdrcopy_2.4-4_amd64.deb gdrcopy_2.4.4_amd64.Ubuntu22_04.deb
sudo ./insmod.sh # Load kernel modules on bare-metal system sudo ./insmod.sh # Load kernel modules on the bare-metal system
``` ```
#### Container environment notes #### Container environment notes
...@@ -48,9 +51,9 @@ For containerized environments: ...@@ -48,9 +51,9 @@ For containerized environments:
1. Host: keep kernel modules loaded (`gdrdrv`) 1. Host: keep kernel modules loaded (`gdrdrv`)
2. Container: install DEB packages *without* rebuilding modules: 2. Container: install DEB packages *without* rebuilding modules:
```bash ```bash
sudo dpkg -i gdrcopy_2.4-4_amd64.deb \ sudo dpkg -i gdrcopy_2.4.4_amd64.Ubuntu22_04.deb \
libgdrapi_2.4-4_amd64.deb \ libgdrapi_2.4.4_amd64.Ubuntu22_04.deb \
gdrcopy-tests_2.4-4_amd64.deb gdrcopy-tests_2.4.4_amd64.Ubuntu22_04+cuda12.3.deb
``` ```
#### Verification #### Verification
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment