←back to thread

309 points lights0123 | 3 comments | | HN request time: 0.641s | source

CUDA is NVIDIA's language for GPU programming, allowing you to mix write CPU and GPU code in C++ in one file. By chaining a few projects that compile CUDA to OpenCL, then Vulkan, then WebGPU, you can experiment with this GPGPU language on any hardware.
Show context
_nalply ◴[] No.42626693[source]
Firefox supports WebGPU, but needs a setting in about:config. I enabled the setting but HipScript still denies running on Firefox with the message: "Please try a Chromium-based browser like Google Chrome or Microsoft Edge."

Please do feature detection, not browser detection.

replies(2): >>42627396 #>>42633259 #
lights0123 ◴[] No.42627396[source]
I do do feature detection—WebGPU is blocked on Release Firefox regardless of config, you'll need nightly. It does support Safari with its experimental mode enabled for example.
replies(2): >>42627647 #>>42632658 #
1. doctoboggan ◴[] No.42627647[source]
I enabled WebGPU in safari on my m1 Mac and got this error when running the GoL demo:

``` TypeError: B.values().some is not a function. (In 'B.values().some(r=>r.args.length)', 'B.values().some' is undefined) ```

EDIT: I got the same error with all three sample scripts

replies(1): >>42629625 #
2. lights0123 ◴[] No.42629625[source]
I believe I just fixed this—JavaScriptCore doesn't have support for a recently-introduced function.
replies(1): >>42631130 #
3. doctoboggan ◴[] No.42631130[source]
I can confirm it is working for me now, thanks!