3
3
4
4
5
5
function cufftPlan1d (plan, nx, type, batch)
6
- @check @runtime_ccall ((:cufftPlan1d , libcufft), cufftResult,
6
+ @check @runtime_ccall ((:cufftPlan1d , libcufft[] ), cufftResult,
7
7
(Ptr{cufftHandle}, Cint, cufftType, Cint),
8
8
plan, nx, type, batch)
9
9
end
10
10
11
11
function cufftPlan2d (plan, nx, ny, type)
12
- @check @runtime_ccall ((:cufftPlan2d , libcufft), cufftResult,
12
+ @check @runtime_ccall ((:cufftPlan2d , libcufft[] ), cufftResult,
13
13
(Ptr{cufftHandle}, Cint, Cint, cufftType),
14
14
plan, nx, ny, type)
15
15
end
16
16
17
17
function cufftPlan3d (plan, nx, ny, nz, type)
18
- @check @runtime_ccall ((:cufftPlan3d , libcufft), cufftResult,
18
+ @check @runtime_ccall ((:cufftPlan3d , libcufft[] ), cufftResult,
19
19
(Ptr{cufftHandle}, Cint, Cint, Cint, cufftType),
20
20
plan, nx, ny, nz, type)
21
21
end
22
22
23
23
function cufftPlanMany (plan, rank, n, inembed, istride, idist, onembed, ostride, odist,
24
24
type, batch)
25
- @check @runtime_ccall ((:cufftPlanMany , libcufft), cufftResult,
25
+ @check @runtime_ccall ((:cufftPlanMany , libcufft[] ), cufftResult,
26
26
(Ptr{cufftHandle}, Cint, Ptr{Cint}, Ptr{Cint}, Cint, Cint, Ptr{Cint},
27
27
Cint, Cint, cufftType, Cint),
28
28
plan, rank, n, inembed, istride, idist, onembed, ostride, odist, type,
29
29
batch)
30
30
end
31
31
32
32
function cufftMakePlan1d (plan, nx, type, batch, workSize)
33
- @check @runtime_ccall ((:cufftMakePlan1d , libcufft), cufftResult,
33
+ @check @runtime_ccall ((:cufftMakePlan1d , libcufft[] ), cufftResult,
34
34
(cufftHandle, Cint, cufftType, Cint, Ptr{Csize_t}),
35
35
plan, nx, type, batch, workSize)
36
36
end
37
37
38
38
function cufftMakePlan2d (plan, nx, ny, type, workSize)
39
- @check @runtime_ccall ((:cufftMakePlan2d , libcufft), cufftResult,
39
+ @check @runtime_ccall ((:cufftMakePlan2d , libcufft[] ), cufftResult,
40
40
(cufftHandle, Cint, Cint, cufftType, Ptr{Csize_t}),
41
41
plan, nx, ny, type, workSize)
42
42
end
43
43
44
44
function cufftMakePlan3d (plan, nx, ny, nz, type, workSize)
45
- @check @runtime_ccall ((:cufftMakePlan3d , libcufft), cufftResult,
45
+ @check @runtime_ccall ((:cufftMakePlan3d , libcufft[] ), cufftResult,
46
46
(cufftHandle, Cint, Cint, Cint, cufftType, Ptr{Csize_t}),
47
47
plan, nx, ny, nz, type, workSize)
48
48
end
49
49
50
50
function cufftMakePlanMany (plan, rank, n, inembed, istride, idist, onembed, ostride, odist,
51
51
type, batch, workSize)
52
- @check @runtime_ccall ((:cufftMakePlanMany , libcufft), cufftResult,
52
+ @check @runtime_ccall ((:cufftMakePlanMany , libcufft[] ), cufftResult,
53
53
(cufftHandle, Cint, Ptr{Cint}, Ptr{Cint}, Cint, Cint, Ptr{Cint}, Cint,
54
54
Cint, cufftType, Cint, Ptr{Csize_t}),
55
55
plan, rank, n, inembed, istride, idist, onembed, ostride, odist, type,
58
58
59
59
function cufftMakePlanMany64 (plan, rank, n, inembed, istride, idist, onembed, ostride,
60
60
odist, type, batch, workSize)
61
- @check @runtime_ccall ((:cufftMakePlanMany64 , libcufft), cufftResult,
61
+ @check @runtime_ccall ((:cufftMakePlanMany64 , libcufft[] ), cufftResult,
62
62
(cufftHandle, Cint, Ptr{Clonglong}, Ptr{Clonglong}, Clonglong, Clonglong,
63
63
Ptr{Clonglong}, Clonglong, Clonglong, cufftType, Clonglong, Ptr{Csize_t}),
64
64
plan, rank, n, inembed, istride, idist, onembed, ostride, odist, type,
@@ -67,147 +67,147 @@ end
67
67
68
68
function cufftGetSizeMany64 (plan, rank, n, inembed, istride, idist, onembed, ostride,
69
69
odist, type, batch, workSize)
70
- @check @runtime_ccall ((:cufftGetSizeMany64 , libcufft), cufftResult,
70
+ @check @runtime_ccall ((:cufftGetSizeMany64 , libcufft[] ), cufftResult,
71
71
(cufftHandle, Cint, Ptr{Clonglong}, Ptr{Clonglong}, Clonglong, Clonglong,
72
72
Ptr{Clonglong}, Clonglong, Clonglong, cufftType, Clonglong, Ptr{Csize_t}),
73
73
plan, rank, n, inembed, istride, idist, onembed, ostride, odist, type,
74
74
batch, workSize)
75
75
end
76
76
77
77
function cufftEstimate1d (nx, type, batch, workSize)
78
- @check @runtime_ccall ((:cufftEstimate1d , libcufft), cufftResult,
78
+ @check @runtime_ccall ((:cufftEstimate1d , libcufft[] ), cufftResult,
79
79
(Cint, cufftType, Cint, Ptr{Csize_t}),
80
80
nx, type, batch, workSize)
81
81
end
82
82
83
83
function cufftEstimate2d (nx, ny, type, workSize)
84
- @check @runtime_ccall ((:cufftEstimate2d , libcufft), cufftResult,
84
+ @check @runtime_ccall ((:cufftEstimate2d , libcufft[] ), cufftResult,
85
85
(Cint, Cint, cufftType, Ptr{Csize_t}),
86
86
nx, ny, type, workSize)
87
87
end
88
88
89
89
function cufftEstimate3d (nx, ny, nz, type, workSize)
90
- @check @runtime_ccall ((:cufftEstimate3d , libcufft), cufftResult,
90
+ @check @runtime_ccall ((:cufftEstimate3d , libcufft[] ), cufftResult,
91
91
(Cint, Cint, Cint, cufftType, Ptr{Csize_t}),
92
92
nx, ny, nz, type, workSize)
93
93
end
94
94
95
95
function cufftEstimateMany (rank, n, inembed, istride, idist, onembed, ostride, odist, type,
96
96
batch, workSize)
97
- @check @runtime_ccall ((:cufftEstimateMany , libcufft), cufftResult,
97
+ @check @runtime_ccall ((:cufftEstimateMany , libcufft[] ), cufftResult,
98
98
(Cint, Ptr{Cint}, Ptr{Cint}, Cint, Cint, Ptr{Cint}, Cint, Cint,
99
99
cufftType, Cint, Ptr{Csize_t}),
100
100
rank, n, inembed, istride, idist, onembed, ostride, odist, type, batch,
101
101
workSize)
102
102
end
103
103
104
104
function cufftCreate (handle)
105
- @check @runtime_ccall ((:cufftCreate , libcufft), cufftResult,
105
+ @check @runtime_ccall ((:cufftCreate , libcufft[] ), cufftResult,
106
106
(Ptr{cufftHandle},),
107
107
handle)
108
108
end
109
109
110
110
function cufftGetSize1d (handle, nx, type, batch, workSize)
111
- @check @runtime_ccall ((:cufftGetSize1d , libcufft), cufftResult,
111
+ @check @runtime_ccall ((:cufftGetSize1d , libcufft[] ), cufftResult,
112
112
(cufftHandle, Cint, cufftType, Cint, Ptr{Csize_t}),
113
113
handle, nx, type, batch, workSize)
114
114
end
115
115
116
116
function cufftGetSize2d (handle, nx, ny, type, workSize)
117
- @check @runtime_ccall ((:cufftGetSize2d , libcufft), cufftResult,
117
+ @check @runtime_ccall ((:cufftGetSize2d , libcufft[] ), cufftResult,
118
118
(cufftHandle, Cint, Cint, cufftType, Ptr{Csize_t}),
119
119
handle, nx, ny, type, workSize)
120
120
end
121
121
122
122
function cufftGetSize3d (handle, nx, ny, nz, type, workSize)
123
- @check @runtime_ccall ((:cufftGetSize3d , libcufft), cufftResult,
123
+ @check @runtime_ccall ((:cufftGetSize3d , libcufft[] ), cufftResult,
124
124
(cufftHandle, Cint, Cint, Cint, cufftType, Ptr{Csize_t}),
125
125
handle, nx, ny, nz, type, workSize)
126
126
end
127
127
128
128
function cufftGetSizeMany (handle, rank, n, inembed, istride, idist, onembed, ostride,
129
129
odist, type, batch, workArea)
130
- @check @runtime_ccall ((:cufftGetSizeMany , libcufft), cufftResult,
130
+ @check @runtime_ccall ((:cufftGetSizeMany , libcufft[] ), cufftResult,
131
131
(cufftHandle, Cint, Ptr{Cint}, Ptr{Cint}, Cint, Cint, Ptr{Cint}, Cint,
132
132
Cint, cufftType, Cint, Ptr{Csize_t}),
133
133
handle, rank, n, inembed, istride, idist, onembed, ostride, odist, type,
134
134
batch, workArea)
135
135
end
136
136
137
137
function cufftGetSize (handle, workSize)
138
- @check @runtime_ccall ((:cufftGetSize , libcufft), cufftResult,
138
+ @check @runtime_ccall ((:cufftGetSize , libcufft[] ), cufftResult,
139
139
(cufftHandle, Ptr{Csize_t}),
140
140
handle, workSize)
141
141
end
142
142
143
143
function cufftSetWorkArea (plan, workArea)
144
- @check @runtime_ccall ((:cufftSetWorkArea , libcufft), cufftResult,
144
+ @check @runtime_ccall ((:cufftSetWorkArea , libcufft[] ), cufftResult,
145
145
(cufftHandle, CuPtr{Cvoid}),
146
146
plan, workArea)
147
147
end
148
148
149
149
function cufftSetAutoAllocation (plan, autoAllocate)
150
- @check @runtime_ccall ((:cufftSetAutoAllocation , libcufft), cufftResult,
150
+ @check @runtime_ccall ((:cufftSetAutoAllocation , libcufft[] ), cufftResult,
151
151
(cufftHandle, Cint),
152
152
plan, autoAllocate)
153
153
end
154
154
155
155
function cufftExecC2C (plan, idata, odata, direction)
156
- @check @runtime_ccall ((:cufftExecC2C , libcufft), cufftResult,
156
+ @check @runtime_ccall ((:cufftExecC2C , libcufft[] ), cufftResult,
157
157
(cufftHandle, CuPtr{cufftComplex}, CuPtr{cufftComplex}, Cint),
158
158
plan, idata, odata, direction)
159
159
end
160
160
161
161
function cufftExecR2C (plan, idata, odata)
162
- @check @runtime_ccall ((:cufftExecR2C , libcufft), cufftResult,
162
+ @check @runtime_ccall ((:cufftExecR2C , libcufft[] ), cufftResult,
163
163
(cufftHandle, CuPtr{cufftReal}, CuPtr{cufftComplex}),
164
164
plan, idata, odata)
165
165
end
166
166
167
167
function cufftExecC2R (plan, idata, odata)
168
- @check @runtime_ccall ((:cufftExecC2R , libcufft), cufftResult,
168
+ @check @runtime_ccall ((:cufftExecC2R , libcufft[] ), cufftResult,
169
169
(cufftHandle, CuPtr{cufftComplex}, CuPtr{cufftReal}),
170
170
plan, idata, odata)
171
171
end
172
172
173
173
function cufftExecZ2Z (plan, idata, odata, direction)
174
- @check @runtime_ccall ((:cufftExecZ2Z , libcufft), cufftResult,
174
+ @check @runtime_ccall ((:cufftExecZ2Z , libcufft[] ), cufftResult,
175
175
(cufftHandle, CuPtr{cufftDoubleComplex}, CuPtr{cufftDoubleComplex}, Cint),
176
176
plan, idata, odata, direction)
177
177
end
178
178
179
179
function cufftExecD2Z (plan, idata, odata)
180
- @check @runtime_ccall ((:cufftExecD2Z , libcufft), cufftResult,
180
+ @check @runtime_ccall ((:cufftExecD2Z , libcufft[] ), cufftResult,
181
181
(cufftHandle, CuPtr{cufftDoubleReal}, CuPtr{cufftDoubleComplex}),
182
182
plan, idata, odata)
183
183
end
184
184
185
185
function cufftExecZ2D (plan, idata, odata)
186
- @check @runtime_ccall ((:cufftExecZ2D , libcufft), cufftResult,
186
+ @check @runtime_ccall ((:cufftExecZ2D , libcufft[] ), cufftResult,
187
187
(cufftHandle, CuPtr{cufftDoubleComplex}, CuPtr{cufftDoubleReal}),
188
188
plan, idata, odata)
189
189
end
190
190
191
191
function cufftSetStream (plan, stream)
192
- @check @runtime_ccall ((:cufftSetStream , libcufft), cufftResult,
192
+ @check @runtime_ccall ((:cufftSetStream , libcufft[] ), cufftResult,
193
193
(cufftHandle, CUstream),
194
194
plan, stream)
195
195
end
196
196
197
197
function cufftDestroy (plan)
198
- @check @runtime_ccall ((:cufftDestroy , libcufft), cufftResult,
198
+ @check @runtime_ccall ((:cufftDestroy , libcufft[] ), cufftResult,
199
199
(cufftHandle,),
200
200
plan)
201
201
end
202
202
203
203
function cufftGetVersion (version)
204
- @check @runtime_ccall ((:cufftGetVersion , libcufft), cufftResult,
204
+ @check @runtime_ccall ((:cufftGetVersion , libcufft[] ), cufftResult,
205
205
(Ptr{Cint},),
206
206
version)
207
207
end
208
208
209
209
function cufftGetProperty (type, value)
210
- @check @runtime_ccall ((:cufftGetProperty , libcufft), cufftResult,
210
+ @check @runtime_ccall ((:cufftGetProperty , libcufft[] ), cufftResult,
211
211
(libraryPropertyType, Ptr{Cint}),
212
212
type, value)
213
213
end
0 commit comments