Sage and CUDA
Hi there!
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:
http://code.google.com/p/spkg-upload/downloads/detail?name=pycuda-0.94.1.spkg
(direct link: http://spkg-upload.googlecode.com/files/pycuda-0.94.1.spkg )
Installation Notes:
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.
-Mike
Ah I thought that no one's interested in it, so I'm decided to start attempts to get it up and running! I already bought a new graphics card. I hope in the next weeks I will start to get it built on my sage. I will try to get PyOpenCl also running. If there's interest I can start a ticket on this!
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2010-09-07 11:04:13 +0100
Seen: 1,751 times
Last updated: Sep 24 '10
Is there CUDA support in Sage?
Short Cython Example In A Notebook Cell?
HowTo Compute Past Largest Cython Supported Wordsize (efficiently)?
How to enable %cython magic function in sage terminal mode?
using %cython in Cantor with sage backend
Does Cython support type names from inttypes.h?