devicequery(CUDA)上的分段故障

devicequery(CUDA)上的分段故障,cuda,Cuda,当我从CUDA SDK运行devicequey时,我得到分段错误: [deviceQuery] starting... ./deviceQuery Starting... CUDA Device Query (Runtime API) version (CUDART static linking) Found 1 CUDA Capable device(s) Device 0: "GeForce GTX 560 Ti" CUDA Driver Version / Runtime V

当我从CUDA SDK运行devicequey时,我得到分段错误:

[deviceQuery] starting...

./deviceQuery Starting...

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

Found 1 CUDA Capable device(s)

Device 0: "GeForce GTX 560 Ti"
  CUDA Driver Version / Runtime Version          4.2 / 4.0
  CUDA Capability Major/Minor version number:    2.1
  Total amount of global memory:                 1024 MBytes (1073283072 bytes)
  ( 0) Multiprocessors x ( 48) CUDA Cores/MP:    0 CUDA Cores
  GPU Clock rate:                                1660 MHz (1.66 GHz)
  Memory Clock rate:                             2004 Mhz
  Memory Bus Width:                              256-bit
  L2 Cache Size:                                 524288 bytes
  Max Texture Dimension Size (x,y,z)             1D=(65535), 2D=(2048,2048), 3D=(0,512,0)
  Max Layered Texture Size (dim) x layers        1D=(0) x 1, 2D=(0,0) x 0
  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:  32653
  Maximum number of threads per block:           1024
  Maximum sizes of each dimension of a block:    1024 x 1024 x 64
  Maximum sizes of each dimension of a grid:     65535 x 65535 x 65535
  Maximum memory pitch:                          2147483647 bytes
  Texture alignment:                             512 bytes
  Concurrent copy and execution:                 Yes with 1559316080 copy engine(s)
  Run time limit on kernels:                     Yes
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Concurrent kernel execution:                   Yes
  Alignment requirement for Surfaces:            No
  Device has ECC support enabled:                Yes
  Device is using TCC driver mode:               Yes
  Device supports Unified Addressing (UVA):      Yes
  Device PCI Bus ID / PCI location ID:           1570935040 / 32653
  Compute Mode:
Segmentation fault
其他的例子都很好。即使是devicequeryDrv也能正确编译

我还使用smokeParticle示例获得浮点异常

谢谢你的帮助

CUDA驱动程序版本/运行时版本4.2/4.0


看起来CUDA驱动程序和运行时的版本不同。当两者相同时,你会得到错误吗?尝试重新安装4.2并确保所有工具都指向正确的工具包版本。

请检查您的驱动程序是否是更新的/正确的驱动程序-可以通过在此页面上提供您的GPU信息来找到正确的驱动程序-

我不知道发生了什么,但当我使用最新版本的时,我得到了相同版本的cuda运行时和驱动程序,但当我降级到旧版本,如r12,它会自动降级我的cuda运行时版本,并导致获取错误。我测试了三次(升级、降级)。我不知道这是可能的/

我重新安装了cudatoolikit 4.2,但再次得到相同的结果>,而且CUDA驱动程序版本/运行时版本4.2/4.0我不知道到底是什么问题。我升级到cula R15 adn然后一切正常