News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Matrix Transposing AVX versus SSE

Started by aw27, July 13, 2018, 01:37:43 AM

Previous topic - Next topic

felipe

This is very interesting too (seems like a great day for the forum today)  :greenclp:. I don't have avx support in my machine, but in the bios configuration i can dissable stepping (or similar, don't remember now  :idea:) and a few others configurations (like the fan in full speed and other thing too) to make the hardware work to maximum all the time. I don't do it because it has not been necessary, so i prefer to do power saving. But from some time i have been wainting for a nice algo to test timmings and to compare my machine in "fullmode" and in power saving mode  :idea: .  (So jj i'm still waiting for your test piece  ;)  :idea:)

But warm the machine before with some special algos...amazing, reminds me old cars in winter.  :shock:

zedd151

Quote
I modified the code (please redownload), now it is expected to identify AMD CPU Brand (fingers crossed  :biggrin:).

I'll take a look when I get home from work...  I'll run it from both windows 7 and windows 10. Both 64 bit..

Siekmanski

AVX is not faster than the previous one, SSE a little bit.

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz
800x800 Matrix Date/Time: 2018-07-13 21:28:08
AVX(ms)=0,43 SSE(ms)=0,79


about 8 hours ago:
Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz
800x800 Matrix Date/Time: 2018-07-13 13:01:16
AVX(ms)=0,43 SSE(ms)=0,85
Creative coders use backward thinking techniques as a strategy.

zedd151

#18
Quote from: zedd151 on July 14, 2018, 03:17:15 AM
Quote
now it is expected to identify AMD CPU Brand (fingers crossed  :biggrin: ).

I'll run it from both windows 7 ..

Here is what I get from Windows 7 Professional 64 bit. Please note that I do not have the proper video drivers installed, just the stock video from M$. (No drivers available for Windows 7 yet, for my machine - if ever)  The font looks off, but it could be an issue once again with IE8,
also I believe the graphs (or charts) should not be blank.

Later I will throw on my backup of Windows 10 Home just for kicks, and to see what changes for me. I bet it will look a lot better.
Performance wise, I don't expect much from this 1.60 Ghz cpu.

aw27

@Filipe,
AVX is not being much used anyway. New technologies may take up to 10 years to become widespread.

@Siekmanski
I am making the tests in real life conditions, not increasing the priority of the core, so significant fluctuations are expected in a single run.
I will modify these tests to repeat a few times and take an average.

@Zed
Your AMD is a bit slow but has not a low specification - it even supports AVX2.
I am happy the CPU brand ID worked this time. You may see it different in another OS because "It is possible to change the CPUID of AMD processors by using the AMD virtualization instructions. I hope that somebody will volunteer to make a program for this purpose - Agner Fog".
I see that the charts don't plot - IE8 is too old indeed.


zedd151

Quote from: AW on July 14, 2018, 05:31:12 PM
I see that the charts don't plot - IE8 is too old indeed.

:biggrin:  Just like me.  :P

I'll get Windows 10 up and running here shortly. Had a little trouble with the backup of Windows 10 'To Go'....   :icon_confused:

zedd151

#21
Okay, here's from Windows 10 Ultimate 64 bit...

I noticed a significant error in the time displayed. I ran it twice to be sure, they were both taken moments ago - but display as 2hours ago.

Also, is that what the font is supposed to look like? Also, hard to be sure on the graph which one is mine. I assume the very last entry.

aw27

@Zed
What I have learnt from the site is that the chart show the browser time, .i.e your local time. I also calculate the local time before sending the data which is displayed correctly. The "2 hours ago" does not make sense then and it was not happening when you were using Windows 7.  :icon_eek:
PS: You may need to refresh the page  :idea:

Quote
Also, is that what the font is supposed to look like?
It is possible to customize the charts, but this is an advanced topic and I don't understand it quite well.

zedd151

Quote from: AW on July 14, 2018, 06:24:54 PM
PS: You may need to refresh the page  :idea:

I came back in a hurry to Windows 7 because M$ was threatening an update on Windows 10. Lemme go back and try again, I'll inform of the results - I'll clear the cache before running...

zedd151

Okay back in Windows 10:


AMD A6-9220e RADEON R4, 5 COMPUTE CORES 2C 3G 8000x8000 Matrix Date/Time: [b]2018-07-14 03:39:09[/b] AVX(ms)=490.97 SSE(ms)=547.48
about 2 hours ago


The date and time displayed are correct for my location Central Standard Time. But still get the 'about 2 hours ago' ....
Now I'm going to run another from Windows 7....

Bold doesn't work within the 'code' box?   :greensml:  just found that out

zedd151

Ok, now from Windows 7:


AMD A6-9220e RADEON R4, 5 COMPUTE CORES 2C 3G 8000x8000 Matrix Date/Time: 2018-07-14 03:46:23 AVX(ms)=447.92 SSE(ms)=738.40
less than a minute ago

AMD A6-9220e RADEON R4, 5 COMPUTE CORES 2C 3G 8000x8000 Matrix Date/Time: 2018-07-14 03:39:09 AVX(ms)=490.97 SSE(ms)=547.48
7 minutes ago

AMD A6-9220e RADEON R4, 5 COMPUTE CORES 2C 3G 8000x8000 Matrix Date/Time: 2018-07-14 03:06:33 AVX(ms)=337.76 SSE(ms)=547.36
40 minutes ago


???  :icon_confused:  Doesn't really matter though - at least not for me.

I expect some deviation from normal with Windows 7 because of a lack of drivers for this shiny new computer, but Windows 10 has all
of the latest drivers installed, plus Windows Edge browser. So I am at a loss for any explanation for the time discrepancy.

aw27

Quote from: zedd151 on July 14, 2018, 06:48:47 PM
I expect some deviation from normal with Windows 7 because of a lack of drivers for this shiny new computer, but Windows 10 has all
of the latest drivers installed, plus Windows Edge browser. So I am at a loss for any explanation for the time discrepancy.
I tested in Edge and IE in Windows 10 and it reports correctly the time ago. I have no explanation for the "time ago" discrepancy in your Windows 10.

zedd151

Quote from: AW on July 14, 2018, 07:00:46 PMI have no explanation for the "time ago" discrepancy in your Windows 10.
`

gremlins