Numba Explained in 30 Minutes - The Python and Numpy Compiler

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024
  • Learn about Numba - the Python and Numpy compiler. This tutorial will explain how Numba works, and when and how to use it for numerical algorithms, focusing on how to get very good performance on the CPU.
    Make Python code 1000x Faster with Numba
    ☞ morioh.com/p/0...
    Python Programming Tutorial - Full Course for Beginners
    ☞ morioh.com/p/c...
    Python NumPy Tutorial for Beginners
    ☞ morioh.com/p/e...
    Do you have numerical code written in Python and Numpy? Do you wish it ran faster, using the full potential of your CPU?
    Then you should try Numba, a JIT compiler that translates a subset of Python and Numpy code into fast machine code.
    This talk will explain how Numba works, and when and how to use it for numerical algorithms, focusing on how to get very good performance on the CPU.
    To understand this talk, only a basic knowledge of Python and Numpy is needed.
    You will learn how Python compiles functions to bytecode and how Numba compiles bytecode to machine code. Why algorithms implemented using Numpy sometimes don't yield great performance, and how to do better using Numba. You will learn about the @numba.jit and @numba.vectorize decorators and how to create functions that use the CPU well by using e.g. multi-threading (several CPU cores), vector instructions (single instruction multiple data) and fast math (trade float accuracy for speed).
    You will also learn when it does and doesn't make sense to use Numba, by contrasting it briefly with some other options for high-performance computing from Python: PyPy, C, C++, Cython, Numexpr, Dask, PyTorch, Tensorflow and Google JAX
    #Numba #Python #Morioh
    PUBLICATION PERMISSIONS:
    Original video was published with the Creative Commons Attribution license (reuse allowed).
    Link: • Christoph Deil - Under...
    Note: If you have any copyright issue with the content used in our channel or you find something that belongs to you, before you claim it to TH-cam, SEND US A MESSAGE and the respective content will be DELETED right away. Thanks for understanding.
    ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
    👕 Merchandise: www.moteefe.co...
    🌎 Social Network for Developers: morioh.com/

ความคิดเห็น • 4

  • @hansdietrich1496
    @hansdietrich1496 ปีที่แล้ว +2

    numba is great. Using it for years already.

  • @smanzoli
    @smanzoli ปีที่แล้ว +2

    What I love more in numba is not even jit, it´s CUDA

  • @JonitoFischer
    @JonitoFischer 20 วันที่ผ่านมา

    It is AMD ROCm kernels, not ARM...