Hi,

I would like to use relay compiler to build for ARM host. The target device is 
also ARM.
for X86 **(target="llvm")** I can easily use

`export_library(lib_export_path)`

I get a .so which can be loaded by runtime to create an executor factory.

For ARM, I build with **target="llvm -mtriple=aarch64-linux-gnu"**,
I can then export to a tar file, where I have 2 object files.

**I get a linker (ld) error when trying to export to .so though.**

do I need to do something like this:(?)

 `cross_compile = 'aarch64-linux-gnu-c++' `

`lib.export_library(lib_export_path, cc=cross_compile)`

I did not check since I don't have the ARM toolchain installed so it would 
fail. I assumed that it should work since llvm compiled to ops to ARM object 
files.

Thanks for the help





---
[Visit Topic](https://discuss.tvm.apache.org/t/build-for-arm-host/12152/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/f78428224ffb21840f95129a39a52c87cf918fede78465360e3f86477c0f91bf).

Reply via email to