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

КОМЕНТАРІ • 22

  • @TennisGvy
    @TennisGvy Місяць тому +4

    So excited for this!

    • @LeiosLabs
      @LeiosLabs  Місяць тому +1

      Haha, I hope it's actually interesting ^^'

  • @x1x2x125
    @x1x2x125 Місяць тому +1

    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!

    • @LeiosLabs
      @LeiosLabs  Місяць тому

      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!

  • @geertdepuydt2683
    @geertdepuydt2683 Місяць тому +1

    Very much appreciated

  • @user-xh2ee3lu2n
    @user-xh2ee3lu2n Місяць тому +1

    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

    • @LeiosLabs
      @LeiosLabs  Місяць тому

      Wait, what do you mean? This one was for work for MIT.

  • @shyrealist
    @shyrealist Місяць тому +1

    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?

    • @shyrealist
      @shyrealist Місяць тому

      I spoke too soon 😅
      Thanks for talking about the error messages from the kernel!

    • @LeiosLabs
      @LeiosLabs  Місяць тому +1

      Also, there were no real changes for ROCArray except for moving the data to an Array for plotting

  • @anakimluke
    @anakimluke Місяць тому +5

    Syntax highlighting?? Who are you and what have you done with the real james??

    • @LeiosLabs
      @LeiosLabs  Місяць тому +1

      Shoot, they're on to me.
      (but yeah, I'll use it for lectures)

  • @user-vt4bz2vl6j
    @user-vt4bz2vl6j Місяць тому +1

    You upload and im first lesgoooo

    • @LeiosLabs
      @LeiosLabs  Місяць тому +1

      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.

    • @user-vt4bz2vl6j
      @user-vt4bz2vl6j Місяць тому

      Anything works! I like to learn usefull stuff. Tips on where I could find more quality content?

    • @LeiosLabs
      @LeiosLabs  Місяць тому

      @@user-vt4bz2vl6j Well, anything from the Summer of Math is great

  • @aleksszukovskis2074
    @aleksszukovskis2074 Місяць тому +1

    so you didnt succeed

    • @LeiosLabs
      @LeiosLabs  Місяць тому

      Wait, succeed in what?

  • @Gordy-io8sb
    @Gordy-io8sb Місяць тому

    2 years between now and your last upload. Seems like this channel is pretty much ded, and you're just throwing some scrap.

    • @LeiosLabs
      @LeiosLabs  Місяць тому +6

      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.

    • @ncolyer
      @ncolyer Місяць тому +1

      @@LeiosLabs i found this very interesting btw

    • @rickgrimes47
      @rickgrimes47 Місяць тому

      2 years is nothing if you start working on a project you like. If you were an engineer you would know that.