spla icon indicating copy to clipboard operation
spla copied to clipboard

OpenCL: large graph support through RAM->VRAM streaming

Open EgorOrachyov opened this issue 2 years ago • 2 comments

Requirements:

  • Async streaming of chunks of graph from RAM into VRAM
  • Dynamic chunk size adaptation
  • Partial operations evaluation support

EgorOrachyov avatar Mar 11 '23 16:03 EgorOrachyov

What do you think about SVM ? Can it be helpful in this task?

gsvgit avatar Mar 16 '23 11:03 gsvgit

@gsvgit By def, shared virtual memory is a virtual address space for multiple processors, devices which can access the same address in seamles fashion.

The question is, how it is implemented for a gpu.

When and how gpu loads pages? What happens if there not enough GPU space? What is the maximum allocation size for a svm allocation?

Streaming solves the problem of large vram usage and overcomes limit of single allocation, which also is a limit of maximum range, which can be addressed inside a kernel.

Svm seems like a gimmick. But how it is implemented across vendors and which overhead has?

All in all, seems svm wont solve problem of large data.

EgorOrachyov avatar Mar 16 '23 11:03 EgorOrachyov