News for hackers. Stuff that matters.
Re:Linear Address Spaces: Unsafe at any speed by kevingadd on Wednesday June 29, 2022 @10:27PM (#31928144)
GPU stuff has been "object oriented" for a long time. The ability to just arbitrarily address data as bytes from shaders is relatively new and modern and still constrained.

If you want to talk to a GPU via vulkan or d3d12 you're going to navigate a maze of descriptor sets, pipeline objects, buffers of various types, samplers, etc. These are all Objects with distinct types and data and the GPU hardware will interact with them in specific ways, even if it's also a general purpose computing device that will run some shader code you throw at it. When I was writing bare-metal graphics code for the PS4 there was still a lot of Object Orientation there too even if there weren't vtables or a garbage collector involved.

Re:Linear Address Spaces: Unsafe at any speed by dragontamer on Thursday June 30, 2022 @09:50AM (#31932320)
> relatively new and modern

Seeing RAM as a collection of linear addresses on GPUs (especially as shared virtual memory, pinned memory, or other such GPU/CPU virtual memory sharing features) is a feature from 2010-era, be it from OpenCL, DirectCompute, or CUDA.

DirectCompute just sees the data as a collection of bytes.