Ask Your Question
1

Sage and CUDA

asked 2010-09-07 11:04:13 +0100

maldun gravatar image

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?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2010-09-24 18:32:50 +0100

maldun gravatar image

updated 2010-09-24 18:38:19 +0100

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:

  • Install CUDA on your machine: http://developer.nvidia.com/object/cu...
  • set the SAGE_CUDA variable in your shell with:

    export SAGE_CUDA =/where/you/have/installed/cuda

    (i wrote this in .bashrc)

  • install package. (Download it from the links above)
  • IMPORTANT: After installation the setuptools package has to be reinstalled!! Because the installer uses the distributed egg package. This messes somehow with setuptools and will be removed after the installation. But this destroys setup tools!
  • enjoy!

It works for me. Hope it's usefull!

edit flag offensive delete link more
1

answered 2010-09-09 18:48:26 +0100

Mike Witt gravatar image

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

edit flag offensive delete link more

Comments

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!

maldun gravatar imagemaldun ( 2010-09-16 19:35:02 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2010-09-07 11:04:13 +0100

Seen: 1,751 times

Last updated: Sep 24 '10