No cuda-capable devices on TX2 with Jetpack 3.1

Hello, I just flash my Jetson TX2 with Jetpack 3.1 and built the CUDA samples.
But I got the following message when I run the deviceQuery:

./deviceQuery Starting…

CUDA Device Query (Runtime API) version (CUDART static linking)

cudaGetDeviceCount returned 38
-> no CUDA-capable device is detected
Result = FAIL

BTW, the tegrastats give the following message:

RAM 435/7851MB (lfb 6x4MB) cpu [1%@345,off,off,0%@347,0%@345,1%@347] EMC 1%@665 APE 150 GR3D 0%@114

Can anyone help me? Thanks a lot.


Please rebuild the sample again.

cd ~/NVIDIA_CUDA-8.0_Samples/1_Utilities/deviceQuery
make clean

If the error still occurs, please reflash Jetson via JetPack.