-
Notifications
You must be signed in to change notification settings - Fork 2
/
gpu_optimize_storm_drift.cpp
77 lines (58 loc) · 1.55 KB
/
gpu_optimize_storm_drift.cpp
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#include "gpu_optimize_storm_drift.h"
int gpu_opt_storm_drift_initialize_2d_portable(int argc, void *argv[])
{
return gpu_opt_storm_drift_initialize_2d(
*(int *)argv[0],
*(int *)argv[1],
(float *)argv[2],
(float *)argv[3],
(int *)argv[5],
*(size_t *)argv[6],
(int *)argv[7],
(int *)argv[8]);
}
int gpu_opt_storm_drift_compute_2d_portable(int argc, void *argv[])
{
return gpu_opt_storm_drift_compute_2d(
*(int *)argv[0],
*(int *)argv[1],
*(size_t *)argv[2],
*(float *)argv[3],
(float *)argv[4],
(float *)argv[5],
*(int *)argv[6],
(float *)argv[7]);
}
int gpu_opt_storm_drift_free_2d_portable(int argc, void *argv[])
{
return gpu_opt_storm_drift_free_2d();
}
int gpu_opt_storm_drift_initialize_3d_portable(int argc, void *argv[])
{
return gpu_opt_storm_drift_initialize_3d(
*(int *)argv[0],
*(int *)argv[1],
(float *)argv[2],
(float *)argv[3],
(float *)argv[4],
(int *)argv[5],
*(size_t *)argv[6],
(int *)argv[7],
(int *)argv[8]);
}
int gpu_opt_storm_drift_compute_3d_portable(int argc, void *argv[])
{
return gpu_opt_storm_drift_compute_3d(
*(int *)argv[0],
*(int *)argv[1],
*(size_t *)argv[2],
*(float *)argv[3],
(float *)argv[4],
(float *)argv[5],
*(int *)argv[6],
(float *)argv[7]);
}
int gpu_opt_storm_drift_free_3d_portable(int argc, void *argv[])
{
return gpu_opt_storm_drift_free_3d();
}