-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] CUDA_ERROR_INVALID_IMAGE when deploying ResNet18 model to Jetson AGX Orin 32GB using TVM #17543
Comments
I tested a jetson-agx-xavier target today with a Jetson Xavier device. I got the same CUDA_ERROR_INVALID_IMAGE error. Has anyone ran a model on Jetson devices successfully recently? Or I should try earlier release tags? |
I printed out the command in python/tvm/contrib/nvcc.py when compiling model for target "nvidia/jetson-agx-xavier":
The arch and code arguments seem right. Any expert can help check? |
I actually have AGX Xavier, AGX Orin, and Orin Nano, but I haven't hit a similar error before. |
Thanks for the reply. I will compile TVM code and compile the model on the AGX Orin to see if error still happens. |
This error is most likely caused by different cuda versions on the host and device. Please notice that even if tvm is linked against the same cuda versions on the host and the device, it might still be using the wrong Please make sure that |
Expected behavior
The model should run successfully on the Jetson AGX Orin without any errors, producing a top-1 prediction from the TVM runtime.
Actual behavior
The code fails with the error
CUDA_ERROR_INVALID_IMAGE
when attempting to run the model on the Jetson AGX Orin. The error occurs when using the RPC connection.Environment
-TVM build flags
Steps to reproduce
Follow the instructions in the Deploy the Pretrained Model on Jetson Nano to deploy a pretrained model on Jetson AGX Orin 32GB version.
Use this script on the host machine:
Triage
The text was updated successfully, but these errors were encountered: