Cannot make samples files cuda 8 & Ubuntu 16.04

Hi, I was trying to install pytorch + cuda + cudnn. After installing cuda, I tried to run samples to see whether it was successfully installed. (Specifically /usr/local/cuda-8.0/samples/1_Utilities/deviceQuery)

But when I executed ‘sudo make’, it reported error that:

collect2: fatal error: ld terminated with signal 11 [Segmentation Fault], core dumped
compilation terminated.
Makefile:253: recipe for target ‘deviceQuery’ failed
make: *** [deviceQuery] Error 1

Can anyone help me understand what’s wrong?