Tutorial: CUDA programming in Python with numba and cupy

preview_player
Показать описание
/Using the GPU can substantially speed up all kinds of numerical problems. Conventional wisdom dictates that for fast numerics you need to be a C/C++ wizz. It turns out that you can get quite far with only python. In this video, I explain how you can use cupy together with numba to perform calculations on NVIDIA GPU's. Production quality is not the best, but I hope you may find it useful.

00:00 Introduction: GPU programming in python, why?
06:52 Cupy intro
08:39 Cupy demonstration in Google colab
19:54 Cupy summary
25:07 Grids, blocks and threads
27:12 Matrix multiplication kernel
29:20 Tiled matrix multiplication kernel and shared memory
44:25 Final remarks

Edit 9/9/2021: at 23:56 one of the grid elements should be labeled 1,3 instead of 1,2. Thanks to _______ for pointing this out.
Рекомендации по теме
Комментарии
Автор

I have been looking into gpu programming using numba and python for a while, this seems to be the best tutorial I was able to find so far.. . thank you

ErolErten
Автор

Thank you so much. Probably the best introdution to CUDA with Python. The example you use, while very basic, touches on usage of blocks, which is usually omitted in other introduction-level tutorials. Great stuff! Hope you return with some more videos. I have subscribed!

Omgtired
Автор

Definitely a lot of new material not seen else where - not a run-of-the-mill video. Great job on originality.

taj-ulislam
Автор

This reminds me a lot of the mindset you need to program in assembly.

kineticraft
Автор

wanted to comment that the information in this presentation is very well structured and the flow is excellent.

andrjo
Автор

Thank you so very much. This is the exact kind of material I was looking for on this very specific subject. Kudos.

vallurirajesh
Автор

wait i tought that this made by some popular channel, done pretty well and then saw, 29 subscribers

______
Автор

thank you so much, it is the best explaination i found. Please keep going and give us more information and examples on that

ouaililydia
Автор

Thanks a lot! Still the best guide I could find.

shaheeng
Автор

Great intro for me. Waiting for my new GPU (likely 4060 Ti) for me to dig deeper into Python, CUDA, deep learning ...

plumberski
Автор

Really great introduction to GPU programming. I hope you make a new one soon.

prietjepruck
Автор

Thank you so much sir, you are an amazing human being !

LoneXeaglE
Автор

wold love to see a video on what are a few CUDA programming challenges

ArijitBhattacharya
Автор

Thank you so much. Keep up the hard work. Just hoping that more and more libraries in python will support GPU computations soon.

PhoenixReflex
Автор

Excellent explanation, keep going with this content man ;)

sciencewolf
Автор

This is really helpful for my computing. Thank you.

dfrank
Автор

this was such an excellent video, thank you so much!

thousandTabs
Автор

Really nice video, thank you for sharing!

jakob
Автор

Thanks for the video, I found the first half and the wrap up really excellent.

terriplays
Автор

thank you. good video!!! it was very helpful

localhost_mds