PyCUDA+Threading = Invalid Handles on kernel invocations

后端 未结 2 655
悲哀的现实
悲哀的现实 2020-12-18 17:00

I\'ll try and make this clear;

I\'ve got two classes; GPU(Object), for general access to GPU functionality, and multifunc(threading.Thread)

2条回答
  •  隐瞒了意图╮
    2020-12-18 17:36

    Typical; as soon as I write the question I work it out.

    The issue was having the SourceModule operating outside of an active context. To fix it I moved the SourceModule invocation into the run function in the thread, below the cuda context setup.

    Leaving this up for a while because I'm sure someone else has a better explanation!

提交回复
热议问题