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 ctlinglingliu via Apache TVM Discuss <no...@discuss.tvm.ai> on 2021/03/26 03:49:30 UTC

[Apache TVM Discuss] [Questions] Check failed:allow_missing ==false :device API gpu is not enabled


when I Compile PyTorch Models demo in https://tvm.apache.org/docs/tutorials/frontend/from_pytorch.html#sphx-glr-tutorials-frontend-from-pytorch-py
i set the configure below
target = "opencl"
target_host = "llvm"
ctx = tvm.gpu(0)
there occurs the error below:
An internal invariant violated during the execution of TVM
check failed:allow_missing ==false :device API gpu is not enabled





---
[Visit Topic](https://discuss.tvm.apache.org/t/check-failed-allow-missing-false-device-api-gpu-is-not-enabled/9532/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/94df77cd131bec5dd8e61c387fee9a13e5c89462d273225e6f681d39e4d919e0).

[Apache TVM Discuss] [Questions] Check failed:allow_missing ==false :device API gpu is not enabled

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

it solve the error but make errors below:
check failed: ret ==0 ( -1 vs 0)
check failed: e == CL_SUCCESS == false: OpenCL Error, code=-5: CL_OUT_OF_RESOURCES





---
[Visit Topic](https://discuss.tvm.apache.org/t/check-failed-allow-missing-false-device-api-gpu-is-not-enabled/9532/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/2a3e23e34d586081c218fcb7e8c06aa20a6802f218342d3a5304b6b77e20d909).

[Apache TVM Discuss] [Questions] Check failed:allow_missing ==false :device API gpu is not enabled

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

it solve the error but make errors below: check failed: ret ==0 ( -1 vs 0) check failed: e == CL_SUCCESS == false: OpenCL Error, code=-5: CL_OUT_OF_RESOURCES





---
[Visit Topic](https://discuss.tvm.apache.org/t/check-failed-allow-missing-false-device-api-gpu-is-not-enabled/9532/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/1f8706fc6035dfdc45233748d23053f27fbf0c78f45869907971b78ff8ccdc69).

[Apache TVM Discuss] [Questions] Check failed:allow_missing ==false :device API gpu is not enabled

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

You need to use `tvm.cl(0)` for opencl target. Or better: `tvm.context(target, 0)`





---
[Visit Topic](https://discuss.tvm.apache.org/t/check-failed-allow-missing-false-device-api-gpu-is-not-enabled/9532/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/b148ad2c3acee3316052c06b7af3963ed62f370f65db3543d8b2e036d5e17a7f).