Sage and CUDA
Is it possible to use CUDA within Sage. I didn't find any good answers yet.
Can it somehow be linked, or is it even possible to use PyCUDA?
Okay I found some time and build now a package for pycuda. (see Ticket #10010 for details)
on Ticket #10009 I provide also a package for PyOpenCL which can also used with ATI cards as well.
The PyCUDA package can be downloaded from:
(direct link: http://spkg-upload.googlecode.com/files/pycuda-0.94.1.spkg )
set the SAGE_CUDA variable in your shell with:
export SAGE_CUDA =/where/you/have/installed/cuda
(i wrote this in .bashrc)
It works for me. Hope it's usefull!
I should start off by saying that I haven't tried to use PyCUDA (or CUDA) but it does look pretty interesting. I would think that, assuming you have everything installed and you are already able to use PyCUDA from python -- then you would also be able to import the PyCUDA libraries and use them in Sage.
I spent a little while looking at the PyCUDA wiki, thinking that I might give it a try. But getting everything set up looked rather daunting. I'd be interested to hear whether this works or not, and what it takes to use it.
Asked: 2010-09-07 04:04:13 -0500
Seen: 881 times
Last updated: Sep 24 '10