我收到"CudaDeviceSynchronize 在运行一些内核后返回错误代码 75"
(听起来我的代码中缺少一些简单的东西)
但是我找不到有关该代码的任何参考/问答/主题,cuda-memcheck ony 指的是其他错误,而不是生成错误代码 75 的错误。
我想知道是否有任何 CUDA 内置函数来描述此代码?
或任何列出错误代码的官方/非官方(在线)参考?
谢谢 ! :)
- 在 cuda 文档中找到该功能。
CudaDeviceSynchronize
在这里描述为:
__host__ __device__ cudaError_t cudaDeviceSynchronize ( void )
-
所以你的错误代码 75 的类型是
cudaError_t
. -
在 cuda 标头中找到
cudaError_t
枚举定义。它在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,