The MASM Forum

Miscellaneous => 16 bit DOS Programming => Topic started by: Gunther on September 22, 2016, 08:46:57 AM

Title: DOS AVX example
Post by: Gunther 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 (http://masm32.com/board/index.php?topic=4134.msg43831#msg43831) 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     
Title: Re: DOS AVX example
Post by: jj2007 on June 02, 2018, 05:52:38 PM
But you managed to place your link, congrats! We rarely see intelligent bots here :t
Title: Re: DOS AVX example
Post by: hutch-- on June 03, 2018, 03:09:22 AM
The download works fine, your advertising does not.
Title: Re: DOS AVX example
Post by: zedd151 on June 03, 2018, 07:23:41 AM
Quote from: hutch-- on June 03, 2018, 03:09:22 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 (http://masm32.com/board/index.php?topic=7049.msg77680#msg77680)
Title: Re: DOS AVX example
Post by: Czerno on March 12, 2019, 05:26:00 AM
Hi ! Back to Hutch's (new, great!) forum after many years away...

Quote from: Gunther on September 22, 2016, 08:46:57 AM
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 %

Title: Re: DOS AVX example
Post by: jj2007 on March 12, 2019, 08:47:27 AM
Hi, are you the Czerny mentioned here (http://masm32.com/board/index.php?topic=1733.0)?
Title: Re: DOS AVX example
Post by: Czerno on March 12, 2019, 09:44:47 AM
Quote from: jj2007 on March 12, 2019, 08:47:27 AM
Hi, are you the Czerny mentioned here (http://masm32.com/board/index.php?topic=1733.0)?
Nope, nor a relative ...
Title: Re: DOS AVX example
Post by: felipe on March 12, 2019, 10:05:35 AM
Quote from: Czerno on March 12, 2019, 05:26:00 AM
Hi ! Back to Hutch's (new, great!) forum after many years away...

So, welcome to the forum again!  :t