jikechao opened a new issue, #14600:
URL: https://github.com/apache/tvm/issues/14600

   When I pull the latest code and build it. The build crashed and throw an 
exception message:
   ```
   /tvm/src/tir/analysis/identify_memcpy.cc:298:27: error: no viable 
constructor or deduction guide for deduction of template arguments of 'Array'
           output->push_back(Array{ptr->source, ptr->dest});
                           ^
   ```
   By analysis, I think this crash arose from the Implicitly template 
parameters for Array.
   Because the template parameters of the template class Array need to be 
explicitly specified during use, but the template parameters are not specified 
in this code. 
   
   
   ### Environment
   * ubuntu 16.04
   * gcc/g++ 7.5
   * clang version 8.0.0-3
   
   
   ### Steps to reproduce
   1. git pull 
   2. build TVM --->build failure
   
   
   ### Localize this bug:
   The bug in this line: 
   
https://github.com/apache/tvm/blob/main/src/tir/analysis/identify_memcpy.cc#:~:text=output%2D%3Epush_back(Array%7Bptr%2D%3Esource%2C%20ptr%2D%3Edest%7D)%3B
   
   ### Possible fix:
   ```
   - output.push_back(Array{ptr->source, ptr->dest}); 
   + output.push_back(Array<ObjectRef>{ptr->source, ptr->dest});  // Explicitly 
specify template parameters
   ```
   
   ### Verify this fix
   build the modified TVM  --> Build successfully!
   
   
   
   
   


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