elvin-n commented on code in PR #15745:
URL: https://github.com/apache/tvm/pull/15745#discussion_r1325589814


##########
src/runtime/opencl/opencl_module.cc:
##########
@@ -353,9 +357,10 @@ PackedFunc OpenCLModuleNode::GetFunction(const String& 
name,
 }
 
 Module OpenCLModuleCreate(std::string data, std::string fmt,
-                          std::unordered_map<std::string, FunctionInfo> fmap, 
std::string source) {
+                          std::unordered_map<std::string, FunctionInfo> fmap, 
std::string source,
+                          bool dry_run) {
   auto n = make_object<OpenCLModuleNode>(data, fmt, fmap, source);
-  n->Init();
+  n->Init(dry_run);

Review Comment:
   `dry_run` name would assume that we need to have such object and call some 
API, but results of these calls are not important.
   
   On the other hand, I would assume that no API is called and creation and 
initialization of OpenCL is just a resuilt of bad design. So, we need either 
not to create instance of this class or it we have several purposes inside this 
class and it dedicate for both runtime and some service capabilities, we need 
to rename this parameter



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

To unsubscribe, e-mail: [email protected]

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

Reply via email to