News for hackers. Stuff that matters.
Re:Simulation of a 2B-atom cell that metabolizes and grows l... by capableweb on Friday January 28, 2022 @09:50AM (#30115267)
I know that CUDA is faster than OpenCL for many tasks, but is there something that is not possible to achieve in OpenCL but possible in CUDA?
Re:Simulation of a 2B-atom cell that metabolizes and grows l... by TomVDB on Friday January 28, 2022 @12:44PM (#30117909)
I’m subscribed to some CUDA email list with weekly updates.

One thing that strikes me is how it evolves with new features. Not just higher level libraries, but also more fundamental, low level stuff, such as virtual memory, standard memory models, c++ libraries, new compilers, communication with other GPUs, launching dependent kernels, etc.

At their core, OpenCL and CUDA both enable running parallel computing algorithms on a GPU, but CUDA strikes me as much more advanced in terms of peripheral features.

Every few years, I think about writing a CUDA program (it never actually happens), and investigate how to do things, and it’s interesting how the old ways of doing things has been superseded by better ways.

None of this should be surprising. As I understand it, OpenCL has been put on life support by the industry in general for years now.

Re:Simulation of a 2B-atom cell that metabolizes and grows l... by 4gotunameagain on Friday January 28, 2022 @01:06PM (#30118226)
If you ever need to reap the benefits of CUDA & GPU computations without getting into the details, check out JAX by our corporate overlords™ (https://github.com/google/jax), it has a NumPy like syntax and super fast to get started
Re:Simulation of a 2B-atom cell that metabolizes and grows l... by p1esk on Friday January 28, 2022 @02:29PM (#30119225)
Why would you suggest JAX? CuPy seems like an obvious choice here (simpler and a lot more mature). Jax is only needed if you want automatic differentiation.
Re:Simulation of a 2B-atom cell that metabolizes and grows l... by hamilyon2 on Saturday January 29, 2022 @05:52AM (#30125388)
TIL CuPy exists and is stable and mature. This is why i read this forum, every now and then there is serendipitous connection, new angle or discovery.
Re:Simulation of a 2B-atom cell that metabolizes and grows l... by dekhn on Saturday January 29, 2022 @10:31AM (#30127074)
I just want pyXLA, a tool to directly construct XLA programs.
Re:Simulation of a 2B-atom cell that metabolizes and grows l... by belval on Friday January 28, 2022 @09:54AM (#30115342)
> is there something that is not possible to achieve in OpenCL but possible in CUDA

Developing fast... OpenCL is much harder to learn than CUDA. Take someone who did some programming classes, explain how CUDA works and they'll probably get somewhere. Do the same thing with OpenCL and they'll probably quit.

Re:Simulation of a 2B-atom cell that metabolizes and grows l... by immibis on Friday January 28, 2022 @09:10PM (#30123088)
What makes it harder?
Re:Simulation of a 2B-atom cell that metabolizes and grows l... by Cthulhu_ on Friday January 28, 2022 @09:55AM (#30115352)
Possibly, but that's not really the point, the article is part marketing push from nvidia for their HPC department.
Re:Simulation of a 2B-atom cell that metabolizes and grows l... by capableweb on Friday January 28, 2022 @02:32PM (#30119267)
> but that's not really the point

That's what I thought as well, so the title on the website ("NVIDIA GPUs Enable Simulation of a Living Cell") is not really truthful then.

Re:Simulation of a 2B-atom cell that metabolizes and grows l... by Symmetry on Friday January 28, 2022 @10:25AM (#30115746)
My understanding is that CUDA has a lot of optimized libraries for common tasks, think BLAS, that don't currently exist in OpenCL/Vulkan Compute.