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

   `isinf` is an operator in relay/topi/te. But when we lower relay functions 
containing `isinf` to cuda, the generated float infinity is not defined and 
supported, therefore an compilation error on nvcc is thrown.
   
   ### Expected behavior
   
   Infinity should be supported on TIR level as there is a function `isinf` in 
relay/topi/te.
   
   ### Actual behavior
   ```
   Compilation error:
   /tmp/tmpr1n6rqid/my_kernel.cu(331): error: identifier "inff" is undefined
   
   /tmp/tmpr1n6rqid/my_kernel.cu(276): warning #177-D: function "__pack_half2" 
was declared but never referenced
   
   /tmp/tmpr1n6rqid/my_kernel.cu(301): warning #177-D: function "hpow" was 
declared but never referenced
   
   /tmp/tmpr1n6rqid/my_kernel.cu(302): warning #177-D: function "htanh" was 
declared but never referenced
   
   /tmp/tmpr1n6rqid/my_kernel.cu(303): warning #177-D: function "htan" was 
declared but never referenced
   
   /tmp/tmpr1n6rqid/my_kernel.cu(304): warning #177-D: function "hatan" was 
declared but never referenced
   
   /tmp/tmpr1n6rqid/my_kernel.cu(305): warning #177-D: function "herf" was 
declared but never referenced
   
   1 error detected in the compilation of "/tmp/tmpr1n6rqid/my_kernel.cu".
   ```
   
   ### Environment
   
   Latest TVM main on Nvidia RTX3070
   
   ### Steps to reproduce
   
   Minimal repro script can be found 
[here](https://gist.github.com/shingjan/9ee06597a13f9be324828afb6c4560b8).
   


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