[AutoTVM] Cross-compiler with AutoTVM

Hi,

The LocalBuilder of AutoTVM uses the “default” build function for compiling the tuning tasks. This results in the compilation of a TAR archive as shown below.

When running tuning over RPC, the default build function uploads the TAR archive to the target and compiles the required shared library natively on the target. How can I cross-compile the tuning tasks on the host such that the resulting cross-compiled shared libraries are uploaded to the target rather than the TAR archive in the default case? My target environment does not have access to compilation tools so the modules need to be cross-compiled on the host.

Thanks for your help.

Got it to work using cc.cross_compiler as the build function.

1 Like