Introduction to kernel (GPU) programming in Julia with an NBody simulation
Вставка
- Опубліковано 6 чер 2024
- This is a lecture I did recently at MIT. I was a little low energy, but thought the lecture turned out reasonably well and certainly had information that is hard to find elsewhere.
I edited it to remove faces and names (except Valentin, who is a core developer of the Julia language and a personal friend of mine).
Final code here: github.com/leios/simuleios/bl...
00:00 Introduction
01:25 GPUs in Julia
11:52 Nbody intro
15:55 NBody implementation
51:15 CPU parallelization
57:45 KernelAbstractions start
1:20:27 CPU GPU profiling
1:23:17 Discussion
So excited for this!
Haha, I hope it's actually interesting ^^'
Hey, take care of your hand. I haven't seen you live in a while, I think you were talking about gravity simulations last I checked. Keep it up!
Yeah, this is exactly how we did the gravity sims. I've been working with MIT on similar code.
As for the hand, I use a drawing tablet as a mouse, so I need some glove to keep my hand from rubbung against it. I'm trying to make sure I don't have any problems in the future ^^
Hope you are doing well!
Very much appreciated
Hope your Friday is figured out. What's the best option for someone of your levels computer programming ability offering a zoom or live tutoring session
Wait, what do you mean? This one was for work for MIT.
I think at the start you were talking about the benefits for debugging but then at the end you cut out all the debugging 😢
I was hoping to see how obvious (from the error messages) the mistakes were and also what were the changes that you had to make when switching to the RocArray?
I spoke too soon 😅
Thanks for talking about the error messages from the kernel!
Also, there were no real changes for ROCArray except for moving the data to an Array for plotting
Syntax highlighting?? Who are you and what have you done with the real james??
Shoot, they're on to me.
(but yeah, I'll use it for lectures)
You upload and im first lesgoooo
Haha, you were fast!
I have "real" content in the works. This was just a lecture that I thought some people might be interested in here.
Anything works! I like to learn usefull stuff. Tips on where I could find more quality content?
@@user-vt4bz2vl6j Well, anything from the Summer of Math is great
so you didnt succeed
Wait, succeed in what?
2 years between now and your last upload. Seems like this channel is pretty much ded, and you're just throwing some scrap.
I understand why you think that and encourage you to unsubscribe if you like.
That said, I've been working really, really hard on some upcoming content. Hopefully it will make sense why it took so long when it comes out later this year. I'm shooting for November, so it might not be until 2025.
I hesitated uploading this one because I know it would appear like I've "given up," but the lecture does genuinely have content you can't find anywhere else that is very relevant to understanding some of the work I've been doing lately.
@@LeiosLabs i found this very interesting btw
2 years is nothing if you start working on a project you like. If you were an engineer you would know that.