-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmisc.py
55 lines (53 loc) · 2.04 KB
/
misc.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
cuda_sample_results = {'cuda_2d': [{'n_particles': 512, 'time_ms': 0.306909}, {'n_particles': 2048, 'time_ms': 0.328294}, {'n_particles': 4608, 'time_ms': 0.411246}, {'n_particles': 8192, 'time_ms': 0.506373}, {'n_particles': 12800, 'time_ms': 0.631633}, {'n_particles': 18432, 'time_ms': 0.74418}, {'n_particles': 25088, 'time_ms': 0.889422}, {'n_particles': 32768, 'time_ms': 1.087441}], 'cuda_3d': [{'n_particles': 8192, 'time_ms': 0.941462}, {'n_particles': 65536, 'time_ms': 5.481499}, {'n_particles': 221184, 'time_ms': 21.760391}, {'n_particles': 524288, 'time_ms': 99.960159}, {'n_particles': 1024000, 'time_ms': 343.911346}, {'n_particles': 1769472, 'time_ms': 831.018188}, {'n_particles': 2809856, 'time_ms': 1670.747681}, {'n_particles': 4194304, 'time_ms': 2585.545654}]}
taichi_sample_results = {
'taichi_2d': [{
'n_particles': 512,
'time_ms': 0.4708201557548364
}, {
'n_particles': 2048,
'time_ms': 0.4732567070391269
}, {
'n_particles': 4608,
'time_ms': 0.5115689839101378
}, {
'n_particles': 8192,
'time_ms': 0.5668949448249805
}, {
'n_particles': 12800,
'time_ms': 0.6931407124000089
}, {
'n_particles': 18432,
'time_ms': 0.8494079414163025
}, {
'n_particles': 25088,
'time_ms': 1.0304002558427783
}, {
'n_particles': 32768,
'time_ms': 1.2111213139576193
}],
'taichi_3d': [{
'n_particles': 8192,
'time_ms': 1.9398335703044722
}, {
'n_particles': 65536,
'time_ms': 10.701219556153774
}, {
'n_particles': 221184,
'time_ms': 34.867725920889825
}, {
'n_particles': 524288,
'time_ms': 140.94088707861374
}, {
'n_particles': 1024000,
'time_ms': 549.7929778569244
}, {
'n_particles': 1769472,
'time_ms': 1286.6532287104633
}, {
'n_particles': 2809856,
'time_ms': 2374.8291689565235
}, {
'n_particles': 4194304,
'time_ms': 4005.1647448022436
}]
}