@@ -141,181 +141,184 @@ const curandMethod_t = curandMethod
141
141
142
142
@checked function curandCreateGenerator (generator, rng_type)
143
143
initialize_context ()
144
- @ccall libcurand. curandCreateGenerator (generator:: Ptr{curandGenerator_t} ,
145
- rng_type:: curandRngType_t ):: curandStatus_t
144
+ @gcsafe_ccall libcurand. curandCreateGenerator (generator:: Ptr{curandGenerator_t} ,
145
+ rng_type:: curandRngType_t ):: curandStatus_t
146
146
end
147
147
148
148
@checked function curandCreateGeneratorHost (generator, rng_type)
149
149
initialize_context ()
150
- @ccall libcurand. curandCreateGeneratorHost (generator:: Ptr{curandGenerator_t} ,
151
- rng_type:: curandRngType_t ):: curandStatus_t
150
+ @gcsafe_ccall libcurand. curandCreateGeneratorHost (generator:: Ptr{curandGenerator_t} ,
151
+ rng_type:: curandRngType_t ):: curandStatus_t
152
152
end
153
153
154
154
@checked function curandDestroyGenerator (generator)
155
155
initialize_context ()
156
- @ccall libcurand. curandDestroyGenerator (generator:: curandGenerator_t ):: curandStatus_t
156
+ @gcsafe_ccall libcurand. curandDestroyGenerator (generator:: curandGenerator_t ):: curandStatus_t
157
157
end
158
158
159
159
@checked function curandGetVersion (version)
160
- @ccall libcurand. curandGetVersion (version:: Ptr{Cint} ):: curandStatus_t
160
+ @gcsafe_ccall libcurand. curandGetVersion (version:: Ptr{Cint} ):: curandStatus_t
161
161
end
162
162
163
163
@checked function curandGetProperty (type, value)
164
- @ccall libcurand. curandGetProperty (type:: libraryPropertyType ,
165
- value:: Ptr{Cint} ):: curandStatus_t
164
+ @gcsafe_ccall libcurand. curandGetProperty (type:: libraryPropertyType ,
165
+ value:: Ptr{Cint} ):: curandStatus_t
166
166
end
167
167
168
168
@checked function curandSetStream (generator, stream)
169
169
initialize_context ()
170
- @ccall libcurand. curandSetStream (generator:: curandGenerator_t ,
171
- stream:: cudaStream_t ):: curandStatus_t
170
+ @gcsafe_ccall libcurand. curandSetStream (generator:: curandGenerator_t ,
171
+ stream:: cudaStream_t ):: curandStatus_t
172
172
end
173
173
174
174
@checked function curandSetPseudoRandomGeneratorSeed (generator, seed)
175
175
initialize_context ()
176
- @ccall libcurand. curandSetPseudoRandomGeneratorSeed (generator:: curandGenerator_t ,
177
- seed:: Culonglong ):: curandStatus_t
176
+ @gcsafe_ccall libcurand. curandSetPseudoRandomGeneratorSeed (generator:: curandGenerator_t ,
177
+ seed:: Culonglong ):: curandStatus_t
178
178
end
179
179
180
180
@checked function curandSetGeneratorOffset (generator, offset)
181
181
initialize_context ()
182
- @ccall libcurand. curandSetGeneratorOffset (generator:: curandGenerator_t ,
183
- offset:: Culonglong ):: curandStatus_t
182
+ @gcsafe_ccall libcurand. curandSetGeneratorOffset (generator:: curandGenerator_t ,
183
+ offset:: Culonglong ):: curandStatus_t
184
184
end
185
185
186
186
@checked function curandSetGeneratorOrdering (generator, order)
187
187
initialize_context ()
188
- @ccall libcurand. curandSetGeneratorOrdering (generator:: curandGenerator_t ,
189
- order:: curandOrdering_t ):: curandStatus_t
188
+ @gcsafe_ccall libcurand. curandSetGeneratorOrdering (generator:: curandGenerator_t ,
189
+ order:: curandOrdering_t ):: curandStatus_t
190
190
end
191
191
192
192
@checked function curandSetQuasiRandomGeneratorDimensions (generator, num_dimensions)
193
193
initialize_context ()
194
- @ccall libcurand. curandSetQuasiRandomGeneratorDimensions (generator:: curandGenerator_t ,
195
- num_dimensions:: Cuint ):: curandStatus_t
194
+ @gcsafe_ccall libcurand. curandSetQuasiRandomGeneratorDimensions (generator:: curandGenerator_t ,
195
+ num_dimensions:: Cuint ):: curandStatus_t
196
196
end
197
197
198
198
@checked function curandGenerate (generator, outputPtr, num)
199
199
initialize_context ()
200
- @ccall libcurand. curandGenerate (generator:: curandGenerator_t , outputPtr:: CuPtr{UInt32} ,
201
- num:: Csize_t ):: curandStatus_t
200
+ @gcsafe_ccall libcurand. curandGenerate (generator:: curandGenerator_t ,
201
+ outputPtr:: CuPtr{UInt32} ,
202
+ num:: Csize_t ):: curandStatus_t
202
203
end
203
204
204
205
@checked function curandGenerateLongLong (generator, outputPtr, num)
205
206
initialize_context ()
206
- @ccall libcurand. curandGenerateLongLong (generator:: curandGenerator_t ,
207
- outputPtr:: CuPtr{Culonglong} ,
208
- num:: Csize_t ):: curandStatus_t
207
+ @gcsafe_ccall libcurand. curandGenerateLongLong (generator:: curandGenerator_t ,
208
+ outputPtr:: CuPtr{Culonglong} ,
209
+ num:: Csize_t ):: curandStatus_t
209
210
end
210
211
211
212
@checked function curandGenerateUniform (generator, outputPtr, num)
212
213
initialize_context ()
213
- @ccall libcurand. curandGenerateUniform (generator:: curandGenerator_t ,
214
- outputPtr:: CuPtr{Cfloat} ,
215
- num:: Csize_t ):: curandStatus_t
214
+ @gcsafe_ccall libcurand. curandGenerateUniform (generator:: curandGenerator_t ,
215
+ outputPtr:: CuPtr{Cfloat} ,
216
+ num:: Csize_t ):: curandStatus_t
216
217
end
217
218
218
219
@checked function curandGenerateUniformDouble (generator, outputPtr, num)
219
220
initialize_context ()
220
- @ccall libcurand. curandGenerateUniformDouble (generator:: curandGenerator_t ,
221
- outputPtr:: CuPtr{Cdouble} ,
222
- num:: Csize_t ):: curandStatus_t
221
+ @gcsafe_ccall libcurand. curandGenerateUniformDouble (generator:: curandGenerator_t ,
222
+ outputPtr:: CuPtr{Cdouble} ,
223
+ num:: Csize_t ):: curandStatus_t
223
224
end
224
225
225
226
@checked function curandGenerateNormal (generator, outputPtr, n, mean, stddev)
226
227
initialize_context ()
227
- @ccall libcurand. curandGenerateNormal (generator:: curandGenerator_t ,
228
- outputPtr:: CuPtr{Cfloat} , n:: Csize_t ,
229
- mean:: Cfloat , stddev:: Cfloat ):: curandStatus_t
228
+ @gcsafe_ccall libcurand. curandGenerateNormal (generator:: curandGenerator_t ,
229
+ outputPtr:: CuPtr{Cfloat} , n:: Csize_t ,
230
+ mean:: Cfloat ,
231
+ stddev:: Cfloat ):: curandStatus_t
230
232
end
231
233
232
234
@checked function curandGenerateNormalDouble (generator, outputPtr, n, mean, stddev)
233
235
initialize_context ()
234
- @ccall libcurand. curandGenerateNormalDouble (generator:: curandGenerator_t ,
235
- outputPtr:: CuPtr{Cdouble} , n :: Csize_t ,
236
- mean:: Cdouble ,
237
- stddev:: Cdouble ):: curandStatus_t
236
+ @gcsafe_ccall libcurand. curandGenerateNormalDouble (generator:: curandGenerator_t ,
237
+ outputPtr:: CuPtr{Cdouble} ,
238
+ n :: Csize_t , mean:: Cdouble ,
239
+ stddev:: Cdouble ):: curandStatus_t
238
240
end
239
241
240
242
@checked function curandGenerateLogNormal (generator, outputPtr, n, mean, stddev)
241
243
initialize_context ()
242
- @ccall libcurand. curandGenerateLogNormal (generator:: curandGenerator_t ,
243
- outputPtr:: CuPtr{Cfloat} , n:: Csize_t ,
244
- mean:: Cfloat , stddev:: Cfloat ):: curandStatus_t
244
+ @gcsafe_ccall libcurand. curandGenerateLogNormal (generator:: curandGenerator_t ,
245
+ outputPtr:: CuPtr{Cfloat} , n:: Csize_t ,
246
+ mean:: Cfloat ,
247
+ stddev:: Cfloat ):: curandStatus_t
245
248
end
246
249
247
250
@checked function curandGenerateLogNormalDouble (generator, outputPtr, n, mean, stddev)
248
251
initialize_context ()
249
- @ccall libcurand. curandGenerateLogNormalDouble (generator:: curandGenerator_t ,
250
- outputPtr:: CuPtr{Cdouble} , n :: Csize_t ,
251
- mean:: Cdouble ,
252
- stddev:: Cdouble ):: curandStatus_t
252
+ @gcsafe_ccall libcurand. curandGenerateLogNormalDouble (generator:: curandGenerator_t ,
253
+ outputPtr:: CuPtr{Cdouble} ,
254
+ n :: Csize_t , mean:: Cdouble ,
255
+ stddev:: Cdouble ):: curandStatus_t
253
256
end
254
257
255
258
@checked function curandCreatePoissonDistribution (lambda, discrete_distribution)
256
259
initialize_context ()
257
- @ccall libcurand. curandCreatePoissonDistribution (lambda:: Cdouble ,
258
- discrete_distribution:: Ptr{curandDiscreteDistribution_t} ):: curandStatus_t
260
+ @gcsafe_ccall libcurand. curandCreatePoissonDistribution (lambda:: Cdouble ,
261
+ discrete_distribution:: Ptr{curandDiscreteDistribution_t} ):: curandStatus_t
259
262
end
260
263
261
264
@checked function curandDestroyDistribution (discrete_distribution)
262
265
initialize_context ()
263
- @ccall libcurand. curandDestroyDistribution (discrete_distribution:: curandDiscreteDistribution_t ):: curandStatus_t
266
+ @gcsafe_ccall libcurand. curandDestroyDistribution (discrete_distribution:: curandDiscreteDistribution_t ):: curandStatus_t
264
267
end
265
268
266
269
@checked function curandGeneratePoisson (generator, outputPtr, n, lambda)
267
270
initialize_context ()
268
- @ccall libcurand. curandGeneratePoisson (generator:: curandGenerator_t ,
269
- outputPtr:: CuPtr{UInt32} , n:: Csize_t ,
270
- lambda:: Cdouble ):: curandStatus_t
271
+ @gcsafe_ccall libcurand. curandGeneratePoisson (generator:: curandGenerator_t ,
272
+ outputPtr:: CuPtr{UInt32} , n:: Csize_t ,
273
+ lambda:: Cdouble ):: curandStatus_t
271
274
end
272
275
273
276
@checked function curandGeneratePoissonMethod (generator, outputPtr, n, lambda, method)
274
277
initialize_context ()
275
- @ccall libcurand. curandGeneratePoissonMethod (generator:: curandGenerator_t ,
276
- outputPtr:: CuPtr{UInt32} , n :: Csize_t ,
277
- lambda:: Cdouble ,
278
- method:: curandMethod_t ):: curandStatus_t
278
+ @gcsafe_ccall libcurand. curandGeneratePoissonMethod (generator:: curandGenerator_t ,
279
+ outputPtr:: CuPtr{UInt32} ,
280
+ n :: Csize_t , lambda:: Cdouble ,
281
+ method:: curandMethod_t ):: curandStatus_t
279
282
end
280
283
281
284
@checked function curandGenerateBinomial (generator, outputPtr, num, n, p)
282
285
initialize_context ()
283
- @ccall libcurand. curandGenerateBinomial (generator:: curandGenerator_t ,
284
- outputPtr:: CuPtr{UInt32} , num:: Csize_t ,
285
- n:: Cuint , p:: Cdouble ):: curandStatus_t
286
+ @gcsafe_ccall libcurand. curandGenerateBinomial (generator:: curandGenerator_t ,
287
+ outputPtr:: CuPtr{UInt32} , num:: Csize_t ,
288
+ n:: Cuint , p:: Cdouble ):: curandStatus_t
286
289
end
287
290
288
291
@checked function curandGenerateBinomialMethod (generator, outputPtr, num, n, p, method)
289
292
initialize_context ()
290
- @ccall libcurand. curandGenerateBinomialMethod (generator:: curandGenerator_t ,
291
- outputPtr:: CuPtr{UInt32} , num :: Csize_t ,
292
- n:: Cuint , p:: Cdouble ,
293
- method:: curandMethod_t ):: curandStatus_t
293
+ @gcsafe_ccall libcurand. curandGenerateBinomialMethod (generator:: curandGenerator_t ,
294
+ outputPtr:: CuPtr{UInt32} ,
295
+ num :: Csize_t , n:: Cuint , p:: Cdouble ,
296
+ method:: curandMethod_t ):: curandStatus_t
294
297
end
295
298
296
299
@checked function curandGenerateSeeds (generator)
297
300
initialize_context ()
298
- @ccall libcurand. curandGenerateSeeds (generator:: curandGenerator_t ):: curandStatus_t
301
+ @gcsafe_ccall libcurand. curandGenerateSeeds (generator:: curandGenerator_t ):: curandStatus_t
299
302
end
300
303
301
304
@checked function curandGetDirectionVectors32 (vectors, set)
302
305
initialize_context ()
303
- @ccall libcurand. curandGetDirectionVectors32 (vectors:: Ptr{Ptr{curandDirectionVectors32_t}} ,
304
- set:: curandDirectionVectorSet_t ):: curandStatus_t
306
+ @gcsafe_ccall libcurand. curandGetDirectionVectors32 (vectors:: Ptr{Ptr{curandDirectionVectors32_t}} ,
307
+ set:: curandDirectionVectorSet_t ):: curandStatus_t
305
308
end
306
309
307
310
@checked function curandGetScrambleConstants32 (constants)
308
311
initialize_context ()
309
- @ccall libcurand. curandGetScrambleConstants32 (constants:: Ptr{Ptr{Cuint}} ):: curandStatus_t
312
+ @gcsafe_ccall libcurand. curandGetScrambleConstants32 (constants:: Ptr{Ptr{Cuint}} ):: curandStatus_t
310
313
end
311
314
312
315
@checked function curandGetDirectionVectors64 (vectors, set)
313
316
initialize_context ()
314
- @ccall libcurand. curandGetDirectionVectors64 (vectors:: Ptr{Ptr{curandDirectionVectors64_t}} ,
315
- set:: curandDirectionVectorSet_t ):: curandStatus_t
317
+ @gcsafe_ccall libcurand. curandGetDirectionVectors64 (vectors:: Ptr{Ptr{curandDirectionVectors64_t}} ,
318
+ set:: curandDirectionVectorSet_t ):: curandStatus_t
316
319
end
317
320
318
321
@checked function curandGetScrambleConstants64 (constants)
319
322
initialize_context ()
320
- @ccall libcurand. curandGetScrambleConstants64 (constants:: Ptr{Ptr{Culonglong}} ):: curandStatus_t
323
+ @gcsafe_ccall libcurand. curandGetScrambleConstants64 (constants:: Ptr{Ptr{Culonglong}} ):: curandStatus_t
321
324
end
0 commit comments