Installing and Configuring a GPU Driver
Context
For an edge node that uses GPUs, you need to install and configure the GPU driver before managing the edge node on IEF.
Currently, IEF supports NVIDIA Tesla GPUs such as P4, P40 and T4, and the GPU drivers that match CUDA Toolkit 8.0 to 10.0.
Procedure
- Install the GPU driver.
- Download the GPU driver. The recommended driver link is as follows:
https://www.nvidia.com/content/DriverDownload-March2009/confirmation.php?url=/tesla/440.33.01/NVIDIA-Linux-x86_64-440.33.01.run&lang=us&type=Tesla
- Run the following command to install the GPU driver:
- Run the following command to check the GPU driver installation status:
- Download the GPU driver. The recommended driver link is as follows:
- Log in to the edge node as user root.
- Run the following command:
nvidia-modprobe -c0 -u
- Create directories.
mkdir -p /var/IEF/nvidia/drivers /var/IEF/nvidia/bin /var/IEF/nvidia/lib64
- Copy GPU driver files to the directories.
- For CentOS, run the following commands in sequence to copy the driver files:
cp /lib/modules/{Kernel version of the current environment}/kernel/drivers/video/nvi* /var/IEF/nvidia/drivers/
cp /usr/bin/nvidia-* /var/IEF/nvidia/bin/
cp -rd /usr/lib64/libcuda* /var/IEF/nvidia/lib64/
cp -rd /usr/lib64/libEG* /var/IEF/nvidia/lib64/
cp -rd /usr/lib64/libGL* /var/IEF/nvidia/lib64/
cp -rd /usr/lib64/libnv* /var/IEF/nvidia/lib64/
cp -rd /usr/lib64/libOpen* /var/IEF/nvidia/lib64/
cp -rd /usr/lib64/libvdpau_nvidia* /var/IEF/nvidia/lib64/
cp -rd /usr/lib64/vdpau /var/IEF/nvidia/lib64/
- For Ubuntu, run the following commands in sequence to copy the driver files:
cp /lib/modules/{Kernel version of the current environment}/kernel/drivers/video/nvi* /var/IEF/nvidia/drivers/
cp /usr/bin/nvidia-* /var/IEF/nvidia/bin/
cp -rd /usr/lib/x86_64-linux-gnu/libcuda* /var/IEF/nvidia/lib64/
cp -rd /usr/lib/x86_64-linux-gnu/libEG* /var/IEF/nvidia/lib64/
cp -rd /usr/lib/x86_64-linux-gnu/libGL* /var/IEF/nvidia/lib64/
cp -rd /usr/lib/x86_64-linux-gnu/libnv* /var/IEF/nvidia/lib64/
cp -rd /usr/lib/x86_64-linux-gnu/libOpen* /var/IEF/nvidia/lib64/
cp -rd /usr/lib/x86_64-linux-gnu/libvdpau_nvidia* /var/IEF/nvidia/lib64/
cp -rd /usr/lib/x86_64-linux-gnu/vdpau /var/IEF/nvidia/lib64/
You can run the uname -r command to view the kernel version of the current environment. The following is an example. Replace the kernel version with the actual value.
# uname -r 3.10.0-514.e17.x86_64
- For CentOS, run the following commands in sequence to copy the driver files:
- Run the following command to change the directory permissions:
chmod -R 755 /var/IEF
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot