Ask Your Question
0

Any simple way to divert calculations in Sage to the graphics card?

asked 2012-07-04 06:04:18 +0100

anonymous user

Anonymous

Hey,

I'm fairly new to Sage, pls accept my question under this comment:

I've heard that diverting calculations to the graphics card might speed up running time. Person I heard it from uses C and Matlab. How true is it? And if so - is there a simple way to do this in Sage?

I'm looking for any good advice on how to speed up my calculations, I have installed Ubuntu 12.04 for Sage, and stoped any programs from running in the background when I'm running my code. I try to achieve as much power I can get from my computer solely for the purpose of my calculation.

Thanking u on advence!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2012-07-05 14:48:39 +0100

benjaminfjones gravatar image

There are some python modules (pycuda) for doing this, but I haven't seen anyone integrate them with Sage yet. Pycuda is a fairly low-level interface to the graphics card parallel computation API.

On the other hand, you can easily harness multiple cores and threads on a modern CPU in Sage using the @parallel decorator described in the reference manual.

edit flag offensive delete link more
1

answered 2012-07-06 05:15:59 +0100

achrzesz gravatar image

Try ArrayFire Python interface. It is as easy-to-use as Sage:

http://blog.accelereyes.com/blog/2012...

Andrzej Chrzeszczyk

edit flag offensive delete link more

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: 2012-07-04 06:04:18 +0100

Seen: 975 times

Last updated: Jul 06 '12