comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: using GpuLib in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: using GpuLib in IDL [message #60699] Mon, 09 June 2008 20:58
russell.grew is currently offline  russell.grew
Messages: 74
Registered: February 2005
Member
Also, my card is only a 6800 GT, not listed on

http://www.nvidia.com/object/cuda_learn_products.html

If I do a

print, gpudetectdevice()

I get -1, but don't get any errors if I try and load hardware mode,
eg:

gpuinit, /hardware

I am still seeing significant speed advantages. The benchmark,
'gpu_bench' has a speedup of ~1600 [and spiral.pro, ~50 as previously
posted].
Re: using GpuLib in IDL [message #60700 is a reply to message #60699] Mon, 09 June 2008 20:55 Go to previous message
russell.grew is currently offline  russell.grew
Messages: 74
Registered: February 2005
Member
Dear all,

Just incase anyone is interested, I got GPULib running on Gentoo linux
using the ebuild from

http://bugs.gentoo.org/show_bug.cgi?id=167685

to install CUDA.

When configuring GPULib, I added the --disable-MATLAB option and --
with-cuda-dir=/opt/cuda

No surprises after that.

The GPULib includes a few benchmarks, one of them, spiral.pro which
displays a spiral on screen, unwraps it and coils it up again ran 50
times faster (256 MB nvidia card, a few years old).

Fun.
Re: using GpuLib in IDL [message #60701 is a reply to message #60700] Mon, 09 June 2008 20:38 Go to previous message
russell.grew is currently offline  russell.grew
Messages: 74
Registered: February 2005
Member
Dear all,

Just incase anyone is interested, I got GPULib running on Gentoo linux
using the ebuild from

http://bugs.gentoo.org/show_bug.cgi?id=167685

to install CUDA.

When configuring GPULib, I added the --disable-MATLAB option and --
with-cuda-dir=/opt/cuda

No surprises after that.

The GPULib includes a few benchmarks, one of them, spiral.pro which
displays a spiral on screen, unwraps it and coils it up again ran 50
times faster (256 MB nvidia card, a few years old).

Fun.
Re: using GpuLib in IDL [message #60755 is a reply to message #60701] Thu, 05 June 2008 10:36 Go to previous message
Mort Canty is currently offline  Mort Canty
Messages: 134
Registered: March 2003
Senior Member
Allard de Wit schrieb:
> Dear all,
>
> After Davids report on the Numerical Analysis Techniques Session, I
> have been trying to get the GpuLib from TechX working on linux (Fedora
> 6). I post my findings here, maybe they are useful to others.
>
> 1. First of all you may want to check if your NVIDIA GPU is supported
> (http://www.nvidia.com/object/cuda_learn_products.html), in the end I
> found out mine wasn't ;-(.
>
> 2. Install the CUDA library from http://www.nvidia.com/object/cuda_get.html,
> I used the CUDA Toolkit version 1.1 for Fedora 7. Add '/usr/local/cuda/
> bin' to your shell path and '/usr/local/cuda/lib' to your ldconfig
> path.
>
> 3. Untar the gpulib package. You will end up with folder
> 'gpulib-0.3p1' with a couple of folders in there related to MatLab,
> IDL, Python and some library routines. There is also a folder 'doc'
> which contains the install-notes. Please ignore these, Peter Messner
> from TechX told me they are a leftover from another project. Instead
> relevant installation details are in the 'IDL/doc' folder
>
> 4. Run the configure script in the gpulib root folder, then run the
> make command. In my case the make failed at the following statement
> because of some dependencies to OpenGL:
> g++ -fPIC -shared -Bsymbolic --warn-once -o gpulib.so gpulib.o ./../
> vectorOp/gpuVectorOp.o ./../vectorOp/gpuMT.o ./../physicsOp/
> gpuPhysicsOp.o -L/usr/local/cuda/lib -lcudart -lcublas -lcufft -lGL -
> lGLU
>
> According to Peter Messner the dependency on OpenGL wasn't necessary,
> therefore I run the following command manually (-lGL and -lGLU
> depencies removed):
> g++ -fPIC -shared -Bsymbolic --warn-once -o gpulib.so gpulib.o ./../
> vectorOp/gpuVectorOp.o ./../vectorOp/gpuMT.o ./../physicsOp/
> gpuPhysicsOp.o -L/usr/local/cuda/lib -lcudart -lcublas -lcufft
>
> This compiled succesfully.
>
> 5. Move to the 'IDL' folder and add it to your IDL_DLM_PATH variable.
> Start IDL and compile 'gpuinit.pro'. Check whether your device is
> recognized with:
> IDL> Print, gpuDectectDevice()
>
> In my case IDL printed -1, showing that no GPU was detected and
> hardware emulation was enabled. Therefore I cannot show you any
> performance tests.
>
> Peter Messner made the following remark on suitable hardware:
> "Regarding hardware: We have had pretty good experience with the
> GeForce 8800 GTX or Ulra models. They are a bit on the expensive side
> ($400-$600) but they are worth the money. You would probably also need
> to upgrade your power supply."
>
> Hope this is useful.
>
> Allard

I was also inspired by David's report to look at GPULib. I'm running IDL
7 on Windows XP with a GeForce 8600GT card (CUDA compatible and cheap).
Peter kindly sent me a build for IDL 7 on XP and, after mistakenly
installing the CUDA Toolkit 2.0 beta (no joy), I got it up and running
in hardware mode pretty quickly. Now I'm keen to start re-coding some of
my routines and see what happens. Unfortunately, I have to go on a long
weekend vacation and can't start playing around again till Monday. Rats :-(

Cheers anyway,

Mort
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: how create XML file by IDL ?
Next Topic: Re: combining color tables

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:05:14 PDT 2025

Total time taken to generate the page: 0.00783 seconds