lecture-python-programming.myst icon indicating copy to clipboard operation
lecture-python-programming.myst copied to clipboard

Add a Lecture on Numba Cuda

Open HumphreyYang opened this issue 1 year ago • 4 comments

Add a lecture based on the numba_cuda notebook written by @jstac with an introduction to basic concepts such as kernel declaration, kernel invocation, and other terminologies on GPU programming.

HumphreyYang avatar Oct 25 '22 23:10 HumphreyYang

Thanks @HumphreyYang . This application can be used as a running example throughout our parallelization lectures: https://github.com/QuantEcon/cbc_workshops/blob/main/day_4/european_option_jax.ipynb

Although it's not published yet, that example appears in the scipy lecture and then in the first parallelization lecture. We can then show how to solve it using numba cuda, and finally using JAX.

(These thoughts probably need to be broken out into separate issues but I'll leave them here for now.)

jstac avatar Oct 26 '22 00:10 jstac

  • [ ] add GPU support for lecture series when this is written.

mmcky avatar Dec 12 '23 05:12 mmcky

There may be some materials / examples in https://github.com/numba/nvidia-cuda-tutorial that will also serve as useful components of the lecture - feel free to use parts of it.

gmarkall avatar Dec 12 '23 14:12 gmarkall

thanks @gmarkall -- those tutorials look great. Thank you!

mmcky avatar Dec 12 '23 23:12 mmcky