I am trying to use nvprof to trace my CUDA application, however, when I use “nvprof ./vectorAdd”, there is an error message:
[Vector addition of 50000 elements]
==14380== NVPROF is profiling process 14380, command: ./vectorAdd
======== Error: incompatible CUDA driver version.
vectorAdd is a sample from NVIDIA_CUDA-8.0_Samples/0_Simple/vectorAdd. If I directly run vectorAdd, the output is:
[Vector addition of 50000 elements]
Copy input data from the host memory to the CUDA device
CUDA kernel launch with 196 blocks of 256 threads
Copy output data from the CUDA device to the host memory
Test PASSED
Done
The version of my CUDA is (nvcc --version):
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Mon_Mar_20_17:07:33_CDT_2017
Cuda compilation tools, release 8.0, V8.0.72
The version of nvprof is (nvprof --version):
nvprof: NVIDIA (R) Cuda command line profiler
Copyright (c) 2012 - 2016 NVIDIA Corporation
Release version 8.0.84 (21)
It seems they are all 8.0. Could any one can help?
Thanks for your comments. I reinstall them from JetPack, but the version of CUDA and nvprof didn’t change. Nvprof still doesn’t work. Same error message. My JetPack is JetPack-L4T-3.1-linux-x64.
BTW, nvprof works well in my TK1 board. On this board, the CUDA version is 6.5.45, but the version of nvprof is 6.5.53(21).
CUDA Device Query (Runtime API) version (CUDART static linking)
Detected 1 CUDA Capable device(s)
Device 0: “GP10B”
CUDA Driver Version / Runtime Version 8.5 / 8.0
CUDA Capability Major/Minor version number: 6.2
Total amount of global memory: 7853 MBytes (8234323968 bytes)
( 2) Multiprocessors, (128) CUDA Cores/MP: 256 CUDA Cores
GPU Max Clock rate: 1301 MHz (1.30 GHz)
Memory Clock rate: 13 Mhz
Memory Bus Width: 64-bit
L2 Cache Size: 524288 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(131072), 2D=(131072, 65536), 3D=(16384, 16384, 16384)
Maximum Layered 1D Texture Size, (num) layers 1D=(32768), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(32768, 32768), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 32768
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 1 copy engine(s)
Run time limit on kernels: No
Integrated GPU sharing Host Memory: Yes
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
Device supports Unified Addressing (UVA): Yes
Device PCI Domain ID / Bus ID / location ID: 0 / 0 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 8.5, CUDA Runtime Version = 8.0, NumDevs = 1, Device0 = GP10B
Result = PASS
It looks like there are something wrong in your environment.
Please re-flash your device and install all the packages from the same JetPack version.
Suppose you should get the same CUDA driver/runtime version like this: Device 0: “NVIDIA Tegra X2”
CUDA Driver Version / Runtime Version 8.0 / 8.0
CUDA Capability Major/Minor version number: 6.2
…
Hi, I have met the same problem ! I set up the environment completely from JetPack3.1,but the result of deviceQuery just the same as yma1, what can I do next to solve this problem?