Hacker News new | ask | show | jobs
by masklinn 1472 days ago
> Does Godbolt assume x86?

Godbolt uses whatever compilers, targets, and optimisations you ask it to.

It is, in fact, a very useful tool for comparing different compilers, architectures, and optimization settings.

1 comments

Ah, yes, thank you, it looks awesome! It doesn't have GPU options (which is fair, since this is standard C++). But I see now I could have figured out the answer to my question in just a few seconds. :)
Compiler Explorer does have GPU options, actually. It has well-established CUDA support and I have been meaning to help add HIP support.
Oh sweet, I missed it then! Where do you go to switch to CUDA?
In the language tab, you can just select "CUDA C++" (or OpenCL C for that matter) instead of C++ or Rust.