Module: Cumo
- Defined in:
- lib/cumo/linalg.rb,
lib/cumo/cuda.rb,
lib/cumo/cuda/cudnn.rb,
lib/cumo/cuda/cudnn.rb,
lib/cumo/narray/extra.rb,
ext/cumo/cumo.c,
ext/cumo/cuda/cudnn.c,
ext/cumo/cuda/nvrtc.c,
ext/cumo/cuda/cublas.c,
ext/cumo/cuda/driver.c,
ext/cumo/cuda/runtime.c,
ext/cumo/cuda/memory_pool.cpp
Overview
Provide compatibility layers with numo/linalg
Defined Under Namespace
Modules: Blas, CUDA, NMath Classes: NArray, Struct
Constant Summary collapse
- VERSION =
rb_str_new2(CUMO_VERSION)
- Cuda =
alias
mCUDA
Class Method Summary collapse
- .compatible_mode_enabled? ⇒ Object
- .disable_compatible_mode ⇒ Object
- .enable_compatible_mode ⇒ Object
Class Method Details
.compatible_mode_enabled? ⇒ Object
104 105 106 107 108 |
# File 'ext/cumo/cumo.c', line 104
static VALUE
rb_compatible_mode_enabled_p(VALUE self)
{
return (cumo_compatible_mode_enabled ? Qtrue : Qfalse);
}
|
.disable_compatible_mode ⇒ Object
91 92 93 94 95 96 97 |
# File 'ext/cumo/cumo.c', line 91
static VALUE
rb_disable_compatible_mode(VALUE self)
{
VALUE ret = (cumo_compatible_mode_enabled ? Qtrue : Qfalse);
cumo_compatible_mode_enabled = false;
return ret;
}
|
.enable_compatible_mode ⇒ Object
78 79 80 81 82 83 84 |
# File 'ext/cumo/cumo.c', line 78
static VALUE
rb_enable_compatible_mode(VALUE self)
{
VALUE ret = (cumo_compatible_mode_enabled ? Qtrue : Qfalse);
cumo_compatible_mode_enabled = true;
return ret;
}
|