You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[OpenCL][Texture] Improved texture memmory planning and runtime memory allocation
Motivated form the fact that textures can be allocated over a clBuffer object and
the size of backing clBuffer can be computed based on hardware image pitch alignment.
This optimizes the overall memory allocation on device and helps greately the models with
large memory requirements.
Improvised the graph memory planner to not differentiate buffer and texture storage
tokens and reuse them across. The texture pool in OpenCL runtime is rebranded as memory pool
that handles allocation for both buffer and image objects.
NDArray to DeviceAPI interface is extended with AllocDataSpaceView and FreeDataSpaceView.
These new API's acommodates accessing same physical memory as clBuffer / clImage objects.
* MemoryPool test cases and lint errors.
* test cases and fallback support.
* bug fix and cpp-runtime tests cases for texture views.
* various cl device info organized
* fix graph plan memory bug and correct the testcase.
* device attribute handling
* Some fallback for texture plan on devices w/o cl_khr_image2d_from_buffer
* Memory Manager
Move the VM memory manager to the runtime level.
Use this memory manager for graph runtime.
* Resolve conflicts for VerifyDataType and Buffer
* review comments
0 commit comments