←back to thread

309 points lights0123 | 1 comments | | HN request time: 0.203s | 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. _nalply ◴[] No.42632658[source]
OK, I installed Firefox Nightly and enabled dom.webgpu.enabled and gfx.webrender.all corresponding to this article: https://hacks.mozilla.org/2020/04/experimental-webgpu-in-fir..., but still this error message. Which config options are needed for HipScript to run on Firefox?

Edit: on Nightly `navigator.gpu` is available, I checked that in the console.