You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/04/13 12:40:54 UTC

[GitHub] [tvm] tqchen commented on a change in pull request #7834: [OpenCL] Refactor cl_program generation

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



##########
File path: src/runtime/opencl/opencl_module.cc
##########
@@ -181,49 +185,81 @@ void OpenCLModuleNode::Init() {
     e.version = workspace_->timestamp++;
     kid_map_[key] = e;
   }
+
+  // Use function delimiters to parse the serialized source
+  // into separate source files for each kernel primitive
+  std::string source = GetSource("cl");

Review comment:
       decouple into a separate function SplitKernels




-- 
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:
users@infra.apache.org