-
Unknown Error (often doesn't show up unless you call cutilSafeCall)
- Writing out of bounds: Check that each of your arrays has been initialized to appropriate sizes. ESPECIALLY SHARED MEMORY.
-
Driver crash (Windows 7) or Frozen screen (XP and before)
- Infinite loop in the code: Make sure all code is guaranteed to terminate.
- Trying to read from unallocated memory: Make sure every location you access has been allocated appropriately.
- Too many printfs
- Deadlocks due to locks / atomics
-
Registers don't retain values, read NaN
- Conflicting CUDA drivers: Reinstall GPU drivers and use appropriate CUDA SDK.
Known problem with recent (Oc
- Conflicting CUDA drivers: Reinstall GPU drivers and use appropriate CUDA SDK.
common errors while programming CUDA
于 2017-08-22 18:57:34 首次发布
本文列举了CUDA编程中常见的错误,如未知错误、越界写入、驱动崩溃、无限循环、读取未分配内存等问题,并提供了相应的解决建议,如检查数组大小、避免死锁、正确使用动态共享内存等。
摘要由CSDN通过智能技术生成