Basically aA GPU (Graphical Processing Unit) is not vulnerable to spectre/meltdown attacks.
This is due to various reasons:
- A GPU is a completely differently designed processor.
- It does not run privileged code (e.ag. kernel code).
- It does not run the OS.
- itIt is optimized for Vector calculations.
- Its micro code is build completely differently.
- It (most often) does not have protection for privileged code (like the execution rings on a CPU).
- It does not have access to the CPU's registers (directly), it does have DMA (Direct Memory Access) but so do a lot of other devices.
- There is only limited research on this done by security experts, so no one is sure if it's not vulnerable.
- As for having the same parts, those parts are either shared between many devices or nowhere similar in design. a GPU's memory or example is differently mapped than a CPU's memory (although they share an electrical standard).
- The DMA access should be limited to the current execution level, since the Graphics card is normally controlled by the Kernel, no user level application can directly access it. Or send code to it. (Drivers exist to facilitate user level access and to limit what they can do. As to maximize the usable features. And not blow the card up (by setting illegal settings for example).
- Code that can run on the GPU is highly limited in what it can execute (instruction set is limited) DMA is for example only allowed indirectly (first load it into the Graphics cards memory than access is granted and visa versa).
tldr; GPUs are not CPUs and are not designed to be multi-user / application. They have some protection against abuse but most of this is not yet tested by security experts.