TimeTestCompare » History » Version 2
Anil Prabhakar, 07/22/2013 12:13 PM
1 | 1 | Anil Prabhakar | h1. TimeTestCompare |
---|---|---|---|
2 | |||
3 | It has been our aim to simulate two problems and compare the time taken for simulating them by varying the following parameters: |
||
4 | |||
5 | # The data type for computing the FFT, which is necessary to calculate the Demagnetization energy, was changed form 'long double' to 'double' to 'float' |
||
6 | # These simulations were then carried out on machines with different configurations viz. |
||
7 | |||
8 | * Intel(R) Pentium(R) D, 2.80 GHz, 1 GB RAM |
||
9 | * Intel(R) Core(TM) 2 Duo, 2.80 GHz, 2 GB RAM |
||
10 | * Intel (R) Core(TM) i3, 2.93 GHz, 4 GB RAM |
||
11 | * Intel (R) Core(TM) i5, 3.2 GHz, 2 GB RAM |
||
12 | |||
13 | The problems simulated are given by the following links: |
||
14 | |||
15 | attachment:OriginalTimeTest.txt |
||
16 | |||
17 | attachment:RelaxedMagnetization.txt |
||
18 | |||
19 | Please refer to the MIF Format page wiki http://www.ee.iitm.ac.in/redmine/wiki/dynamag/MIFformat for details of the problem specification. |
||
20 | |||
21 | The initial magnetization used in the latter problem was obtained by simulating the first problem with the FFT routine using 'long double' data type and then allowing the last step(at 0 torque) to relax at a torque of 1E-4. THe OMF file generated for this step was then converted to an OVF file(initmag2.ovf) which essentially contained the magnetization values at all points of the geometry. |
||
22 | |||
23 | The change, in terms of data type modification, to the FFT routine may be found in the following file: |
||
24 | |||
25 | attachment:fft.txt |
||
26 | |||
27 | The data obtained, about the time taken for simulating all these, is given in the following spreadsheet: |
||
28 | |||
29 | attachment:TimeTestcompare.ods |
||
30 | |||
31 | The time comparison can also be shown with the following bar charts: |
||
32 | |||
33 | Please note that in both the cases the Function FFT::BaseDecFreqForward(MyComplex*) has been considered for comparing the time taken |
||
34 | |||
35 | |||
36 | !Barcharts_2_2.png! |
||
37 | |||
38 | !Barcharts_1_1.png! |
||
39 | |||
40 | |||
41 | |||
42 | |||
43 | |||
44 |