Python extension language using accelerators
1–9 of 9 posts
Re: Python extension language using accelerators
#2Pyccel's main goal is to resolve the principal bottleneck in scientific computing: the transition from prototype to production. Programmers usually develop their prototype code in a user-friendly interactive language like Python, but their final application requires an HPC implementation and therefore a new production code. In most cases this is written in a statically compiled language like Fortran/C/C++, and it uses SIMD vectorization, parallel multi-threading, MPI parallelization, GPU offloading, etc.
Sounds interesting!
Re: Python extension language using accelerators
#3Re: Python extension language using accelerators
#4The two other related projects I know are Numba and Cython. Worth checking them out as well.
Pyston I was able to get a 15% increase in speed out of the box. PyPy I could not get to work with my project (numpy/pandas/ta-lib), I finally got everything to compile but it blew through my 32 gigs in 10 seconds and crashed.
Pyccel, Cython, Numba and Rapids I have yet to try but am interested in anyones experience.
Re: Python extension language using accelerators
#5The two other related projects I know are Numba and Cython. Worth checking them out as well.
Some similar projects are Pyston , PyPy and Rapids.ai Pyston I was able to get a 15% increase in speed out of the box. PyPy I could not get to work with my project (numpy/pandas/ta-lib), I finally got everything to compile but it blew through my 32 gigs in 10 seconds and crashed. Pyccel, Cython, Numba and Rapids I have yet to try but am interested in anyones experience.
Re: Python extension language using accelerators
#6The two other related projects I know are Numba and Cython. Worth checking them out as well.
Re: Python extension language using accelerators
#7The two other related projects I know are Numba and Cython. Worth checking them out as well.
Re: Python extension language using accelerators
#8The two other related projects I know are Numba and Cython. Worth checking them out as well.
Some similar projects are Pyston , PyPy and Rapids.ai Pyston I was able to get a 15% increase in speed out of the box. PyPy I could not get to work with my project (numpy/pandas/ta-lib), I finally got everything to compile but it blew through my 32 gigs in 10 seconds and crashed. Pyccel, Cython, Numba and Rapids I have yet to try but am interested in anyones experience.
ultimately, i'd probably look at julia or maybe rust if i was building something from scratch these days though. i'll also note that adding numba to a project is a pretty heavyweight proposition (you are, afterall, adding llvm to your project).
Re: Python extension language using accelerators
#9The two other related projects I know are Numba and Cython. Worth checking them out as well.
Cython is so great. The two easiest ways I know to speed up python are 1) can I write this arraywise with enough cleverness (it's much more frequently doable than I always expect, and often comes with clarity gains) and just use numpy, and 2) just use cython. If cython wasn't such a pain in the ass to debug, maybe we'd all be writing cython instead of python today.
In most cases figuring out how to do it with nutty numpy is the least time consuming and is fast enough.