You are viewing a plain text version of this content. The canonical link for it is here.
Posted to discuss-archive@tvm.apache.org by Haoyang Ma via Apache TVM Discuss <no...@discuss.tvm.ai> on 2022/02/21 04:05:47 UTC

[Apache TVM Discuss] [Questions] Crash when opt_level = 0


Hi all, I met a segmentation fault after running the following script:
```
import tvm
from tvm import relay


var_0 = relay.var("var_0", shape=(), dtype="float64")
var_1 = relay.var("var_1", shape=(), dtype="float64")
var_2 = relay.add(var_0, var_1)
tuple = relay.Tuple([var_2])
func = relay.Function([var_0, var_1], tuple)
mod = tvm.IRModule.from_expr(func)

with tvm.transform.PassContext(opt_level=0):
    exe = relay.backend.vm.compile(mod, "llvm")
```
The crash still exists after changing target from llvm to cuda. And I have run it on macOS M1 and centos with x86 architecture and rtx 3090





---
[Visit Topic](https://discuss.tvm.apache.org/t/crash-when-opt-level-0/12131/1) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/8f9bb28f9b17d81b076b49a072fc63e26889accb295ccf8a85ca8d6efdef8a73).

[Apache TVM Discuss] [Questions] Crash when opt_level = 0

Posted by leeexyz via Apache TVM Discuss <no...@discuss.tvm.ai>.

Not yet, it is not appropriate to modify the pass level cause it may impact other cases. I reported a bug and am still waiting for suggestions from the community.





---
[Visit Topic](https://discuss.tvm.apache.org/t/crash-when-opt-level-0/12131/4) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/7dd7438d0a5b8c82c94d52174b5d5c7a18b7ea9b53dc93f12350c60516f1b735).

[Apache TVM Discuss] [Questions] Crash when opt_level = 0

Posted by Haoyang Ma via Apache TVM Discuss <no...@discuss.tvm.ai>.

Wow, thanks. I'm not sure assigning opt_level to 0 is legal or not. BTW, has this problem been solved?





---
[Visit Topic](https://discuss.tvm.apache.org/t/crash-when-opt-level-0/12131/3) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/02e712a0f48d08ce9b836827c6908b26ce3d2f281a663c045f02d04186d4edec).

[Apache TVM Discuss] [Questions] Crash when opt_level = 0

Posted by leeexyz via Apache TVM Discuss <no...@discuss.tvm.ai>.

Hi @Haoyang I think it is as same as [[Bug][VM] Segmentation fault triggered if opt level set to 0 · Issue #10324 · apache/tvm (github.com)](https://github.com/apache/tvm/issues/10324)





---
[Visit Topic](https://discuss.tvm.apache.org/t/crash-when-opt-level-0/12131/2) to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click here](https://discuss.tvm.apache.org/email/unsubscribe/5480d47eef9edab4d69377ec939f8676ed43a7a917f844fb1223fddc0ab0b8e8).