Recent Posts

Pages: [1] 2 3 ... 10
1
The Soap Box / Re: PHUN with a 4tb HDD.
« Last post by zedd151 on Today at 02:10:44 PM »
That is a huge HDD! I could only imagine filling it maybe 2-3% But then again, I don't have a whole lot of interest in storing video or any other huge data.

I guess if it's good enough for NASA....    :biggrin:

I can only hope for a few hundred GB (severely needed - btw), which will be coming shortly. 
2
The Soap Box / Re: PHUN with a 4tb HDD.
« Last post by hutch-- on Today at 02:02:23 PM »
The WD red 4tb turned up today so I plonked it in, benchmarked it and I am loading the contents of the previous disk back into it at the moment. Disk benchmarks at about 180 meg/sec so all is well. These are designed for NAS types of tasks so I might add a couple more over time as most tasks don't need real speed and reliability is more important when you have a lot of data to store.

I have an order of priority with disk based tasks, if I need real speed and no disk thrashing, I do it on a ramdisk, if its fast storage and fast data read, it goes on SSD, otherwise it goes on a normal HDD. I do all of my dev work on a normal HDD as it is easily fast enough for compiler/assembler results.
3
The Laboratory / Re: Fast SIMD transpose routines
« Last post by Yuri on Today at 01:44:21 PM »
Code: [Select]
10000000 calls per Matrix for the Cycle counter and the Routine timer.

Intel(R) Core(TM) i3 CPU 540 @ 3.07GHz

4x4 Cycles: 9  CodeSize: 66 RoutineTime: 0.049261743 seconds
4x3 Cycles: 7  CodeSize: 56 RoutineTime: 0.043520454 seconds
4x2 Cycles: 8  CodeSize: 42 RoutineTime: 0.042658139 seconds
3x4 Cycles: 10  CodeSize: 62 RoutineTime: 0.049160314 seconds
3x3 Cycles: 5  CodeSize: 51 RoutineTime: 0.036015704 seconds
3x2 Cycles: 5  CodeSize: 35 RoutineTime: 0.036012691 seconds
2x4 Cycles: 1  CodeSize: 31 RoutineTime: 0.024245575 seconds
2x3 Cycles: 1  CodeSize: 27 RoutineTime: 0.023353133 seconds
2x2 Cycles: 0  CodeSize: 18 RoutineTime: 0.020137194 seconds

Code Alignment 64 byte check: 000h
4
The Laboratory / Re: Fast SIMD transpose routines
« Last post by zedd151 on Today at 11:47:08 AM »
Code: [Select]
10000000 calls per Matrix for the Cycle counter and the Routine timer.
AMD A6-9220e RADEON R4, 5 COMPUTE CORES 2C+3G
4x4 Cycles: 3  CodeSize: 66 RoutineTime: 0.055281872 seconds
4x3 Cycles: 3  CodeSize: 56 RoutineTime: 0.048029962 seconds
4x2 Cycles: 4  CodeSize: 42 RoutineTime: 0.047268223 seconds
3x4 Cycles: 5  CodeSize: 62 RoutineTime: 0.056652746 seconds
3x3 Cycles: 4  CodeSize: 51 RoutineTime: 0.047815803 seconds
3x2 Cycles: 2  CodeSize: 35 RoutineTime: 0.034986782 seconds
2x4 Cycles: 1  CodeSize: 31 RoutineTime: 0.038576830 seconds
2x3 Cycles: -1  CodeSize: 27 RoutineTime: 0.028790277 seconds
2x2 Cycles: 0  CodeSize: 18 RoutineTime: 0.024736004 seconds
Code Alignment 64 byte check: 000h
Press any key to continue...

1.60 Ghz cpu speed...
 
cycle counts seem off "0 cycles", "-1 cycle"
5
The Laboratory / Fast SIMD transpose routines
« Last post by Siekmanski on Today at 11:35:37 AM »
Wrote some Matrix Transpose routines of different sizes.
The idea is to use them as building blocks to create an Algorithm for very large Transposition Matrices of any size.
Included the sources and a timing mechanism that measures the clock cycles and the time each Matrix routine takes after 10000000 calls.

You can use the "SaveResults.bat" to save the timing results as "MatrixTimerResults.txt"
It would be nice to post the results here and give some feedback for improvements of the routines.  :t
Thanks.

Here are my results:

Code: [Select]
10000000 calls per Matrix for the Cycle counter and the Routine timer.

Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

4x4 Cycles: 4  CodeSize: 66 RoutineTime: 0.032362423 seconds
4x3 Cycles: 3  CodeSize: 56 RoutineTime: 0.029423712 seconds
4x2 Cycles: 4  CodeSize: 42 RoutineTime: 0.032384074 seconds
3x4 Cycles: 4  CodeSize: 62 RoutineTime: 0.032416620 seconds
3x3 Cycles: 2  CodeSize: 51 RoutineTime: 0.026471800 seconds
3x2 Cycles: 3  CodeSize: 35 RoutineTime: 0.029419801 seconds
2x4 Cycles: 0  CodeSize: 31 RoutineTime: 0.020588231 seconds
2x3 Cycles: 0  CodeSize: 27 RoutineTime: 0.020594936 seconds
2x2 Cycles: -1  CodeSize: 18 RoutineTime: 0.017652313 seconds

Code Alignment 64 byte check: 000h

EDIT: forgot to mention that the routines are to be used backwards in memory because when a row is 3 values, 4 are written!
6
The Soap Box / Re: Zen story...
« Last post by jj2007 on Today at 11:08:06 AM »
I believe that every human being has a right of good education, healthcare and a reasonable welfare system. ( for those who really can not work ). I believe this should be paid out of taxes, without this system it is not possible.

Just read this here:
Quote
My last ambulance ride was $1300 for four miles. Insurance paid all but $500 of that. The ER bill was $8000 of which I paid $2000. Yes, I have health insurance through my US employer.

I had a standard stress test done for heart function. The total billing on that was $12,000, of which the insurance company’s negotiated rate is $5500 and I will end up paying about $1200 of.
:dazzled: (if I remember well, my last "standard stress test for heart function" was around 100 bucks...)

> My last ambulance ride was $1300 for four miles
40€ for up to 15km, in those rare cases when the national health care doesn't pay for some reason.
7
The Soap Box / Re: Zen story...
« Last post by Caché GB on Today at 08:49:56 AM »
Yes Siekmanski is correct in that there are classes on the net. Say for example one is struggling with some concept in math,
well there are plenty dedicated math channels on YouTube.  In fact there are many fields of study with  dedicated  channels
there. If you want to supplement your studies you will more often than not find something somewhere. Both MIT and Stanford
regularly film there lectures and put them on their open university platforms.

It all boils down to this:-
If a person wants to do something, they will find a way. If they don't they will find an excuse.
8
GoAsm / general conversion
« Last post by shankle on Today at 08:09:43 AM »
            6-23-2018
   
    HDC hdcScreen;
    HDC hdcWindow;
    HDC hdcMemDC = NULL;
    HBITMAP hbmScreen = NULL;
    BITMAP bmpScreen
   

HDC                dq  0
hbmScreen      dq  0
hdcMemDC       dq  0
hdcWindow      dq  0
bmpScreen      dq  0

Thanks for any help.
9
Miscellaneous Projects / SmplMath modified sign function
« Last post by HSE on Today at 07:23:08 AM »
Hi qWord!!

Here is a modifed function that work more like "sign" function in Matlab (and others), wich detect 3 states:
Code: [Select]
; sign matlab function
fslv_fnc_sgnm macro
fstp REAL4 ptr T_EXPR([esp-4],[rsp])
.if (DWORD ptr T_EXPR([esp-4],[rsp]))&7FFFFFFFh
        fld1
        .if (DWORD ptr T_EXPR([esp-4],[rsp]))&80000000h
        fchs
        .endif
       .else
            fldz
       .endif

endm

Test:
Code: [Select]
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
    include \masm32\include\masm32rt.inc
    .686
    .XMM
    include \masm32\macros\SmplMath2\Math.inc
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

comment * -----------------------------------------------------
                     Build this console app with
                  "MAKEIT.BAT" on the PROJECT menu.
        ----------------------------------------------------- *

    .data?
      value dd ?

    .data
      item dd 0

    .code

start:
   
; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

    call main
    inkey
    exit

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

main proc

    local a1:real8, a3:sdword

    cls
   
    fSlv a1 = 0.00051
    fSlv a3 = sgnm(a1)
    print sstr$(a3),13,10

    fSlv a1 = -0.1
    fSlv a3 = sgnm(a1)
    print sstr$(a3),13,10

    fSlv a1 = 0.0
    fSlv a3 = sgnm(a1)
    print sstr$(a3),13,10

    ret

main endp

; ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

end start

Result:
Code: [Select]
1
-1
0
Press any key to continue ...

Well... apparently it's working in FPU backend.

Regards.
10
The Soap Box / Re: Zen story...
« Last post by Siekmanski on Today at 06:15:01 AM »
Today we can learn by following classes on the internet, many universities give lectures for free.
I did 2 courses myself and it was very educational.
Pages: [1] 2 3 ... 10