On Wed, 16 Feb 2011 00:24:05 -0800, Nathan Hillier <[email protected]> 
wrote:
> Traceback (most recent call last):
>   File "C:\Users\Nathan\workspace\PyCUDA Demo\src\main.py", line 13, in
> <module>
>     """)
>   File "C:\Python27\lib\site-packages\pycuda\compiler.py", line 238, in
> __init__
>     self.module = module_from_buffer(cubin)
> pycuda._driver.LogicError: cuModuleLoadDataEx failed: invalid image -

Try adding the keep=True kwarg to SourceModule, and taking a look at the
actual image. I'm not sure what cubin images are supposed to look like
in Windows, but in Linux I think they are ELF files nowadays.

Alternatively, you might try PyOpenCL, which will likely not be
suffering from this issue, because the compiler is baked into the API.

HTH,
Andreas

Attachment: pgpauJumTsCoI.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to