XLA with ASAN?

41 views
Skip to first unread message

Alexander Pivovarov

unread,
Apr 23, 2024, 6:24:27 PMApr 23
to OpenXLA Discuss
Hello Everyone

Do we have any document/article explaining how to build XLA tools with ASAN enabled?

E.g. for the following tool
bazel build //xla/tools:run_hlo_module

bazel-bin/xla/tools/run_hlo_module \
--input_format=hlo \
--input_module=model.hlotxt \
--platform=CPU
--print_literals=true


Thank you
Alex

t kevin

unread,
Apr 23, 2024, 9:02:20 PMApr 23
to Alexander Pivovarov, OpenXLA Discuss
I used to compile TF with
bazel build --config=asan

Hope this still works.

Cheers
Kevin

Alexander Pivovarov <apivo...@gmail.com> 于2024年4月24日周三 06:24写道:
> --
> You received this message because you are subscribed to the Google Groups "OpenXLA Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to openxla-discu...@openxla.org.
> To view this discussion on the web visit https://groups.google.com/a/openxla.org/d/msgid/openxla-discuss/CAKKt98QF4iSDTdK9eOBJNLs2u2jHsztfUV2HepzVb0Z9yUwumA%40mail.gmail.com.
> For more options, visit https://groups.google.com/a/openxla.org/d/optout.

Farid Zakaria

unread,
Apr 24, 2024, 1:23:56 AMApr 24
to t kevin, Alexander Pivovarov, OpenXLA Discuss
Not familiar with XLA default bazelrc but Bazel native CC toolchain has support for sanitizers through the "--feature" flag

You can see an example on StableHLO of how to call it: https://github.com/openxla/stablehlo/pull/2197

Reply all
Reply to author
Forward
0 new messages