253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
|
# File 'ext/cumo/cuda/driver.c', line 253
static VALUE
rb_cuModuleGetFunction(VALUE self, VALUE hmod, VALUE name)
{
CUfunction _hfunc;
CUmodule _hmod = (CUmodule)NUM2SIZET(hmod);
const char* _name = RSTRING_PTR(name);
CUresult status;
struct cuModuleGetFunctionParam param = {&_hfunc, _hmod, _name};
status = (CUresult)rb_thread_call_without_gvl(cuModuleGetFunction_without_gvl_cb, ¶m, NULL, NULL);
//status = cuModuleGetFunction(&_hfunc, _hmod, _name);
check_status(status);
return SIZET2NUM((size_t)_hfunc);
}
|