numfocus / project-summit-2024-unconference

This repository will be used to gather unconference topics and facilitate voting on topics for the NumFOCUS 2024 Project Summit.
BSD 3-Clause "New" or "Revised" License
9 stars 1 forks source link

Array API adoption Unconference Session #1

Open thomasjpfan opened 3 months ago

thomasjpfan commented 3 months ago

Scikit-learn and SciPy have been incrementally adding support for the Array API standard. The Array API standard enables libraries to write code in a standard and operate with different array libraries such as NumPy, PyTorch, CuPy, or JAX.

For this unconference session, we will discuss the process of adopting the Array API standard and whether the Array API standard adoption makes sense for your library.


When adopting Array API standard, here are some of the common issues that came up:

lucascolley commented 3 months ago

I can speak on this topic too as I'm presenting on it at EuroSciPy this Thursday.

lucascolley commented 2 months ago

You have compiled code mixed with NumPy-like code? Use the Array API for the NumPy code and dispatch for the compiled code Use dlpack to do zero copy transfer Dispatching is still being developed: NetworkX has a dispatching mechanism

Some notes on this from discussion at EuroSciPy: https://hackmd.io/@seberg/spatch

MSanKeys963 commented 2 months ago

Thanks for proposing the topic, @thomasjpfan!

This is scheduled in Main Room 1. Starts @ 14:40.

Check the schedule here: https://www.nfsummit24.com/schedule.

lucascolley commented 2 months ago

https://github.com/lucascolley/euroscipy24-slides/blob/main/slides.pdf