nsakabe-fixstars
nsakabe-fixstars
@vorj said (Sep 13th at 5:45:12 PM): > これちゃんと対応しようとするとultimaと同じようにAST相当を別途内部で保持しておいて、typedefのマップも持って、最後に一気に出力するようなコードに落ち着きそう > 構造体定義よりtypedefが先行する可能性もある
* `clpy.core.core.ndarray.argsort` * `clpy.core.core.ndarray.sort` * `AttributeError: module 'clpy' has no attribute 'partition'` * `AttributeError: module 'clpy' has no attribute 'argpartition'` * `AttributeError: module 'clpy' has no attribute 'msort'`
We need to substitute `thrust` with something.
バイトニックソートを使うなら: * 要素数をたしかめて2ベキじゃないなら * 2ベキまでバッファを拡張(というか移動/コピー) * 要素の型に応じたパディング値をつめる * ソート * パディング部分を捨てて返す 大変めんどいですね… `thrust` はどうしているんだろう
I implemented a simple example of _in-workgroup_ bitonic sort and merging, and going to integrate it into clpy.
- [x] sort - [ ] argsort - [ ] lexsort - [ ] partition - [ ] argpartition
test_decomposition.py, test_eigenvalue.py, test_norms.py, test_solve.py: * CUSolver ---- test_product.py: * needs `dgemm` via * `clpy.inner` * `clpy.kron` * `clpy.outer` `test_product.py` was confirmed to work well by enabling them after `dgemm` implemented:...
Still needs substitution for... test_decomposition.py, test_eigenvalue.py, test_norms.py, test_solve.py: * cuSOLVER
``` > csr1 = clpy.sparse.csr_matrix((5, 3), dtype=numpy.float32) E AttributeError: module 'clpy.sparse' has no attribute 'csr_matrix' ```
Latest CuPy uses * {s,d}geam (core/core.pyx) - doesn't exists in clBlast * {c,z}gemm (core/core.pyx) * {s,d,c,z}trsm (linalg/solve.py) * gemmEx (core/core.pyx) * {s,d,c,z}gemmStridedBatched (core/core.pyx) - exists in clBlast