Learn how to Install and verify CUDA Cores in your system

Welcome back smartpants!

CUDA Cores are parallel processors. A CPU may have 2 or 8 or dozens of cores, but a nVidia GPUs have CUDA cores ranging from hundreds to thousands.
Lets start putting these minions to use!

In this post, we will:

  1. Find out how many CUDA Cores you have.
  2. Run some programs that utilize CUDA Cores.

By the end of this tutorial, you will have the skills to use the CUDA cores in your GPU.


Installation

Install a cross platform tool called Anaconda Navigator. Installation of Anaconda and its usage is not covered in this tutorial.
Follow these steps:

  1. Install Anaconda
  2. Install numba if you don’t already have it using
    conda install numba
  3. Install the CUDA toolkit version 8.0 or higher
    conda install cudatoolkit
  4. Open Spyder or Jupyter Notebook or VS Code. Whatever tickles your fancy.

We are set! Now lets check how many CUDA Cores we have.

How many of CUDA Cores do I have?

In Ubuntu 20.04, I was able to find the number of CUDA cores like this:

myuser@pc-ThinkPad-P50:~$ nvidia-settings -q CUDACores -t
640
640

But this is not enough because my Windows users may need a to check their CUDA cores as well. They can install GPUZ or CPU-Z to check that.

Confirm that we have a CUDA Supporting GPU(s)

Lets check if my Lenovo P50 has even got CUDA support

Yes! it does!

Ok, then which GPI do I have and is it supported by Numba?

My GPU is Quadro M2000M. Its supported.

This is good. We are covered by CUDA Cores. This means that you can now continue and start working on using those cuda cores of yours 😉

Thanks for reading.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.