Hello everyone, this is the first blog post on Takksol. This post will describe the process of setting up a laptop with RAPIDS AI setup for gpu (NVIDIA only :P) based machine learning on the go. So, the laptop here is a ASUS S410U with the following specs:
- Intel® Core™ i7 8550U Processor,
- 24 GB DD4 (8GB Onboard + 16 GB stick)
- 512Gb M.2 SSD
- 1TB ADATA SSD
- Nvidia GeForce MX150 (2GB GDDR5 VRAM)
The key piece here is the dedicated GPU, even though its a low end gpu but it works to do some gpu modelling work on the go and finalize on the workstation later. In the past (way back during early grad school), I have worked on OpenCL and NVIDIA cuda libraries such as cuFFT. And my conclusion back then was that its cool with big datasets but a lot of overhead for small data sets in moving data around and an even bigger overhead (headache) of coding for it. Of course, back then it was native coding so it was harder. Granted things have improved since then, I tried the Tensorflow instance with gpu which worked but RAPIDS seemed like a neat idea. Now, RAPIDS is a new suite of libraries to do data related tasks natively on GPU and reduce data movement overhead. It should work very well with NVIDIA gpus with large amounts of RAM. SO, to dip my toes in, Im starting with trying it out on my laptop running Lubuntu 19.10. This blogpost might get long, so will break it up into parts. Enough chit chat, lets goto work.
First things first, let’s look at the prerequisites (from here):
- Now, we have a compatible gpu (presumably this page should list it but it doesn’t).
- OS? Lubuntu should have most Ubuntu basics but we have 19.10 and it lists 18.04 as the latest, let’s hope this will work.
- Docker? Decided to just install natively instead of container approach (all in or nothing :P)
- CUDA/NVIDIA drivers? Lubuntu 19.10 was a big step towards this, using nvidia driver 440 metapackage. But need to install CUDA.
CUDA installation: I decided to follow NVIDIA website directions instead of installing cuda toolkit from ubuntu repository.
Had to add the PATH to cuda binaries to the last line of my ~/.bashrc file so I don’t have to update the PATH variable everytime and voila my nvcc –version shows :
Now the next part is getting Docker installed. I followed the official directions for that from here. Only issue here was the fact that they don’t have a docker stable version for 19.10, so I followed directions for 19.04. Next step is to get the RAPIDS docker container itself from here. My selections were as shown below:
Now we are all ready,In the next part we will discuss moving forward from here. Happy rapiding …