Issues with xls_opt

41 views
Skip to first unread message

Mohamed Faiz

unread,
Aug 19, 2022, 4:39:12 AM8/19/22
to xls-dev
Hi , I am very new to XLS HLS and trying out these tools. I followed the instruction as follows : 


Command I ran : bazel build -c opt xls/...



However, I found that I don't have the optimized IR files in tools:

./bazel-bin/xls/tools/xls_opt


Is it located elsewhere or do I miss any steps ?

zihao....@outlook.com

unread,
Aug 19, 2022, 8:46:14 AM8/19/22
to xls-dev
If you are looking for the optimizer's executable, the right path is "./bazel-bin/xls/tools/opt_main".

You know, documentation may not be up to date. If you want to know which target to build, go to check the `BUILD` file in each folder.

And you don't have to build the whole project. You can do, "bazel build -c opt //xls/tools/opt_main".

I think these suggestions are enough for you to get started and play around.

Leary, Chris

unread,
Aug 19, 2022, 1:10:23 PM8/19/22
to zihao....@outlook.com, xls-dev
Good tips -- I'll also make a point of updating the documentation toay to make it clear where IR files end up, thanks for reaching out!

--
You received this message because you are subscribed to the Google Groups "xls-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xls-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xls-dev/5b133a29-6d9a-423a-837a-6d8e1817d50bn%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leary, Chris

unread,
Aug 19, 2022, 4:46:08 PM8/19/22
to zihao....@outlook.com, xls-dev
Docs on "Whirlwind Intro To Bazel": https://google.github.io/xls/build_system/#whirlwind-intro-to-bazel -- feedback / PRs welcome!
Reply all
Reply to author
Forward
0 new messages