POV-Ray : Newsgroups : povray.programming : CUDA - NVIDIA's massively parallel programming architecture Server Time
22 Dec 2024 01:16:14 EST (-0500)
  CUDA - NVIDIA's massively parallel programming architecture (Message 1 to 10 of 25)  
Goto Latest 10 Messages Next 10 Messages >>>
From: PaulSh
Subject: CUDA - NVIDIA's massively parallel programming architecture
Date: 14 Nov 2006 12:00:00
Message: <web.4559f599f37e28ef8f8c13730@news.povray.org>
POV-Ray is finally making its transition to SMP systems, which is great news
for those of us who can afford them. However, in terms of raw CPU power the
latest NVIDIA graphics cards would seem to completely blow away anything in
the way of SMP solutions this side of a research lab. Their CUDA GPU
architecture is claimed to allow up to 128 independent processing units
each running at 1.35GHz to be thrown at computationally-intensive problems.
So, my first thought was not SETI or protein folding, but POV-Ray. Given
that V3.7 is going to be fully threaded, what would be the possibility of a
CUDA version? I guess that will depend on the time and abilities of someone
with a lot more time and a lot more ability than myself...


Post a reply to this message

From: Warp
Subject: Re: CUDA - NVIDIA's massively parallel programming architecture
Date: 14 Nov 2006 12:24:30
Message: <4559fbce@news.povray.org>
PaulSh <nomail@nomail> wrote:
> Given
> that V3.7 is going to be fully threaded, what would be the possibility of a
> CUDA version?

  I would say that basically the only possibility for this would be if a
competent C++ compiler can automatically compile C++ code for it. Other than
that, hardly.

  (This is nothing new. We go back to the days of AMD's 3DNow! and Intel's
MMX and SSE: Only automatic compiler support has brought them to POV-Ray,
nothing else.)

-- 
                                                          - Warp


Post a reply to this message

From: Ben Chambers
Subject: Re: CUDA - NVIDIA's massively parallel programming architecture
Date: 14 Nov 2006 16:52:18
Message: <455a3a92$1@news.povray.org>
PaulSh wrote:
> POV-Ray is finally making its transition to SMP systems, which is great news
> for those of us who can afford them. However, in terms of raw CPU power the
> latest NVIDIA graphics cards would seem to completely blow away anything in
> the way of SMP solutions this side of a research lab. Their CUDA GPU
> architecture is claimed to allow up to 128 independent processing units
> each running at 1.35GHz to be thrown at computationally-intensive problems.
> So, my first thought was not SETI or protein folding, but POV-Ray. Given
> that V3.7 is going to be fully threaded, what would be the possibility of a
> CUDA version? I guess that will depend on the time and abilities of someone
> with a lot more time and a lot more ability than myself...
> 
> 

No good, they're only single precision.  Plus, each shader unit would 
need access to the entire scene file, which would be a pain in the a** 
to code.

...Chambers


Post a reply to this message

From: Calvin
Subject: Re: CUDA - NVIDIA's massively parallel programming architecture
Date: 8 Feb 2007 18:35:00
Message: <web.45cbb1edefc6bb74a42403c30@news.povray.org>
Ben Chambers <ben### [at] pacificwebguycom> wrote:
> PaulSh wrote:
> > POV-Ray is finally making its transition to SMP systems, which is great news
> > for those of us who can afford them. However, in terms of raw CPU power the
> > latest NVIDIA graphics cards would seem to completely blow away anything in
> > the way of SMP solutions this side of a research lab. Their CUDA GPU
> > architecture is claimed to allow up to 128 independent processing units
> > each running at 1.35GHz to be thrown at computationally-intensive problems.
> > So, my first thought was not SETI or protein folding, but POV-Ray. Given
> > that V3.7 is going to be fully threaded, what would be the possibility of a
> > CUDA version? I guess that will depend on the time and abilities of someone
> > with a lot more time and a lot more ability than myself...
> >
> >
>
> No good, they're only single precision.  Plus, each shader unit would
> need access to the entire scene file, which would be a pain in the a**
> to code.
>
> ...Chambers

The counter-rotating quad-toroidal NUMA memory bus of the 7 or 8 SPEs in
IBM's Cell Processor
(Mercury Blades, Playstation 3) would support this, though. They're dual
precision vector coprocessors and can access the global memory that the dual
core PowerPC can through a shared memory interface (as well as their own
individual local RAM).

I'm up for tackling it once the 3.7 source becomes available. I'm stalling
until then because I don't want to reinvent the full-threading wheel that I
know they've nearly finished.

I'll hold my breath for the early CVS/SVN source access ;-)


Post a reply to this message

From: Ben Chambers
Subject: Re: CUDA - NVIDIA's massively parallel programming architecture
Date: 12 Feb 2007 16:07:19
Message: <45d0d707@news.povray.org>
Calvin wrote:
> The counter-rotating quad-toroidal NUMA memory bus of the 7 or 8 SPEs in
> IBM's Cell Processor
> (Mercury Blades, Playstation 3) would support this, though. They're dual
> precision vector coprocessors and can access the global memory that the dual
> core PowerPC can through a shared memory interface (as well as their own
> individual local RAM).

True, but you won't find a Cell processor on a graphics card (much less 
one from NVidia).  Still, I'd get a kick out of seeing POV-Ray run on a 
PS3 :)

...Chambers


Post a reply to this message

From: Eero Ahonen
Subject: Re: CUDA - NVIDIA's massively parallel programming architecture
Date: 12 Feb 2007 16:42:07
Message: <45d0df2f$1@news.povray.org>
PaulSh wrote:
> POV-Ray is finally making its transition to SMP systems, which is great news
> for those of us who can afford them. However, in terms of raw CPU power the
> latest NVIDIA graphics cards would seem to completely blow away anything in
> the way of SMP solutions this side of a research lab. Their CUDA GPU
> architecture is claimed to allow up to 128 independent processing units
> each running at 1.35GHz to be thrown at computationally-intensive problems.
> So, my first thought was not SETI or protein folding, but POV-Ray. Given
> that V3.7 is going to be fully threaded, what would be the possibility of a
> CUDA version? I guess that will depend on the time and abilities of someone
> with a lot more time and a lot more ability than myself...

Dunno. But I'd guess it would be easier to compile 3.7 to one of these:
http://www.cray.com/products/xt4/specifications.html
http://www.cray.com/products/xd1/index.html

The latter one is running Linux (AFAIK x86_64), so POV should be a piece
of cake. Of course the price can be somewhere above the "too high"
-level :p.

-- 
Eero "Aero" Ahonen
   http://www.zbxt.net
      aer### [at] removethiszbxtnetinvalid


Post a reply to this message

From: Andrew Price
Subject: Re: CUDA - NVIDIA's massively parallel programming architecture
Date: 24 Mar 2007 23:10:01
Message: <web.4605f4edefc6bb74b4888b4a0@news.povray.org>
I was just looking at this page:

http://gizmodo.com/gadgets/home-entertainment/breaking-ps3-folding-ps3-triples-folding-at-homes-computing-power-to-over
-500-tflopspflops-in-spitting-range-246664.php

It would seem that each PS3 is contributing the same CPU horsepower as 24.6
pcs on average. Therefore a Pov for PS3 might be well worth while.

I would be willing to try my best to help get this done.

:)


Post a reply to this message

From:  theCardinal
Subject: Re: CUDA - NVIDIA's massively parallel programming architecture
Date: 18 Apr 2007 04:00:02
Message: <web.4625ceddefc6bb7494cf37ec0@news.povray.org>
Ben Chambers <ben### [at] pacificwebguycom> wrote:
> PaulSh wrote:
> > POV-Ray is finally making its transition to SMP systems, which is great news
> > for those of us who can afford them. However, in terms of raw CPU power the
> > latest NVIDIA graphics cards would seem to completely blow away anything in
> > the way of SMP solutions this side of a research lab. Their CUDA GPU
> > architecture is claimed to allow up to 128 independent processing units
> > each running at 1.35GHz to be thrown at computationally-intensive problems.
> > So, my first thought was not SETI or protein folding, but POV-Ray. Given
> > that V3.7 is going to be fully threaded, what would be the possibility of a
> > CUDA version? I guess that will depend on the time and abilities of someone
> > with a lot more time and a lot more ability than myself...
> >
> >
>
> No good, they're only single precision.  Plus, each shader unit would
> need access to the entire scene file, which would be a pain in the a**
> to code.
>
> ...Chambers

According to the CUDA programming guide published by NVidia the GPGPU
architecture is as competent as any 32 bit processor.  More precise
computations can be simulated using multiple registers for a computation
instead of a single register if my memory serves - so I seriously doubt
this is a serious obstacle.

The device code is written in a simple extension of C, with host code either
written to match or working through the device drivers directly from any
language capable of such.

The major difficulty involved would be preparing the pov-ray source to run
efficiently on a SIMD architecture - native code may run out of the box
through the provided compiler, but the results would be poor at best
without optimization to take advantage of the particular memory hierarchies
involved.

Sharing parse trees used in the ray tracing is actually highly efficient on
this architecture - it would be stored in memory read-only from the device
accessible from any thread (without locking).  The host processor is
typically responsible for loading the parse tree, since the its preparation
is not likely to be efficient in parallel.

The biggest hurdle I am aware of is load-balancing threads to make efficient
use of the processing power available - simple subdividing the image into
unrelated render-blocks is obviously bounded by the worst-case running time
of the entire image, which may be unacceptably slow for any sufficiently
complex scene.  Perhaps someone with more in-depth knowledge of the
algorithms can determine what the limiting factors of per-ray threading
would be or other techniques.  (This may or may not have been addressed for
a multi-core implementation - since at worse for the naive implementation
you still have 1/n CPU utilization for a n-core system.)

Justin

see:
http://developer.nvidia.com/object/cuda.html#documentation


Post a reply to this message

From: Patrick Elliott
Subject: Re: CUDA - NVIDIA's massively parallel programming architecture
Date: 20 Apr 2007 16:22:30
Message: <MPG.2092cebe2e3c94f598a003@news.povray.org>
In article <web.4625ceddefc6bb7494cf37ec0@news.povray.org>, 
_the### [at] yahoocom says...
> Ben Chambers <ben### [at] pacificwebguycom> wrote:
> > PaulSh wrote:
> > > POV-Ray is finally making its transition to SMP systems, which is gre
at news
> > > for those of us who can afford them. However, in terms of raw CPU pow
er the
> > > latest NVIDIA graphics cards would seem to completely blow away anyth
ing in
> > > the way of SMP solutions this side of a research lab. Their CUDA GPU
> > > architecture is claimed to allow up to 128 independent processing uni
ts
> > > each running at 1.35GHz to be thrown at computationally-intensive pro
blems.
> > > So, my first thought was not SETI or protein folding, but POV-Ray. Gi
ven
> > > that V3.7 is going to be fully threaded, what would be the possibilit
y of a
> > > CUDA version? I guess that will depend on the time and abilities of s
omeone
> > > with a lot more time and a lot more ability than myself...
> > >
> > >
> >
> > No good, they're only single precision.  Plus, each shader unit would
> > need access to the entire scene file, which would be a pain in the a**
> > to code.
> >
> > ...Chambers
> 
> According to the CUDA programming guide published by NVidia the GPGPU
> architecture is as competent as any 32 bit processor.  More precise
> computations can be simulated using multiple registers for a computation
> instead of a single register if my memory serves - so I seriously doubt
> this is a serious obstacle.
> 
> The device code is written in a simple extension of C, with host code eit
her
> written to match or working through the device drivers directly from any
> language capable of such.
> 
> The major difficulty involved would be preparing the pov-ray source to ru
n
> efficiently on a SIMD architecture - native code may run out of the box
> through the provided compiler, but the results would be poor at best
> without optimization to take advantage of the particular memory hierarchi
es
> involved.
> 
> Sharing parse trees used in the ray tracing is actually highly efficient 
on
> this architecture - it would be stored in memory read-only from the devic
e
> accessible from any thread (without locking).  The host processor is
> typically responsible for loading the parse tree, since the its preparati
on
> is not likely to be efficient in parallel.
> 
> The biggest hurdle I am aware of is load-balancing threads to make effici
ent
> use of the processing power available - simple subdividing the image into
> unrelated render-blocks is obviously bounded by the worst-case running ti
me
> of the entire image, which may be unacceptably slow for any sufficiently
> complex scene.  Perhaps someone with more in-depth knowledge of the
> algorithms can determine what the limiting factors of per-ray threading
> would be or other techniques.  (This may or may not have been addressed f
or
> a multi-core implementation - since at worse for the naive implementation
> you still have 1/n CPU utilization for a n-core system.)
> 
> Justin
> 
> see:
> http://developer.nvidia.com/object/cuda.html#documentation
> 
Umm. Sorry but: A) trying to use more registers to do the processing 
adds more overhead to the process than using them does in the first 
place, I think, and that presumes you can even do it effectively. B) 
Most cards are not 32-bit internally, or at least do not provide 32-bit 
for every register or process they perform. C) POVRay is often now 
compiled for 64-bit, so... and D) Its hardly trivial to write code that 
uses multi-core processing, when dealing with things that are often 
quite linear in implementation. A fact that *still* results in Radiosity 
and some other features being in the "not yet working" mode in the new 
multi-core CPU version of POVRay already being developed. Adding in a 
graphics card that would only be directly compatible with the 32-bit 
compile of it just adds more headaches.

And that is my fairly inexpert opinion. I suspect that the detailed 
explanation would go well past what I said and be more specific as to 
why it just won't work currently. In fact, I am certain of it, since you 
are like the third person to bring it up in the last year, so the 
explanation for why it won't work is someplace in the archives already.

-- 
void main () {

    call functional_code()
  else
    call crash_windows();
}

<A HREF='http://www.daz3d.com/index.php?refid=16130551'>Get 3D Models,
 
3D Content, and 3D Software at DAZ3D!</A>


Post a reply to this message

From: Chambers
Subject: Re: CUDA - NVIDIA's massively parallel programming architecture
Date: 21 Apr 2007 14:29:24
Message: <462a5804@news.povray.org>
_theCardinal wrote:
> Ben Chambers <ben### [at] pacificwebguycom> wrote:
>> No good, they're only single precision.  Plus, each shader unit would
>> need access to the entire scene file, which would be a pain in the a**
>> to code.
>>
>> ...Chambers
> 
> According to the CUDA programming guide published by NVidia the GPGPU
> architecture is as competent as any 32 bit processor.  More precise
> computations can be simulated using multiple registers for a computation
> instead of a single register if my memory serves - so I seriously doubt
> this is a serious obstacle.

But double precision is actually 64bit.  Until recently (I don't 
remember exactly which model), NVidia didn't even do full 32bit FP (that 
is, single precision), but only 24.  POV-Ray, for the last dozen years, 
has done 64bit FP (double precision), as the extra accuracy is necessary 
for the types of computations it does.

Sure, you can simulate it in the same way you can use two integer units 
to simulate a fixed point number, but the result is slow.  Perhaps if 
Intel surprises everyone, and releases their next graphics chip as a 
double precision FP monsters, we'd be able to take advantage of that, 
but the current ATI / NVidia cards aren't up to the task of dealing with 
POV-Ray.

> The major difficulty involved would be preparing the pov-ray source to run
> efficiently on a SIMD architecture - native code may run out of the box
> through the provided compiler, but the results would be poor at best
> without optimization to take advantage of the particular memory hierarchies
> involved.

Once the 3.7 source is out, it should be much easier, as the major task 
is simply fitting it to a parallel paradigm.  Having already done that, 
porting to different parallel architectures should be trivial (relative 
to the original threading support, that is).

-- 
...Ben Chambers
www.pacificwebguy.com


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.