Author Topic: DOS AVX example  (Read 2746 times)

Gunther

  • Member
  • *****
  • Posts: 3585
  • Forgive your enemies, but never forget their names
DOS AVX example
« on: September 22, 2016, 08:46:57 AM »
Attached is the file DOSAVX.zip. It contains the sources and binaries to build the program, for example:

AVX.COM:              COM file for preparation the AVX instruction set under plain DOS
B_DFSUM.BAT:       Batch file to build the EXE
DFSUM.C:              Main function
DFSUMF.C:            file with C functions
DFSUMF.ASM:        file with assembly language functions

For more details, please read that thread very accurate. Here is the output of the program under VirtualBox:
Quote
Calculating the sum of a float array in 4 different ways.
That'll take a little while. Please be patient ...

Simple C implementation:
------------------------
sum1              = 8390656.00
Elapsed Time      = 45.38 Seconds

C implementation with 4 accumulators:
-------------------------------------
sum2              = 8390656.00
Elapsed Time      = 17.86 Seconds
Performance Boost = 254%

Assembly Language with 4 XMM accumulators:
------------------------------------------
sum3              = 8390656.00
Elapsed Time      = 1.21 Seconds
Performance Boost = 3755%

Assembly Language with 4 YMM accumulators:
------------------------------------------
sum4              = 8390656.00
Elapsed Time      = 0.82 Seconds
Performance Boost = 5507%

Some test results under other configurations would be fine.
 
Gunther     
Get your facts first, and then you can distort them.

Idith

  • Regular Member
  • *
  • Posts: 1
    • gapps.co.il
Re: DOS AVX example
« Reply #1 on: June 02, 2018, 01:23:30 PM »
Can't download the zip for some reason  :icon_confused:

jj2007

  • Member
  • *****
  • Posts: 9401
  • Assembler is fun ;-)
    • MasmBasic
Re: DOS AVX example
« Reply #2 on: June 02, 2018, 05:52:38 PM »
But you managed to place your link, congrats! We rarely see intelligent bots here :t

hutch--

  • Administrator
  • Member
  • ******
  • Posts: 6277
  • Mnemonic Driven API Grinder
    • The MASM32 SDK
Re: DOS AVX example
« Reply #3 on: June 03, 2018, 03:09:22 AM »
The download works fine, your advertising does not.
hutch at movsd dot com
http://www.masm32.com    :biggrin:  :biggrin:

zedd151

  • Member
  • ****
  • Posts: 869
Re: DOS AVX example
« Reply #4 on: June 03, 2018, 07:23:41 AM »
The download works fine, your advertising does not.

You've been hutched!   :biggrin:    :biggrin:

Next comes the hatchet.   

Probably came from the same bot school as  comfi
« Last Edit: June 03, 2018, 07:48:08 PM by zedd151 »
I'm not always the sharpest knife in the drawer, but I have my moments.  :P

Czerno

  • Regular Member
  • *
  • Posts: 2
Re: DOS AVX example
« Reply #5 on: March 12, 2019, 05:26:00 AM »
Hi ! Back to Hutch's (new, great!) forum after many years away...

Some test results under other configurations would be fine.

Benchmark ran OK on this AMD-7700K APU 3.4 GHz, under MS-DOS on bare metal (i.e. the real thing, not virtualised) ! Results, for what they are worth (but You asked for them) :
Test 1: 102.03 s
Test 2:  35.44 s / Boost = +288 %
Test 3:   1.70 s /  Boost = 5990 %
Test 4:   1.43 s /  Boost  = 7142 %


jj2007

  • Member
  • *****
  • Posts: 9401
  • Assembler is fun ;-)
    • MasmBasic
Re: DOS AVX example
« Reply #6 on: March 12, 2019, 08:47:27 AM »
Hi, are you the Czerny mentioned here?

Czerno

  • Regular Member
  • *
  • Posts: 2
Re: DOS AVX example
« Reply #7 on: March 12, 2019, 09:44:47 AM »
Hi, are you the Czerny mentioned here?
Nope, nor a relative ...

felipe

  • Member
  • *****
  • Posts: 1164
  • Eagles are just great!
Re: DOS AVX example
« Reply #8 on: March 12, 2019, 10:05:35 AM »
Hi ! Back to Hutch's (new, great!) forum after many years away...

So, welcome to the forum again!  :t

Felipe.