CUDA error message : unspecified launch failure

后端 未结 2 969
谎友^
谎友^ 2021-02-05 13:06

This is part of my CUDA code. But last part of this code says some error message.

unsigned int *mat_count;
off_t *mat_position;
unsigned int *matches_count;
off_         


        
相关标签:
2条回答
  • 2021-02-05 13:26

    Compile your application with debug flags nvcc -G -g and try running your application inside cuda-memcheck or cuda-gdb. It might give you a hint where the problem might lie.

    Just run

    cuda-memcheck ./yourApp
    
    0 讨论(0)
  • 2021-02-05 13:29

    An unspecified launch failure is almost always a segfault. You've got an indexing mistake somewhere in your kernel, probably while accessing global memory.

    I'd look through your code, but it's mildly incomprehensible...

    0 讨论(0)
提交回复
热议问题