|
|
|
|
|
by nicwilson
3154 days ago
|
|
IDK about Cython, but I remember a blog post using Python's AST reflection to jit to LLVM ->NVPTX -> PTX. It's relatively simple to do, I've done it for LDC/D/DCompute[1,2,3]. It's a little tricker if you want to be able to express shared memory surfaces & textures, but it should still be doable. [1] https://github.com/ldc-developers/ldc
[2] dlang.org
[3] http://github.com/libmir/dcompute |
|