LaunchError: cuModuleLoadDataEx failed: launch failed -
I've seen this error a few times, but it's not reproducible. Can
anyone give any insight into what might be going wrong?
Traceback (most recent call last):
File "/home/elis/edit/work/dev/mms/common/util/threads.py", line 219, in run
mod = cudahelper.compileSourceModule(kernel.code_str,
kernel.buildOptions_list)
File "/home/elis/edit/work/dev/mms/common/util/cudahelper.py", line
551, in compileSourceModule
return SourceModule(const_src + textwrap.dedent(source),
options=list(default_build_options | set(build_options)),
nvcc=os.path.join(os.getenv('CUDA_HOME', '/usr/local/cuda'), 'bin',
'nvcc'), **kwargs)
File "/home/elis/venv/dev/local/lib/python2.7/site-packages/pycuda-2011.2.2-py2.7-linux-x86_64.egg/pycuda/compiler.py",
line 286, in __init__
self.module = module_from_buffer(cubin)
LaunchError: cuModuleLoadDataEx failed: launch failed -
This happened in some (but not all, I don't think) of the threads that
got launched at roughly the same time.
A quick google search didn't turn up anything relevant. Since I can't
reproduce it, I haven't had much traction on debugging it. Is the
SourceModule threadsafe? We're using it from a number of python
threads ATM, so if it's not threadsafe that could explain it. Any
clues would be much appreciated. :)
Thanks,
Eli