Skip to content

Add CMake build for ModelBuilder project - #2342

Merged
ThomasRaoux merged 2 commits into
iree-org:mainfrom
ThomasRaoux:main
Jul 1, 2020
Merged

ThomasRaoux merged 2 commits into
iree-org:mainfrom
ThomasRaoux:main

Conversation

@ThomasRaoux

Copy link
Copy Markdown
Contributor

Update bazel file to allow bazel_to_cmake to work. Add few workarounds
for dynamic library not working with the script.

@ThomasRaoux
ThomasRaoux marked this pull request as draft June 27, 2020 01:28
@ThomasRaoux
ThomasRaoux marked this pull request as ready for review June 27, 2020 01:29
Comment thread experimental/ModelBuilder/test/BUILD Outdated
# runtime libraries
"@llvm-project//mlir:tools/libvulkan-runtime-wrappers.so",
":runtime-support.so",
"//experimental/ModelBuilder/test:runtime-support.so",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this shouldn't be necessary. We should handle local references fine in bazel_to_cmake. Is it not working?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. Looking at it again it wasn't working due to the colon at the beginning. This is not needed in bazel so I removed it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What issue are you seeing with bazel_to_cmake if you leave this unchanged? My understanding is that this should work fine with leading colons in BUILD getting translated to leading :: in CMakeLists.txt, which we then prepend with the package path. I'm curious what failed.

Comment thread experimental/ModelBuilder/BUILD Resolved
Update bazel file to allow bazel_to_cmake to work. Add few workarounds
for dynamic library not working with the script.
@ThomasRaoux
ThomasRaoux merged commit 22ac50c into iree-org:main Jul 1, 2020
@ThomasRaoux
ThomasRaoux deleted the main branch July 2, 2020 00:39
@ThomasRaoux
ThomasRaoux restored the main branch July 2, 2020 00:39
@ThomasRaoux
ThomasRaoux deleted the main branch July 2, 2020 00:39
@GMNGeoffrey GMNGeoffrey mentioned this pull request Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants