Progress of CUDA kernelize (Feature point of View)
sonots opened this issue · 1 comments
sonots commented
Store
- store(another_array)
- fill(item)
- seq([begin, step]), indgen
- logseq(begin, step [,base])
- eye([element, offset])
- rand([[low,] high])
Data Creation
- Cumo::DFloat[1,2,3,5,7,11]
- Cumo::DFloat[1..100]
- Cumo::DFloat.cast(Cumo::Int32[1,2,3,5,7,11])
- Cumo::DFloat.zeros(120)
- Cumo::DFloat.ones(2,4,6)
- Cumo::DFloat.linspace(-5,5,7)
- Cumo::DFloat.logspace(4,0,5,2)
Indexing
- a[1,2,3] (synchronizes, though)
- a[39] (synchronizes, though)
View
Reshape
- flatten([dim0,dim1,...])
- transpose([dim0,dim1,...])
- expand_dims(dim)
- diagonal(offset, [ax1,ax2])
- reshape
Operations
- + (binary)
- - (binary)
- * (binary)
- / (binary)
- % (binary)
- divmod (binary2)
- ** (pow)
- -@ (unary_s)
- abs (unary2)
All of upcast, broadcast, coerce, inplace operations are supported by numo #framework.
Condition and Bit
narray
- eq (binary)
- ne (binary)
- gt (>) (cond_binary)
- ge (>=) (cond_binary)
- lt (<) (cond_binary)
- le (<=) (cond_binary)
- neary_eq (cond_unary)
- isnan (cond_unary)
- isinf (cond_unary)
- isfinite (cond_unary)
Bit
- and (&)
- or (|)
- xor (^)
- not (~)
- count_true
- count_false
- all?
- any?
- none?
- where
Statistics
- sum
- prod
- mean
- stddev
- var
- rms
- min
- min_index
- max
- max_index
- minmax
- cumsum
- cumprod
- sort
- sort_index
- median
Math
https://github.com/ruby-numo/narray/wiki/Numo::NArray%E6%A6%82%E8%A6%81#nmath
unary functions
- reciprocal
- sign
- square
- floor (float)
- round (float)
- ceil (float)
- trunc (float)
- rint (float)
- conj (complex)
- im (complex)
- sqrt
- pow
- exp
- log
- 三角関数
sonots commented
For red-chainer mnist:
- Warning: Method "rand" for dtype "dfloat" is running under CPU.
- Warning: Method "dfloat" for dtype "DFloat" is running under CPU.
- Warning: Method "array" for dtype "int32" is running under CPU.
- Warning: Method "uint8" for dtype "UInt8" is running under CPU.
- Warning: Method "uint8" for dtype "UInt8" is running under CPU.
- Warning: Method "array" for dtype "int64" is running under CPU.
- Warning: Method "array" for dtype "dfloat" is running under CPU.
- Warning: Method "rand_norm" for dtype "dfloat" is running under CPU.
- Warning: Method "le" for dtype "dfloat" is running under CPU.
- Warning: Method "int64" for dtype "Int64" is running under CPU.
- Warning: Method "int32" for dtype "Int32" is running under CPU.
- Warning: Method "lt" for dtype "int32" is running under CPU.
- Warning: Method "seq" for dtype "int32" is running under CPU.
- Warning: Method "int32" for dtype "Int32" is running under CPU.
- Warning: Method "eq" for dtype "dfloat" is running under CPU.
- Warning: Method "ne" for dtype "int32" is running under CPU.
- Warning: Method "max_index" for dtype "dfloat" is running under CPU.
- Warning: Method "int32" for dtype "Int32" is running under CPU.
- Warning: Method "bit" for dtype "Bit" is running under CPU.
- Warning: Method "gt" for dtype "dfloat" is running under CPU.