How one Buffer gets one virtual address that the CPU and the GPU both use.
Our buffer carries one address for both consumers so every pointer or kernel argument needs no translation step.
One buffer takes four steps:
A Drop runs the reverse: munmap, UNMAP, FREE.
| Flag | Bit | Meaning |
|---|---|---|
| GTT | 1<<1 | place it in the GTT pool |
| WRITABLE | 1<<31 | the GPU may store to it |
| EXECUTABLE | 1<<30 | it may hold kernel code |
| COHERENT | 1<<26 | fine grained, the CP sees CPU writes |
Every buffer the command processor touches carries COHERENT: the ring, the two pointers, the kernel object, the kernarg buffer, and the signal.
Data that only the kernels read and write stays coarse. Streaming loads measure 222 GB/s fine and 225 GB/s coarse.
docs/floor.mddocs/dispatch.mddocs/lessons.mdlibhsakmt fmm.c