[PyCUDA] question re complex pow

Lev Givon lev at columbia.edu
Sun Jan 2 17:27:26 PST 2011


Received from Bogdan Opanchuk on Sun, Jan 02, 2011 at 07:54:05PM EST:
> Hi Lev,
> 
> On Mon, Jan 3, 2011 at 9:45 AM, Lev Givon <lev at columbia.edu> wrote:
> > pytools.prefork.ExecError: error invoking 'nvcc --cubin -arch sm_11
> > -I/usr/lib64/python2.6/site-packages/pycuda/../../../../include/pycuda
> > kernel.cu': status 2 invoking 'nvcc --cubin -arch sm_11
> > -I/usr/lib64/python2.6/site-packages/pycuda/../../../../include/pycuda
> > kernel.cu': ./kernel.cu(10): Error: External calls are not supported
> > (found non-inlined call to _ZN6pycuda3powERKNS_7complexIfEEi)
> >
> > Casting the exponent to a float or pycuda::complex<float> prevents the
> > error from occurring, but casting it to int does not. Is this expected?
> 
> According to Cuda Programming Guide, pow() exists only for
> floating-point variables, but not for integers. So, yes, I think it is
> the expected behavior.
> 
> Best regards,
> Bogdan

Doesn't some of the pow-related code in pycuda-complex-impl.hpp 
exist to enable the specification of int arguments?

							L.G.



More information about the PyCUDA mailing list