Author Topic: DOS AVX example  (Read 1900 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: 8772
  • 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: 5850
  • 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: 850
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