First time here? Check out the FAQ!

Ask Your Question
0

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

asked 12 years ago

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!

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
4

answered 12 years ago

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.

Preview: (hide)
link
1

answered 12 years ago

achrzesz gravatar image

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

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

Andrzej Chrzeszczyk

Preview: (hide)
link

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: 12 years ago

Seen: 1,017 times

Last updated: Jul 06 '12