Live data from Hacker News

Viewing profile — tspeterkim

tspeterkim

HN member
Joined
Thu, Mar 07, 2024, 3:59 PM UTC
HN karma
186
Public activity
24 items

About tspeterkim

https://tspeterkim.github.io/

Recent public activity

  1. story
  2. story
  3. story
  4. story
  5. story
  6. story
  7. story
    Show HN: Mixed Precision Training from Scratch

    Detailed writeup here: https://tspeterkim.github.io/posts/mixed-precision-from-scra...

  8. story
  9. story
  10. comment
    Comment #40038633

    I tried this out today. While it works (no longer a pre-split step required), it makes the CUDA kernel run ridiculously slow. I believe it's because of the while loop: while (i Com…

  11. comment
    Comment #40031499

    Please do. My hope with this blog was to rile up other CUDA enthusiasts. Making them wanna bring in bigger and better hardware that I don't have access to. + Someone in the CUDA MO…

  12. comment
    Comment #40031451

    This is the possible optimization that I mention at the end of the blog - using a private map for each thread block. The catch is that this map must fit in shared memory, which is …

  13. comment
    Comment #40031371

    I misspoke. (got confused with the key limit in my link above) Atomics work up to 128-bits ( https://docs.nvidia.com/cuda/cuda-c-programming-guide/#atomi... ). Regardless, it's sti…

  14. comment
    Comment #40031299

    for (int i = 0; buffer[offset+i] != '\n'; i++) { This would only process the current line, though. Here, each thread processes ~split_size bytes (multiple lines). Even if were to r…

  15. comment
    Comment #40028578

    By "launcher", do you mean the CUDA kernel? How can it avoid accessing the input data since it needs access to the characters based on the offsets? I also already pass these offset…

  16. comment
    Comment #40028524

    The PMPP book is great. I reread the histogram chapter after finishing the blog, and realized I could use privatization. You got me! By coarsening, do you mean making the threads h…

  17. comment
    Comment #40028476

    So performance would increase since hashing is faster than binary-searching. However, the problem of collisions across threads and dealing with concurrent map key insertions still …

  18. comment
    Comment #40028408

    Agreed. I tried reducing across cities first. The problem was that the work of gathering all the temperatures for each city (before I could launch the reduction CUDA kernels) requi…

  19. story
  20. story
  21. comment
    Comment #39733204

    Thanks Daniel. The main blocker is me not able to fully grasp the backward pass. (trying to understand Appendix B.2 in the original paper) I need to get more comfortable with matri…

  22. story
  23. story
  24. story