csullivan opened a new pull request #7711:
URL: https://github.com/apache/tvm/pull/7711


   This PR introduces 2d texture memory support to the OpenCL Device API 
runtime.
   
   **Device runtime**
   - The device runtime supports allocating texture memory both as a temporal 
workspace and as a runtime data space. In the latter case, special invocation 
of AllocDataSpace with a memory_scope == "texture(:weight)" is required. 
Special memory scopes were added to the runtime in 
https://github.com/apache/tvm/pull/7488. 
   - Workspace allocations are handled via a set of idle texture pools which 
are grown to match the requested sizes. The strategy employed is to first pick 
the pool which requires the least amount of extra space beyond, and then to 
minimize the amount of wasted space that growing a two dimensional pool may 
incur. A similar approach is taken for the ahead of time graph runtime memory 
planner for data space allocations (see: #7690).
   - CopyFromTo support is expanded to handle the case of directly reading from 
/ writing to image buffers from host. 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to