5.6. Shared Virtual Memory
5.6. 共享虚拟内存
Shared virtual memory is missing before version 2.0. |
Shared virtual memory (a.k.a. SVM) allows the host and kernels executing on devices to directly share complex, pointer-containing data structures such as trees and linked lists. It also eliminates the need to marshal data between the host and devices. As a result, SVM substantially simplifies OpenCL programming and may improve performance.
共享虚拟内存(又称SVM)允许主机和在设备上执行的内核直接共享复杂的、包含指针的数据结构,如树和链表。它还消除了在主机和设备之间封送数据的需要。因此,SVM大大简化了OpenCL编程,并可以提高性能。