by lights0123 on 1/7/25, 3:44 PM with 32 comments
by Ameo on 1/7/25, 8:11 PM
When I looked at the profiler, I was confused to see that one worker thread was at 100% usage the whole time it was running. At first, I thought that maybe it was actually running the code via Wasm on the CPU rather than on the GPU like it said.
Instead, it turns out that the worker was just running `emscripten_futex_wait` - which as far as I can tell is implemented by busy waiting in a loop. Probably doesn't matter for performance since I imagine that's just for the sleep call anyway.
----
Altogether this is an incredibly cool tool. I'm sure there is some performance gap compared to native, but even so this is a extremely impressive and likely has a ton of potential use cases.
by _nalply on 1/7/25, 7:58 PM
Please do feature detection, not browser detection.
by syrusakbary on 1/7/25, 11:23 PM
I recommend as well reading through the blogpost (repo on [3]): https://lights0123.com/blog/2025/01/07/hip-script/ (many things to improve on the Wasmer side... we have some work to do!)
by bagels on 1/7/25, 7:53 PM
by grconner on 1/8/25, 12:24 AM
by Cieric on 1/7/25, 9:58 PM
by punnerud on 1/7/25, 8:35 PM
Could we have PyTorch / ML training with CUDA through the browser performing ok?
by samagra14 on 1/8/25, 4:36 AM
You try to run something and Voila you need Ampere or Hopper or Laplace for flash attnt.
by JackYoustra on 1/7/25, 8:03 PM
by nullbyte on 1/8/25, 6:27 PM
by mlepath on 1/8/25, 4:51 AM
Interested to know how debugging in a real application would work since WASM is pretty hard to debug and GPU code is pretty hard to debug. I assume WASM GPU is ... very difficult to debug.
by JonChesterfield on 1/7/25, 9:55 PM
by uncheckederror on 1/8/25, 12:45 AM
by ryanmerket on 1/7/25, 8:34 PM
by Lockal on 1/8/25, 6:36 AM
by CharlesW on 1/7/25, 7:51 PM
"By chaining chipStar¹ (a HIP and NVIDIA® CUDA® to OpenCL compiler), Clspv² (an OpenCL to Vulkan compiler), and Tint³ (among others, a Vulkan shader to WebGPU shader compiler), you can run CUDA code in the browser!"
¹ https://github.com/CHIP-SPV/chipStar/ ² https://github.com/google/clspv/ ³ https://dawn.googlesource.com/dawn/+/refs/heads/main/src/tin...
by bloomingkales on 1/7/25, 9:01 PM