Following up on the above post.
I've had pycuda working successfully on ubuntu 12.04 laptop using an
Optimus card using Nvidia and Intel graphics cards.
I then upgraded to 14.04 but have subsequently found Bumblebee to be a bit
broken and am now using nvidia-prime as the nvidia driver.
Trying to keep everything tidy, I thought I'd install python-pycuda using
apt-get and it was very pleasing to see all the cuda toolkit automagically
install. Great work. I'm not too fussy about being on the latest cuda
toolkit since I'm a bit of a hobbyist.
However, I think I've determined that the opengl part of the python-pycuda
package hasn't been enabled properly.
Normally when you install pycuda from the tar package and run configure you
need to pass the ---cuda-enable-gl option. I note in pycuda 2014 that has
changed to --no-cuda-enable-gl
I find on my machine I can
import pycuda.driver as cuda_drv
import pycuda.compiler as Source_module
but I cannot
I've downloaded the ubuntu source deb package with a view to recompiling to
enable gl but I get so many compilation errors I thought it best to
describe the issue on this mailing list. Reading the debian/rules it seems
as though the --cuda-enable-gl is selected for so I'm not really sure where
to proceed. A lot of modifications have been made to the ubuntu source
I should add that code that doesn't rely on pycuda.gl compiles and runs
Thanks for all the packaging work.
Cheers and regards,
Show replies by date