You are not logged in.

#1 2008-07-24 20:06:39

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

CUDA and PyCUDA

Does anyone here use CUDA for scientific computing? I need pointers to any good tutorials and sample code that anyone knows about. Also, I'm really interested in working with PyCUDA and coding in Python instead of C/C++. I need this code to be cross platform without alot of trouble and I'm leaning to wxPython as a possible GUI (I'm developing an app that must be usable by people that don't even know what Python or CUDA or even C are).:cool:

Offline

#2 2008-08-04 10:34:50

ScriptDevil
Member
From: In Front of My PC
Registered: 2006-04-06
Posts: 253

Re: CUDA and PyCUDA

I do not know about the pyCUDA API. But I have been using CUDA. The best way to start is to use the CUDA programming manual http://developer.download.nvidia.com/co … de_1.1.pdf

The 2.0 manual is in beta... So I guess you can read that as well. For running CUDA based programs, you need a fairly new GPU like geforce 8x or the newer teslas. CUDA programs are sadly not too portable because it depends on the graphics card which limits the number of grids of threads.  Also, you have to be very strong in C. CUDA is just a big extension of C for data parallel SIMD computing. Dust out your old parallel computer architecture books and enjoy!


Be yourself, because you are all that you can be

Offline

#3 2017-05-27 01:56:57

pendekar_langit
Member
Registered: 2016-09-22
Posts: 4

Re: CUDA and PyCUDA

I try to use pycuda on python2 get a problem in _dirver.so.
Detail for error:
ImportError                               Traceback (most recent call last)
<ipython-input-1-b2dd91e7bf60> in <module>()
----> 1 import pycuda.driver as cuda

/usr/lib/python2.7/site-packages/pycuda/driver.py in <module>()
      3 import six
      4 try:
----> 5     from pycuda._driver import *  # noqa
      6 except ImportError as e:
      7     if "_v2" in str(e):

ImportError: /usr/lib/python2.7/site-packages/pycuda/_driver.so: undefined symbol: cuStreamAttachMemAsync

can someone help me.

Thanks

Offline

#4 2017-05-27 20:08:07

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: CUDA and PyCUDA

Please do not necrobump, pendekar_langit.

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB