Anyone who knows how to set compile target for Jetson Nano?


#1

Follow the tutorial of Cross Compilation and RPC, I try to export a .so file for in Nvidia Jetson Nano.
I set the target=‘cuda’, make the export as
func.export_library("./tvm_output/myfunc_nano_cr_cuda.so", cc = "/usr/bin/aarch64-linux-gnu-gcc")
because of the cpu architecture of Nano is aarch64-linux-gnu-gcc. But I got the error:
> RuntimeError: Compilation error:
> aarch64-linux-gnu-gcc: error trying to exec ‘cc1plus’: execvp: No such file or directory.

However, if I change the target to "llvm target = aarch64-linux-gnu-gcc ", the error disappears. But the compiled library couldn’t use gpu.

So I thinks the error maybe related to the different architecture of local GPU and Nano’s GPU, of which the former is Pascal, while the latter is Maxwell. So, there should be a specific setting for the target.
Can anyone offer some help? Thank you!