4 ms·
Correct me if I'm wrong, but with recent GPUs you should just be able to memory map a file on "disk" to the GPU address space? Open, mmap and then import the h
by exDM69 2y ago
Correct me if I'm wrong, but with recent GPUs you should just be able to memory map a file on "disk" to the GPU address space?
Open, mmap and then import the host pointer to GPU API (Cuda or Vulkan). Paging should work as expected, but "stupid" access patterns hurt throughput.
This requires a GPU, a CPU and a kernel driver that supports it. E.g. my laptop Intel GPU has the host pointer import Vulkan API but last I checked it does not support pointers imported from mmap.