CUDA cudaDeviceSynchronize完整的错误代码参考?

阿格·阿德希尔

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

(听起来像我的代码中缺少的一些简单的东西)

但是我找不到任何与该代码有关的参考/问答和主题,而cuda-memcheck ony指的是其他错误,而不是生成错误代码75的错误。

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

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

谢谢 !:)

一点半
  1. 在cuda doc中找到该功能。在这里CudaDeviceSynchronize被描述为:

__host__ ​ __device__ ​cudaError_t cudaDeviceSynchronize ( void )

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

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

/**
* 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,

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章