[PyCuda] Odd results from PyCUDA port of options pricing example

2009-04-29 Thread Raefer Gabriel
Hi all, I am trying to port the binomial options example from the CUDA SDK to pyCuda as a learning exercise primarily, and I seem to be getting incorrect results and am having trouble tracking down the problem. I am new to CUDA and pyCuda. Source code is here (no external dependencies other

Re: [PyCuda] pycuda on ubuntu 9.04?

2009-04-29 Thread Andreas Klöckner
On Mittwoch 29 April 2009, Brent Pedersen wrote: hi, i've never tried cuda or pycuda before, but i'm trying now on a clean system with ubuntu 9.04. i downloaded the install script for linux-64 ubuntu 8.04 here: http://www.nvidia.com/object/cuda_get.html will that work for 9.04? must one wait

Re: [PyCuda] Odd results from PyCUDA port of options pricing example

2009-04-29 Thread Andreas Klöckner
I see one potential issue: b_gpu = cuda.mem_alloc(len(h_OptionData)) You probably mean len(h_OptionData)*numpy.dtype(numpy.float32).itemsize, which is a long way of saying len(h_OptionData)*4. Word of advice: Use gpuarrays. Less foot-shooting potential. Andreas On Mittwoch 29 April 2009,

Re: [PyCuda] Fwd: pycuda on ubuntu 9.04?

2009-04-29 Thread Andreas Klöckner
On Mittwoch 29 April 2009, Brent Pedersen wrote: i dont have _internal.so maybe that's the prob, i have this: Ah, sorry. _driver.so is correct. My bad. $ ldd /usr/lib/python2.5/site-packages/pycuda-0.92-py2.5-linux-x86_64.egg/pycuda/ _driver.so linux-vdso.so.1 = (0x7fffdc3fe000)