QuantEcon / lecture-python-programming.myst

Python Programming for Finance and Economics
https://python-programming.quantecon.org
42 stars 25 forks source link

Add a Lecture on Numba Cuda #242

Open HumphreyYang opened 1 year ago

HumphreyYang commented 1 year ago

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.

jstac commented 1 year ago

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.)

mmcky commented 8 months ago
gmarkall commented 8 months ago

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.

mmcky commented 8 months ago

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