[PyCUDA] complementary error function erfc
Andreas Klöckner
lists at informa.tiker.net
Mon Mar 15 07:16:49 PDT 2010
On Sonntag 14 März 2010, Faisal Moledina wrote:
> Hello PyCUDA list,
>
> I'm just starting out with PyCUDA and have not used much more than
> gpuarray and cumath. In fact, I have yet to program my own CUDA
> kernel. I'm wondering if there is a built-in erfc method for a
> gpuarray. If PyCUDA doesn't have one built-in, how would I implement a
> CUDA kernel for erfc? Prior to PyCUDA, I was using scipy.special.erfc
> on NumPy arrays.
You could use to pycuda.elementwise to shield you from any actual CUDA
programming--and use [1] as a (high-quality) implementation guideline.
Maybe you could even tweak that header directly (add a few __device__
specs).
[1]
https://svn.boost.org/trac/boost/browser/trunk/boost/math/special_functions/erf.hpp
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20100315/11fd85cc/attachment-0001.pgp>
More information about the PyCUDA
mailing list