CUDA cudaDeviceSynchronize完成错误代码参考?

时间:2017-01-07 03:59:02

标签: cuda

我收到“ CudaDeviceSynchronize在运行 某些 内核后返回错误代码75”

(听起来像我的代码中缺少的东西)

但是我没有找到任何关于该代码的参考/ Q& A / Topic,而cuda-memcheck ony引用了其他错误,而不是生成错误代码75的错误。

我想知道是否有任何CUDA内置函数来描述这段代码?

或列出错误代码的任何官方/非官方(在线)参考?

谢谢! :)

1 个答案:

答案 0 :(得分:1)

  1. 在cuda doc中找到该功能。 CudaDeviceSynchronize被描述为here
  2. __host__ ​ __device__ ​cudaError_t cudaDeviceSynchronize ( void )

    1. 因此,您的错误代码75的类型为cudaError_t

    2. 在cuda标头中查找cudaError_t枚举定义。它位于include/driver_types.h。并得到错误75

    3. /**
      * While executing a kernel, the device encountered an instruction
      * which can only operate on memory locations in certain address spaces
      * (global, shared, or local), but was supplied a memory address not
      * belonging to an allowed address space.
      * The context cannot be used, so it must be destroyed (and a new one should be created).
      * All existing device memory allocations from this context are invalid
      * and must be reconstructed if the program is to continue using CUDA.
      */
      cudaErrorInvalidAddressSpace          =     75,