tqchen commented on a change in pull request #7686:
URL: https://github.com/apache/tvm/pull/7686#discussion_r596475341



##########
File path: include/tvm/runtime/device_api.h
##########
@@ -181,7 +181,38 @@ class TVM_DLL DeviceAPI {
    * \param ptr The pointer to be freed.
    */
   virtual void FreeWorkspace(TVMContext ctx, void* ptr);
-
+  /*!
+   * \brief Allocate a two dimensional texture data space on device
+   * \param ctx The device context to perform operation.
+   * \param width The width of the 2d texture in elements
+   * \param height The height of the 2d texture in elements
+   * \param type_hint The type of elements.
+   */
+  virtual void* AllocTexture(TVMContext ctx, size_t width, size_t height, 
DLDataType type_hint = {});

Review comment:
       Now that we have the Special scope API, likely we do not want to expose 
this as a separate DeviceAPI




----------------------------------------------------------------
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