Operations involving complex numbers with CUDA

Hi!

I need to accelerate some C++ code which involves complex numbers. Is there any library which provides basic operations involving complex numbers with CUDA? I need the following operations: +,-,*,/,sqrt.
Thanks!

Hi!

I need to accelerate some C++ code which involves complex numbers. Is there any library which provides basic operations involving complex numbers with CUDA? I need the following operations: +,-,*,/,sqrt.
Thanks!

I once posted a header file cudacomplex here that has a lot of this implemented.

Not sure about the sqrt part…

http://forums.nvidia.com/index.php?showtopic=73978

This was back in the times when CUDA 2.x was the latest release.

I once posted a header file cudacomplex here that has a lot of this implemented.

Not sure about the sqrt part…

http://forums.nvidia.com/index.php?showtopic=73978

This was back in the times when CUDA 2.x was the latest release.

CUDA comes with cuComplex.h which defines single-precision and double-precision complex types, and some basic operations on them (not square root, however). This limited support for complex arithmetic was primarily designed for use in CUDA libraries like CUBLAS, CUFFT, and CUSPARSE and has existed since CUDA 1.0. Obviously it is also available to all CUDA apps.

You could file a “request for enhancement” (through the bug reporting mechanism) to add support for the complex square root.

CUDA comes with cuComplex.h which defines single-precision and double-precision complex types, and some basic operations on them (not square root, however). This limited support for complex arithmetic was primarily designed for use in CUDA libraries like CUBLAS, CUFFT, and CUSPARSE and has existed since CUDA 1.0. Obviously it is also available to all CUDA apps.

You could file a “request for enhancement” (through the bug reporting mechanism) to add support for the complex square root.

Could you please tell me where I could do that? Thanks!

Could you please tell me where I could do that? Thanks!