[PyCUDA] question re complex pow
Bogdan Opanchuk
mantihor at gmail.com
Sun Jan 2 16:54:05 PST 2011
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
More information about the PyCUDA
mailing list