News for hackers. Stuff that matters.
Re:Vortex: OpenCL compatible RISC-V GPGPU by taminka on Thursday April 11, 2024 @05:24PM (#40006982)
to clarify, this is a gpgpu lib implementation that's compliant to the openCL spec, right?

i imagine if i tried to explain to someone the state of modern GPU computing i'd sound like an insane person, why is it so complicated, ugh :(

so there's openGL and openCL, which are specifications with various implementations, both widely supported, but not as performant/modern

there are vulkan/metal/dx, which are all modern with good driver support (metal limited driver support) graphics-first APIs, with compute shaders (vulkan kompute, metal performance shaders and whatever dx has?), all three have excellent performance

then there is cuda/hip, both of which are proprietary, cuda w/ excellent driver support, and hip w/ reportedly awful driver support, cuda can only target nvidia gpus, and hip can target both cuda and amd gpus (though very few amd gpus), both have very good performance

then there is SYCL, which is by khronos, and it's what intel uses w/ openAPI, which is a heterogenous computing framework that can produce openCL/vulkan and in the future other api's code

then there's webgpu, which is a spec, that has two C and one rust implementations, that can target all of the above (except SYCL obv, bc it's not a graphics api)

did i get that right?

Re:Vortex: OpenCL compatible RISC-V GPGPU by jlokier on Thursday April 11, 2024 @07:53PM (#40008041)
I would add WebGL to the mix, for when you need that GPU performance in a browser that doesn't support WebGPU yet..
Re:Vortex: OpenCL compatible RISC-V GPGPU by saurik on Thursday April 11, 2024 @09:15PM (#40008535)
> i imagine if i tried to explain to someone the state of modern GPU computing i'd sound like an insane person, why is it so complicated, ugh :(

I mean, do you think this is different for anything else in our field? This was in some sense really simple... try doing this for front-end GUI frameworks or even multi-tenant isolation technologies.

Re:Vortex: OpenCL compatible RISC-V GPGPU by taminka on Thursday April 11, 2024 @09:22PM (#40008567)
my point of comparison is other types of accelerators (CPUs mostly) and GPU ecosystem in the past (when there was just like openCL and openGL)
Re:Vortex: OpenCL compatible RISC-V GPGPU by marci on Friday April 12, 2024 @01:41AM (#40009699)
mlx: a mix between numpy and cuda/hip for metal
Re:Vortex: OpenCL compatible RISC-V GPGPU by fulafel on Friday April 12, 2024 @01:52AM (#40009751)
CPU side took a very long time to pare down the fragmentation. For the first ~50 years there were competing proprietary instruction sets and software stacks, languages and compilers and operating systems were vendor specific, buggy and mutually incompatible. Compilers were sold separately and expensive, apps were platform specific. x86 would have remained a monopoly if not for a licensing accident with Intel second-sourcing chips from AMD.

We're seeing a version of that replaying, with some parts better and some parts worse.

The GPU situation would be ripe for regulation to lift GPU software development from the dark ages, but companies who benefit most (NVidia) have probably become too big to regulate.

Re:Vortex: OpenCL compatible RISC-V GPGPU by taminka on Friday April 12, 2024 @02:23PM (#40016058)
interesting, hopefully same homonegisation will happen to gpu sphere as well :)
Re:Vortex: OpenCL compatible RISC-V GPGPU by sisve on Saturday April 13, 2024 @04:24AM (#40021467)
> too big to regulate.

I guess you are from the US and not EU? It's when they get too big and abuse their monopoly they will be regulated.

AFAIK nvidia have not done anything to abuse its power yet, but its hard for big companies to not use their monopoly in a illegal way since its always a good a Market strategy just illegal

Re:Vortex: OpenCL compatible RISC-V GPGPU by lelanthran on Friday April 12, 2024 @02:03AM (#40009791)
You missed ROCm?
Re:Vortex: OpenCL compatible RISC-V GPGPU by MoonObserver on Friday April 12, 2024 @04:14PM (#40017162)
ROCm is a whole ecosystem. HIP falls under ROCm.
Re:Vortex: OpenCL compatible RISC-V GPGPU by pjmlp on Friday April 12, 2024 @02:37AM (#40009956)
You missed GNM/GNMX, GX/GX2/NVN from Sony and Nintendo respectively, which tend to be forgotten on 3D API discussions.
Re:Vortex: OpenCL compatible RISC-V GPGPU by Narishma on Friday April 12, 2024 @03:16AM (#40010147)
That's because very few people have access to them and there's no information about them in the open.
Re:Vortex: OpenCL compatible RISC-V GPGPU by pjmlp on Friday April 12, 2024 @05:00AM (#40010651)
Rather the urban myth that they fully support Khronos APIs persists.

To be fair there was some kind of support on the PS3 with GL ES 1.0/Cg shaders as secondary API, later dropped, Wii GX(2) shaders are based on GLSL, and while Switch does support GL 4.6 and Vulkan for porting purposes, it is either Nintendo extensions spaghetti time, or rewrite in NVN, for actually taking full advantage of the hardware.