Using https://github.com/NVIDIA/cuda-samples
You can also view the GPU topology using nvidia-smi topo -m
- Download repo
git clone https://github.com/NVIDIA/cuda-samples.git
- Checkout the tag that corresponds with the right CUDA version:
git checkout tags/v11.1
- You might need to install some additional packages
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev libglfw3-dev libgles2-mesa-dev
- Either build everything by just execting
make
in root dir. Orcd Samples/p2pBandwidthLatencyTest; make