Set Up the Operating System and Kernel
The first step in enabling GPU usage on Cloudera Data Science Workbench is to set up the operating system and kernel.
Perform this step on all hosts with GPU hardware installed on them.
- Install the
sudo yum install -y kernel-devel-`uname -r`If the previous command fails to find a matching version of the
kernel-develpackage, list all the
kernel-develversions that are available from the RHEL/CentOS package repositories, and pick the desired version to install.You can use a bash script as demonstrated here to do this:
if ! yum install kernel-devel-`uname -r`; then yum install -y kernel kernel-devel; retValue=$? if [ $retValue -eq 0]; then echo "Reboot is required since new version of kernel was installed"; fi fi
- If you upgraded to a new kernel version in the previous step, run the following command to
- Install the Development tools package.
sudo yum groupinstall -y "Development tools"