How to use libtorch on Jetson TX2

Refer to https://forums.developer.nvidia.com/t/pytorch-for-jetson-nano-version-1-5-0-now-available/72048,I successfully installed Pytorch 1.0.0 and torchvision0.2.2 on jetpack4.3.According to the authentication method, I also succeeded in authentication: python–>import torch…
However,I want to call a scriptModel by libtorch on a QT project.but meet the error:
error:undefined reference to ‘nvrtcGetProgramLogSize’
error:undefined reference to ‘culaunchKernel’
error:undefined reference to ‘nvrtcComplieProgram’
error:undefined reference to ‘nvrtcCreateProgram’
error:undefined reference to ‘nvrtcGetErrorString’
error:undefined reference to ‘cuModuleGetFunction’
and so on.

Also I can not find libnvrtc.so at ~/.local/lib/python3.6/site-packages/torch/lib.

what is the problem?

I really have no idea about this error.I also can not found the solution on network。who can help me?

Hi @tianhuxiaozi, please see my reply to your other post here:

https://forums.developer.nvidia.com/t/pytorch-for-jetson-nano-version-1-5-0-now-available/72048/434

First I recommend to try upgrading to newer version of PyTorch, but if you continue to face the issue you can try building PyTorch from source on your system.

BTW, libnvrtc.so is found under /usr/local/cuda/lib64/

Thank you very much.