(Nov-17-2021, 08:29 PM)Skaperen Wrote: i read that some of numpy is written in C. i want to compile that code myselfThere are a mix also use some FORTRAN code used,so need a FORTRAN 77 compiler installed.
There is documentation about this if you had search Building NumPy from source
Numba is also really good,eg just add
parallel=True
and it will use all your CPU cores or GPU cores.Portable Compilation Wrote:Ship high performance Python applications without the headache of binary compilation and packaging.
Your source code remains pure Python while Numba handles the compilation at runtime.
We test Numba continuously in more than 200 different platform configurations.
Numba supports Intel and AMD x86, POWER8/9, and ARM CPUs, NVIDIA and AMD GPUs, Python 3.6-3.9, as well as Windows/macOS/Linux.
Precompiled Numba binaries for most systems are available as conda packages and pip-installable wheels.