POV-Ray : Newsgroups : povray.beta-test : Radiosity Status: Giving Up... Server Time
29 Jul 2024 12:26:05 EDT (-0400)
  Radiosity Status: Giving Up... (Message 85 to 94 of 194)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: clipka
Subject: Re: Radiosity Status: Giving Up...
Date: 31 Dec 2008 18:40:01
Message: <web.495c0222cd9d1e7530acaf600@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> Please check out the current Intel information what SSE2 is actually
> supposed to be used for. I am not talking about vectorized code or
> auto-vectorization.

So - what IS it actually supposed to be used for?


Basic Architecture", I find that SSE2 is useful for:

- SIMD (for processing bulk data)
- loading data without involvement of the cache (agan for bulk data)

That's about it, basically.

So? What's the news I have missed you expect me to find in "the current Intel
information what SSE2 is actually supposed to be used for" (whatever document
that is supposed to be)?

The same document also mentions that SSE2 supports basically the same arithmetic
operations as MMX, about which the doc has to say: "The arithmetic instructions
perform addition, subtraction, multiplication, and
multiply/add operations on packed data types"

Duh. Any mention of such things as sin, cos, log or such? I don't see any.

So: Back to good old x87 FPU instructions for these.


Post a reply to this message

From: Warp
Subject: Re: Radiosity Status: Giving Up...
Date: 31 Dec 2008 19:08:30
Message: <495c097e@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> Warp, could you stop theorizing and actually *use* the information already 
> out there, supplied by Intel and plenty of other sources? SSE != SIMD

  Have you checked lately what "SSE" stands for? ;)

-- 
                                                          - Warp


Post a reply to this message

From: clipka
Subject: Re: Radiosity Status: Giving Up...
Date: 31 Dec 2008 19:10:00
Message: <web.495c0886cd9d1e7530acaf600@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> > You are looking at the wrong manual. This manual does not tell you how
> > to do something but what is available.
> ...
> I guess it would help if M$ would not call x86-64 "AMD64" in older documents...

I'm not surprised that they did, because that's what the original implementation
was named...

>
<http://download.microsoft.com/download/5/b/5/5b5bec17-ea71-4653-9539-204a672f11cf/AMD64_PortApp.doc>
> <http://developer.amd.com/pages/62720069_4.aspx>

I still don't get the point. The first document is about AMD64; it does mention
SSE2, but not to much extent. Again, vectorization is the most prominent
keyword here.

The second document mentions that "The x87 FPU can perform numerous advanced
arithmetic operations on values stored in the x87 registers, such as
trigonometric and logarithmic functions, with a single instruction.", and also
that "x87 arithmetic is deprecated in 64-bit mode" - but not because it would
be inferior, but simply because "the extent to which operating systems will
continue to support x87 in the future is unknown."

There is no mention that SSE2 could do the same transcendental functions without
some additional piece of software, and I wonder whether that will do good to
performance.


Post a reply to this message

From: clipka
Subject: Re: Radiosity Status: Giving Up...
Date: 31 Dec 2008 19:10:00
Message: <web.495c0946cd9d1e7530acaf600@news.povray.org>
Nicolas Alvarez <nic### [at] gmailcom> wrote:
> Have a quick look at povray.off-topic group. (but don't stay in there for
> too long, it's bad for your sanity; get back to radiosity! :D)

The deeper I get into the code and all its quirks, I wonder whether radiosity is
any better for my sanity :)


Post a reply to this message

From: Warp
Subject: Re: Radiosity Status: Giving Up...
Date: 31 Dec 2008 19:23:30
Message: <495c0d02@news.povray.org>
clipka <nomail@nomail> wrote:
> Duh. Any mention of such things as sin, cos, log or such? I don't see any.

  I don't see them either, eg. here:

http://en.wikipedia.org/wiki/X86_instruction_listings#SIMD_instructions

  Besides the basic operations there's sqrt, but no trigonometric nor
logarithmic functions. x87 has those (although only base-2 logarithms
are supported directly).

-- 
                                                          - Warp


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Radiosity Status: Giving Up...
Date: 31 Dec 2008 19:24:13
Message: <495c0d2d$1@news.povray.org>
clipka wrote:
> So? What's the news I have missed you expect me to find in "the current Intel
> information what SSE2 is actually supposed to be used for" (whatever document
> that is supposed to be)?

The only current information is in the compiler manuals that mention the ABI 
changes in 64-bit mode. The other relevant information is unfortunately a 
mess of documents from compiler and OS vendors, AMD, and the "Intel 64" 
developer web page.

> The same document also mentions that SSE2 supports basically the same arithmetic

The document you are referring to specifies the whole instruction set 
available in all Intel x86 processors. If you look at it closely, you will 
even find sections about 286 compatibility and 16 bit mode. - Just because 
all instructions are in that document does not mean you should use them all...

> Duh. Any mention of such things as sin, cos, log or such? I don't see any.
> 
> So: Back to good old x87 FPU instructions for these.

No, you do them in software with SSE2, that is much faster. Or actually, you 
don't care because the compiler does the right thing anyway.

	Thorsten


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Radiosity Status: Giving Up...
Date: 31 Dec 2008 19:25:37
Message: <495c0d81$1@news.povray.org>
Warp wrote:
> clipka <nomail@nomail> wrote:
>> Duh. Any mention of such things as sin, cos, log or such? I don't see any.
> 
>   I don't see them either, eg. here:
> 
> http://en.wikipedia.org/wiki/X86_instruction_listings#SIMD_instructions

Why do you *expect* to see them?

	Thorsten


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Radiosity Status: Giving Up...
Date: 31 Dec 2008 19:27:12
Message: <495c0de0$1@news.povray.org>
Warp wrote:
> Thorsten Froehlich <tho### [at] trfde> wrote:
>> Warp, could you stop theorizing and actually *use* the information already 
>> out there, supplied by Intel and plenty of other sources? SSE != SIMD
> 
>   Have you checked lately what "SSE" stands for? ;)

I have no intention to continue such an argument on semantics, this leads 
nowhere and does not change the fact that x87 FPU usage is deprecated.

	Thorsten


Post a reply to this message

From: Warp
Subject: Re: Radiosity Status: Giving Up...
Date: 31 Dec 2008 19:28:09
Message: <495c0e19@news.povray.org>
clipka <nomail@nomail> wrote:
> "x87 arithmetic is deprecated in 64-bit mode" - but not because it would
> be inferior, but simply because "the extent to which operating systems will
> continue to support x87 in the future is unknown."

  That's a really odd statement. I didn't know that the FPU or the x87
instruction set required OS support. (Can the OS even force programs to
not use x87 instructions if it wanted to? Even if it could, it would have
to be deliberate, and I can't really understand *why* it would want to
do that. It would certainly break like 99% of software out there, and for
what reason?)

-- 
                                                          - Warp


Post a reply to this message

From: Warp
Subject: Re: Radiosity Status: Giving Up...
Date: 31 Dec 2008 19:30:25
Message: <495c0ea1@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
> Warp wrote:
> > clipka <nomail@nomail> wrote:
> >> Duh. Any mention of such things as sin, cos, log or such? I don't see any.
> > 
> >   I don't see them either, eg. here:
> > 
> > http://en.wikipedia.org/wiki/X86_instruction_listings#SIMD_instructions

> Why do you *expect* to see them?

  Because you said that, according to Intel, x87 is obsolete and all code
is recommended to use SSE instead. If that's true, then it would be a
rather large setback for programs requiring trigonometric and logarithmic
calculations, as they would have to be made in software.

  I really don't see how SSE obsoletes x87.

-- 
                                                          - Warp


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>

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