Installing Numba Python accelerator

Install Numba

conda install numba

or

python -m pip install numba

Use the Numba docs for easy examples. I also have Numba benchmarking code including PyCUDA

Details

Numba uses LLVMlite to JIT compile unmodified Python code.

  • ensure your code is actually accelerated with option
    @jit(nopython=True) 
    

    which will error if the code is not acceleratable.

Leave a Comment