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 2022/08/24 00:24:56 UTC
[GitHub] [tvm] shingjan opened a new issue, #12566: [Bug] [TIR] float infinity not supported in TIR with CUDA target
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: commits-unsubscribe@tvm.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] vinx13 closed issue #12566: [Bug] [TIR] float infinity not supported in TIR with CUDA target
Posted by GitBox <gi...@apache.org>.
vinx13 closed issue #12566: [Bug] [TIR] float infinity not supported in TIR with CUDA target
URL: https://github.com/apache/tvm/issues/12566
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tvm] wrongtest-intellif commented on issue #12566: [Bug] [TIR] float infinity not supported in TIR with CUDA target
Posted by GitBox <gi...@apache.org>.
wrongtest-intellif commented on issue #12566:
URL: https://github.com/apache/tvm/issues/12566#issuecomment-1226122513
"inff" may indicate that the "inf" literal of float32 get mistakenly generated as a normal value like 0.3f.
--
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: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org