Re: [osg-users] [osgPPU] FFT users?

2010-02-25 Thread josselin . petit

Hi Art, Hi Jason,

Ok thanks for your answer, I will try with CUDA so.

Cheers,
Josselin.




This message was sent using IMP, the Internet Messaging Program.

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPPU] FFT users?

2010-02-23 Thread Jason Daly

Art Tevs wrote:

Just grab it and put instead of the kernel used in that example your FFT code 
and it should work. There is just one drawback, when using Cuda within OpenGL, 
the performance. The memory space of Cuda and OpenGL is not shared, hence it 
costs you some time to copy a texture into cuda space and copy it then back. 
However I am not sure if there were new extensions to speed up the copy process.
  


I believe there were some extensions added to support this for OpenCL  
(clCreateFromGLTexture2D, etc).  Chances are if these are supported for 
OpenCL, they're also there for CUDA (you might need CUDA 3.0 for this, 
though).  Also, possibly look at the NV_copy_image extension.


--"J"

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] [osgPPU] FFT users?

2010-02-23 Thread Art Tevs
Hi Josselin,

I've used Cuda's FFT library with osgPPU in some of my projects last year. 
Actually exactly for that purpose I've developed the osgPPU::UnitModule which 
can run any module as a unit on the input data. There is a CUDA example with 
osgPPU, showing how to use it.

Just grab it and put instead of the kernel used in that example your FFT code 
and it should work. There is just one drawback, when using Cuda within OpenGL, 
the performance. The memory space of Cuda and OpenGL is not shared, hence it 
costs you some time to copy a texture into cuda space and copy it then back. 
However I am not sure if there were new extensions to speed up the copy process.

cheers,
art




josselin wrote:
> Hi,
> 
> I just would like to know if someone already used a fft algorithm with  
> osgPPU (for image processing), with pixel shaders or CUDA?
> 
> Or maybe could you tell me if it's difficult to use CUDA in osgPPU?  
> I'm quite experimented with PPU but not with CUDA, and I would like to  
> know how it could be difficult to use the FFT librairy of CUDA  
> (http://developer.download.nvidia.com/compute/cuda/2_0/docs/CUFFT_Library_2.0.pdf).
> 
> Thanks in avance,
> Josselin.
> 
> 
> This message was sent using IMP, the Internet Messaging Program.
> 
> ___
> osg-users mailing list
> 
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
>  --
> Post generated by Mail2Forum


--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=24695#24695





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [osgPPU] FFT users?

2010-02-23 Thread josselin . petit

Hi,

I just would like to know if someone already used a fft algorithm with  
osgPPU (for image processing), with pixel shaders or CUDA?


Or maybe could you tell me if it's difficult to use CUDA in osgPPU?  
I'm quite experimented with PPU but not with CUDA, and I would like to  
know how it could be difficult to use the FFT librairy of CUDA  
(http://developer.download.nvidia.com/compute/cuda/2_0/docs/CUFFT_Library_2.0.pdf).


Thanks in avance,
Josselin.


This message was sent using IMP, the Internet Messaging Program.

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org