The MASM Forum

General => The Laboratory => Topic started by: phaap on January 29, 2013, 05:04:07 AM

Title: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: phaap on January 29, 2013, 05:04:07 AM
Hi together,
i think about to port my algorithm from SSE to AVX - but the AVX abilities for integer arithmetic and logical manipulation are poor...
So i think the overhead to emulate this instructions for full 256-bit support isn't worth the trouble.
Or have someone of you other experiences?!?
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: Gunther on January 29, 2013, 05:56:08 AM
Hi phaap,

I think AVX gives a lot of new opportunities and it's worth to migrate your SSE code to AVX.

Quote from: phaap on January 29, 2013, 05:04:07 AM
i think about to port my algorithm from SSE to AVX - but the AVX abilities for integer arithmetic and logical manipulation are poor...

That's not quite right. According to the manuals (Intel or AMD) for every SSE instruction you've an appropriate AVX instruction (for example: MULPS and VMULPS). Of course, a lot of AVX integer instructions have only a 128 bit encoding, while others have both. All things considered, AVX gives a great performance boost. You could check the following 64 bit example: http://masm32.com/board/index.php?topic=795.0 (http://masm32.com/board/index.php?topic=795.0) On the other hand: AVX2 will need some time.

Gunther
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: noellerichmond on April 18, 2013, 10:20:25 PM
I was not aware that we can port SSE to AVX or switching from one to the other. So this is how I am  going get new information here and I am glad I can learn so much.
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: Gunther on April 19, 2013, 05:36:19 AM
Hi noellerichmond,

first things first: Welcome to the forum.

Quote from: noellerichmond on April 18, 2013, 10:20:25 PM
I was not aware that we can port SSE to AVX or switching from one to the other. So this is how I am  going get new information here and I am glad I can learn so much.

Sure, we can, if the AVX instruction set is available (Sandy Bridge, Ivy Bridge, Bulldozer). For more information, please check out that (http://masm32.com/board/index.php?topic=795.0) or that (http://masm32.com/board/index.php?topic=1597.0) thread.

Gunther
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: dedndave on April 19, 2013, 09:12:20 AM
not everything will port back and forth smoothly
rather than thinking in terms of using "SSE or AVX", you might consider how they compliment each other
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: hutch-- on April 19, 2013, 11:48:27 PM
noellerichmond,

Answer us this question, does your membership in this forum have anything to do with assembler programming ? I notice that you have advertising for a non-programming activity as your signature which has nothing to do with this forum at all.

We do not allow any advertising at all and we do enforce it to keep a mountain of crap out of the forum.

Please let us know quickly or we will have to remove your post and membership.
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: habran on April 20, 2013, 12:05:41 AM
Bravo hutch :eusa_clap:
I spotted that instantly and wanted to worn about it
but I waited to see if someone else will do it instead
I was surprised that Gunther & dedndave did not react
however, it is nice to see some female interested in assembly programming
even if just pretending :greenclp:
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: jj2007 on April 20, 2013, 12:26:30 AM
Quote from: habran on April 20, 2013, 12:05:41 AM
however, it is nice to see some female interested in assembly programming
even if just pretending :greenclp:

The "girl" is typically a boy with basic computer skills sitting in a poor developing country and earning 1$ an hour for registering in forums, shuffling together a sentence that pretends to make sense and adding the link that gets him the buck and will marginally raise the Google ranking of his employer's site...
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: dedndave on April 20, 2013, 02:07:25 AM
generally, i'd agree with you guys
i think you are reading too much into it, in this case - lol

maybe not
it is odd that she has a fully set-up profile on first post   :P
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: jj2007 on April 20, 2013, 02:51:04 AM
Quote from: dedndave on April 20, 2013, 02:07:25 AM
it is odd that she has a fully set-up profile on first post   :P

Yeah, that's right. Let's wait if there is a second sign of life 8)
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: dedndave on April 20, 2013, 03:51:10 AM
well - there are certainly a number of ways to contact her - lol
she set up an e-mail, AOL IM, and yahoo IM   :lol:
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: Gunther on April 20, 2013, 08:34:29 PM
If Jochen and habran are right, and that could be, and our message boxes are full of spam, Hutch needs only a few mouse clicks and the thing is over. So let's see what happens in the future.

Gunther
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: Gunther on April 20, 2013, 09:05:32 PM
Hi Jochen,

Quote from: jj2007 on April 20, 2013, 12:26:30 AM
The "girl" is typically a boy with basic computer skills sitting in a poor developing country and earning 1$ an hour for registering in forums, shuffling together a sentence that pretends to make sense and adding the link that gets him the buck and will marginally raise the Google ranking of his employer's site...

the boy and girl question isn't so decisive. But in general, search engine optimization (SEO) isn't an easy task and I've doubts that a few mouse clicks more will bring forward the employer's site.

Gunther
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: MichaelW on April 20, 2013, 10:47:59 PM
Is there some easy way to get the search engines to ignore such links?
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: Tedd on April 20, 2013, 11:25:46 PM
The avatar image stolen from a blog.

Examples of the spammer's other work:
http://www.tm-forum.com/viewtopic.php?f=7&t=30086 (http://www.tm-forum.com/viewtopic.php?f=7&t=30086)
http://www.jimonitor.com/article/libertarian-gary-johnson-resorts-write-campaign-michigan (http://www.jimonitor.com/article/libertarian-gary-johnson-resorts-write-campaign-michigan)
http://china-mint.info/forum/index.php?topic=7889.0 (http://china-mint.info/forum/index.php?topic=7889.0)
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: Magnum on April 21, 2013, 12:22:48 AM
Good catch Tedd.

The person is using all kinds of different names.

Andy
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: habran on April 21, 2013, 12:55:38 AM
Hey Ted, are you sure that  you are not reincarnation of Sherlock :t
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: dedndave on April 21, 2013, 01:45:19 AM
that's a neat trick, Tedd - lol
our own "cyber-sleuth"   :P
Title: Re: Port SSE to AVX (integer arithmetic) ...or wait for AVX2 (Intel)
Post by: Gunther on April 21, 2013, 02:34:28 AM
Well done, Tedd.  :t The rest should be very easy.

Gunther