Compiling llvm and mlir as shared objects linked to xla #19331
Unanswered
Guillermo-Callaghan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to compile the
mlirandllvmpart of the project as sharedobjects instead of having a binary that is mostly static. However, I am new to
bazel and I couldn't find a way to do it.
Setting the attribute
linkstatic = False,to themlir-hlo-optrule targetcreates a binary with many dynamic libraries (around
315).I am looking to end with something like this, with
libLLVM.soandlibMLIR.sodynamically link:
ldd bazel-bin/xla/mlir_hlo/mlir-hlo-opt libLLVM.so => /myllvm/libLLVM.so.0 (0x0000ffffbxxxxxx) libMLIR.so => /mymlir/libMLIR.so.0 (0x0000ffffbxxxxxx) libdl.so.2 => /lib64/libdl.so.2 (0x0000ffffbb256000) libm.so.6 => /lib64/libm.so.6 (0x0000ffffbb185000) libstdc++.so.6 => /lib64/libstdc++.so.6 (0x0000ffffb0d1b000) libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000ffffb0cf6000) libpthread.so.0 => /lib64/libpthread.so.0 (0x0000ffffbaf48000) libc.so.6 => /lib64/libc.so.6 (0x0000ffffbadb2000) linux-vdso.so.1 (0x0000ffffbb2b5000) /lib/ld-linux-aarch64.so.1 (0x0000ffffbb277000)Can this be done?
Beta Was this translation helpful? Give feedback.
All reactions