home.social

#numba — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #numba, aggregated by home.social.

fetched live
  1. The config args give a pretty good summary of how I built my coin toss app (see 2/2).

    job_config (n, runs, Kb, Kbt, Lb, Kf, Kft, Lf, rK, nitro, turbo, summary, new_csv, cold_restart, multi_engine, cpu_sys, cpu_mp)

    Almost done coding multi-processing.

    A trillion coin tosses in under two hours on a 13-y-o laptop is about to become reality.

    Hand-coded all the way.

    Coin toss trends at scale look a lot like life.

    1/2

    #it #technology #science #math #linux #python #numba

  2. The config args give a pretty good summary of how I built my coin toss app (see 2/2).

    job_config (n, runs, Kb, Kbt, Lb, Kf, Kft, Lf, rK, nitro, turbo, summary, new_csv, cold_restart, multi_engine, cpu_sys, cpu_mp)

    Almost done coding multi-processing.

    A trillion coin tosses in under two hours on a 13-y-o laptop is about to become reality.

    Hand-coded all the way.

    Coin toss trends at scale look a lot like life.

    1/2

    #it #technology #science #math #linux #python #numba

  3. Почему Python + Numba обгоняет C? Эксперимент с алгоритмом прогонки

    Все знают, что C быстрее Python. Но мы провели эксперимент с алгоритмом прогонки и обнаружили, что Numba (JIT-компилятор для Python) обгоняет наивный C на 20–25%. Разбираемся, почему так происходит, и сравниваем точность float32/float64.

    habr.com/ru/articles/1012122/

    #Python #C #Numba #NumPy #производительность #алгоритмы #численные_методы #оптимизация #прогонка

  4. I just released v1.1.0 of Complexitty, my little explorer for the . This release is all about an optional method of making it faster.

    blog.davep.org/2026/02/28/comp

  5. I just released v1.1.0 of Complexitty, my little #Mandelbrot explorer for the #terminal. This release is all about an optional method of making it faster.

    #python #programming #textual #numba

    blog.davep.org/2026/02/28/comp

  6. Achieve incredible computing capabilities with our #GPU Programming workshops. We will teach you the basics knowledge of #Numba and #CuPy required to start a journey in the world of GPUs. Registration is open for GPU Programming workshop!
    esciencecenter.nl/event/gpu-pr

  7. Achieve incredible computing capabilities with our #GPU Programming workshops. We will teach you the basics knowledge of #Numba and #CuPy required to start a journey in the world of GPUs. Registration is open for GPU Programming workshop!
    esciencecenter.nl/event/gpu-pr

  8. Currently playing with adding optional support to Complexitty; my plotter for the . The speedup is okay.

    Given this zoom and position, on my M2 Mac mini, 0.8 seconds. With Numba: 0.2 seconds.

    I should give it a spin on my M2 Pro mini.

    Without Numba on my 2019 Intel MacBook Pro the same spot takes about 2 seconds.

  9. Currently playing with adding optional #Numba support to Complexitty; my #Mandelbrot plotter for the #terminal. The speedup is okay.

    Given this zoom and position, on my M2 Mac mini, 0.8 seconds. With Numba: 0.2 seconds.

    I should give it a spin on my M2 Pro mini.

    Without Numba on my 2019 Intel MacBook Pro the same spot takes about 2 seconds.

    #Python #programming

  10. A few years ago, the #ROCm backend for @numba was removed. #TIL that AMD is now actively developing a HIP backend!

    github.com/ROCm/numba-hip

    #python #numpy #numba #gpu #amd

  11. Python: Schneller als man denkt

    Beginn einer Artikelserie zum Thema schneller Python Code. Eine Einführung mit einer Auflistung verschiedener Strategien die verglichen werden.

    #Python #Cython #Numpy #Numba #Linux

    gnulinux.ch/python-schneller-a

  12. Python: Schneller als man denkt

    Beginn einer Artikelserie zum Thema schneller Python Code. Eine Einführung mit einer Auflistung verschiedener Strategien die verglichen werden.

    #Python #Cython #Numpy #Numba #Linux

    gnulinux.ch/python-schneller-a

  13. Бэктестинг торговых стратегий на Python с помощью Numba. Когда перевод расчетов на GPU действительно оправдан?

    Бэктестинг — ключевой процесс в алгоритмической торговле. Он позволяет проверить стратегию на исторических данных, прежде чем запускать её в реальной торговле. Однако, чем больше данных и сложнее логика стратегии, тем дольше времени занимают вычисления. Особенно если стратегия анализирует тиковые данные и требуется протестировать множество комбинаций гиперпараметров стратегии, время вычислений может расти экспоненциально. В этой статье мы разберем, как реализовать бэктестинг на чистом Python, посмотрим сколько времени могут занимать вычисления, а также попробуем найти разные способы оптимизации. Python, как известно — это интерпретируемый язык, что означает, что код выполняется построчно во время исполнения программы, а не компилируется в машинный код заранее, как это происходит, например, в C или C++. Это делает разработку быстрее и удобнее, так как можно сразу видеть результаты выполнения кода и легко отлаживать программы. Но этот же факт, в свою очередь, приводит к тому, что Python заметно уступает в скорости более низкоуровневым языкам. К тому же Python использует динамическую типизацию, что требует дополнительных проверок и снижает производительность и если данных очень много, это может приводить к значительным сложностям, связанным с увеличением времени вычислений. Как же использовать ту легкость и скорость разработки Python и при этом сохранить адекватное время вычислений на больших объемах данных? В этой статье мы увидим, насколько перенос вычислений на GPU может увеличить производительность вычислений.

    habr.com/ru/articles/893748/

    #python #cuda #numba #gpu #backtesting #производительность

  14. Made a python library called #pyrebel which implements the idea of abstraction of data. The idea is explained in github.com/ps-nithin/pyrebel/b. The program runs on an #nvidia #gpu and uses #numba library for using #cuda with #python . I have demo programs for image abstraction and edge detection at github.com/ps-nithin/pyrebel

    Thanks,

  15. @nen while still on Python, have you tried scientific computation speed up things like #Numba ? Also, I once saw a #Cython talk and I was almost convinced to give it a go (but I'm too lazy) :D

  16. @nen while still on Python, have you tried scientific computation speed up things like #Numba ? Also, I once saw a #Cython talk and I was almost convinced to give it a go (but I'm too lazy) :D

  17. 🚀 Parallel Python Made Easy! 🐍

    We're hosting a hands-on tutorial on PyOMP, a system bringing OpenMP parallelism to Python! By combining OpenMP directives (as strings) with Numba's JIT compiler, PyOMP taps into LLVM's OpenMP support, delivering C-like performance in Python's simplicity.

    Our participants are mastering this game-changing tool to supercharge their workflows.

    Stay tuned for updates!

    #Python #OpenMP #PyOMP #ParallelComputing #Numba #HPC

  18. For whatever is worth, a couple of comparisons for numerical tasks involving #python (all varieties, base language, #numba, #numpy) , #rstats, and (you read it correctly) #perl chrisarg.github.io/Killing-It-w... #perl has an autothreading library, #pdl that's 🔥 chrisarg.github.io/Killing-It-w...

    The Quest for Performance Part...

  19. I am doing github.com/srush/GPU-Puzzles/

    My solution for puzzle 9 "Pooling" is

    def pool_test(cuda):
    def call(out, a, size) -> None:
    shared = cuda.shared.array(TPB, numba.float32)
    i = cuda.blockIdx.x * cuda.blockDim.x + cuda.threadIdx.x
    local_i = cuda.threadIdx.x

    mysum = 0
    for j in range(max(0,i-2), i+1):
    mysum += a[j]
    out[i] = mysum

    return call

    But I doubt that this is the solution, as I don't utilize the shared memory...

    #programming #python #numba

  20. Reminder: @numba is an *excellent* accelerator for numeric computations in Python. Also, issues with Python's stability are greatly exaggerated. Case in point: I just ran my 8yo n-body benchmarks without modification:

    github.com/jni/nbody-numba

    and they were just 10% slower than the fastest C code — and that's including all the Python launch time and JIT warmup!

  21. Reminder: @numba is an *excellent* accelerator for numeric computations in Python. Also, issues with Python's stability are greatly exaggerated. Case in point: I just ran my 8yo n-body benchmarks without modification:

    github.com/jni/nbody-numba

    and they were just 10% slower than the fastest C code — and that's including all the Python launch time and JIT warmup!

    #numba #Python

  22. Trying to get github.com/pythonspeed/profila working on macOS.

    Good news: I've gotten debugger-based sampling using lldb, which means it's usable on macOS.

    Bad news: lldb is ludicrously slow. It takes 100ms to take a sample. And that's not time the program is running, that's just lldb. So if you spend 50% time in lldb, and 50% time actually running, that's 5 Hz sampling rate, not exactly the best rate for profiling.

    (For comparison, I'm easily getting 50Hz from gdb).

    #python #numba

  23. Trying to get github.com/pythonspeed/profila working on macOS.

    Good news: I've gotten debugger-based sampling using lldb, which means it's usable on macOS.

    Bad news: lldb is ludicrously slow. It takes 100ms to take a sample. And that's not time the program is running, that's just lldb. So if you spend 50% time in lldb, and 50% time actually running, that's 5 Hz sampling rate, not exactly the best rate for profiling.

    (For comparison, I'm easily getting 50Hz from gdb).

    #python #numba

  24. WARNING: Upgrading to Ubuntu 24.04 LTS (Noble Numbat) now risks system crashes, so hold off. Fixes coming soon.
    linuxiac.com/do-not-try-to-upg

    #ubuntu #numba

  25. WARNING: Upgrading to Ubuntu 24.04 LTS (Noble Numbat) now risks system crashes, so hold off. Fixes coming soon.
    linuxiac.com/do-not-try-to-upg

    #ubuntu #numba

  26. 0.13.5 is out! While not our largest release, it has something for everyone! Note, this release is the last to support
    3.9 and 1.22.

    First, ImageItem got another substantial performance boost, especially if you're using but there is a significant boost for users as well.

    A ColorMapMenu was added to ColorBarItem, allowing for users to be able to change color maps interactively instead of programmatically.

  27. Calling all pythonistas who are interested in executing code on the GPU (but haven't had an interest in learning CUDA C), come to our April MadPy gathering to learn about what @numba can do for you!

    We'll be meeting at the downtown Madison Public Library. Attendance is free and open to all. Free pizza and beverages will also be provided 🍕 🥤

    Looking forward to seeing everybody!

    madpy.com/meetups/2024/4/11/20

    #MadisonWI #MachineLearning #UWMadison #GPU #Numba #Python #CUDA

  28. We've been looking forward to a great talk from Joe Farchione on #GPU computing in #Python. It's now on our calendar for April 11th, and you should make sure it's on yours!

    Learn how to unlock the power of parallelism without the hassle of learning #CUDA

    Newcomers & beginners welcome! This event is free and open to the public

    meetup.com/madison-python/even

    #Madison #MadisonWI #UWMadison #Wisconsin #DataScience #AI #MachineLearning #numba

  29. Just announced: "GPU Programming in Python"

    Our speaker, Joe Farchione, will show us how to harness the power of parallelism with #GPU computing. We'll learn how #Python & #numba help us skip the pain of learning #CUDA #C.

    Newcomers & beginners welcome! This event is free and open to the public

    meetup.com/madison-python/even

    P.S: Sponsor us! Please reach out if you or your employer is interested in covering pizza & beverages for our group

    #Madison #MadisonWI #UWMadison #Wisconsin #DataScience

  30. So I need to write some #NumericalPython code that needs to run on large arrays and loads of times. I thought I'd test #numba, #jax and #pytorch versus a simple #numpy version. The system where I run this doesn't have GPUs, only CPUs. The results show that numba is the "winner". I expected jax and torch to be up there with it, but there's quite a bit of a difference. My code is here: gist.github.com/jgomezdans/656 Any comments welcomed!

  31. The best days are when you can learn something new! Today, the @eScienceCenter is filled with participants wanting to gain first-hand experience in learning how to use #Python and #CUDA to program #GPUs! They'll even become familiar with libraries such as #CuPy and #NUMBA to accelerate Python code.

  32. Achieve incredible computing capabilities with our #GPU Programming #Workshops. We will teach you the basic knowledge of #Numba and CuPy required to start a journey in the world of GPUs. Registration closes 30 October. ✍️ Sign up now!
    esciencecenter.nl/event/gpu-pr

  33. I read the FAQ, and they answer a lot of “why not X” questions (make CPython faster, use Julia, etc), but comparison to #numba is a glaring omission. Doubtless they can’t be ignorant of numba, so it’s probably because it doesn’t look good: numba is wicked fast and the API is super easy.

    Anyway, the Anaconda engineering team has a great comparison here: engineering.anaconda.com/2023/

    2/3

  34. So at least with #python on my computer, log is faster than log10 by a factor of two. Similar results obtained from #Numpy and #numba . Wat?

    #programming