Jump to content

Is PyCUDA worth learning?

Go to solution Solved by wpirobotbuilder,

So is there a language for CUDA I'll need to learn first? I probably should mention Python is my first and only language that I know.

 Nope, you should be able to use your existing python knowledge, but you will be working with new modules and (I believe) keywords.

I just found out that you can utilize CUDA cores in programs using PyCUDA which I am really interested in using for the obvious reason of computing power. However, from my initial look, it looks as though I will have to learn a fair amount of stuff to use PyCUDA. Does anyone have any experience with it? Is it case of learning a lot more, and if so is it worth it in your opinion?

Thanks in advance!

| Cooler Master HAF 912 Plus | MSI P67A-G45 | i5 2500K @ 4.2GHz |  Coolermaster Hyper 212 Plus | EVGA GTX 670 FTW Edition 2GB | 8GB (2X4GB) Mushkin Blackline @ 1600MHz | 256GB OCZ Vertex 4 SSD | 1TB Western Digital Caviar Green | Corsair 600CX V2 | Windows 7 64-bit |

Link to comment
https://linustechtips.com/topic/50074-is-pycuda-worth-learning/
Share on other sites

Link to post
Share on other sites

It is a series of extensions to the python language that use CUDA cores. You can do the same thing with C programming.

 

If you plan to program systems with CUDA devices, then you should learn it.

 

I made a system which tests the collatz conjecture for all possible 32-bit integers on both the CPU and a GT520. The GT520 completes in about 3 minutes, the CPU completes in several days. Much faster.

I do not feel obliged to believe that the same God who has endowed us with sense, reason and intellect has intended us to forgo their use, and by some other means to give us knowledge which we can attain by them. - Galileo Galilei
Build Logs: Tophat (in progress), DNAF | Useful Links: How To: Choosing Your Storage Devices and Configuration, Case Study: RAID Tolerance to Failure, Reducing Single Points of Failure in Redundant Storage , Why Choose an SSD?, ZFS From A to Z (Eric1024), Advanced RAID: Survival Rates, Flashing LSI RAID Cards (alpenwasser), SAN and Storage Networking

Link to comment
https://linustechtips.com/topic/50074-is-pycuda-worth-learning/#findComment-667497
Share on other sites

Link to post
Share on other sites

It is a series of extensions to the python language that use CUDA cores. You can do the same thing with C programming.

 

If you plan to program systems with CUDA devices, then you should learn it.

 

I made a system which tests the collatz conjecture for all possible 32-bit integers on both the CPU and a GT520. The GT520 completes in about 3 minutes, the CPU completes in several days. Much faster.

So is there a language for CUDA I'll need to learn first? I probably should mention Python is my first and only language that I know.

| Cooler Master HAF 912 Plus | MSI P67A-G45 | i5 2500K @ 4.2GHz |  Coolermaster Hyper 212 Plus | EVGA GTX 670 FTW Edition 2GB | 8GB (2X4GB) Mushkin Blackline @ 1600MHz | 256GB OCZ Vertex 4 SSD | 1TB Western Digital Caviar Green | Corsair 600CX V2 | Windows 7 64-bit |

Link to comment
https://linustechtips.com/topic/50074-is-pycuda-worth-learning/#findComment-667539
Share on other sites

Link to post
Share on other sites

So is there a language for CUDA I'll need to learn first? I probably should mention Python is my first and only language that I know.

 Nope, you should be able to use your existing python knowledge, but you will be working with new modules and (I believe) keywords.

I do not feel obliged to believe that the same God who has endowed us with sense, reason and intellect has intended us to forgo their use, and by some other means to give us knowledge which we can attain by them. - Galileo Galilei
Build Logs: Tophat (in progress), DNAF | Useful Links: How To: Choosing Your Storage Devices and Configuration, Case Study: RAID Tolerance to Failure, Reducing Single Points of Failure in Redundant Storage , Why Choose an SSD?, ZFS From A to Z (Eric1024), Advanced RAID: Survival Rates, Flashing LSI RAID Cards (alpenwasser), SAN and Storage Networking

Link to comment
https://linustechtips.com/topic/50074-is-pycuda-worth-learning/#findComment-667636
Share on other sites

Link to post
Share on other sites

 Nope, you should be able to use your existing python knowledge, but you will be working with new modules and (I believe) keywords.

OK thanks for the help!

| Cooler Master HAF 912 Plus | MSI P67A-G45 | i5 2500K @ 4.2GHz |  Coolermaster Hyper 212 Plus | EVGA GTX 670 FTW Edition 2GB | 8GB (2X4GB) Mushkin Blackline @ 1600MHz | 256GB OCZ Vertex 4 SSD | 1TB Western Digital Caviar Green | Corsair 600CX V2 | Windows 7 64-bit |

Link to comment
https://linustechtips.com/topic/50074-is-pycuda-worth-learning/#findComment-667709
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×