GPU VM Account Details
Testing the GPU VM software

This page will show you how to test your virtual machine’s GPU and access and test the software that is pre-installed on it.

GPU VM Account Details

Testing the GPU VM software

Probing your GPU

This command allows you test if the GPU is being detected, identifies the GPU and shows any running jobs, utilisation, and memory usage in real time:

nvidia-smi -l

Testing CUDA

There are CUDA samples that you can download, compile and run for your version of CUDA. These samples have been compiled for you in your account. One of the samples probes your GPU and gives you detailed spec’s about it. You can try to run this sample code in your account (long output):

cuda-samples/Samples/1_Utilities/deviceQuery/deviceQuery

Check CuDNN Installation

If the file exists then you will have CuDNN installed:

cat /usr/local/cuda/include/cudnn_version.h | grep CUDNN_MAJOR -A 2

You can also run sample code:

cd /usr/src/cudnn_samples_v8/mnistCUDNN
./mnistCUDNN

Check Tensorflow

Version:

python3 -c 'import tensorflow as tf; print(tf.__version__)'

AI Benchmark

Test using Ai benchmark (may take 20 minutes):

python3 -c 'from ai_benchmark import AIBenchmark;benchmark = AIBenchmark();results = benchmark.run()'

Then lookup the results. The chart will tell you how well your GPU is performing. If its not performing well then you may not be using GPU!

http://ai-benchmark.com/ranking_deeplearning.html

Please note that is you want to install a different version of tensorflow it can be tricky because it has specific CUDA and CuDNN dependencies. Re-installing them can be problematic!

Check Pytorch

Version:

python3 -c "import torch; print(torch.__version__)"

Test code:

python3 -c 'import torch;x=torch.rand(5,3);print(x)'