Skip to content

Update tensorflow and llvm submodules.#762

Closed
stellaraccident wants to merge 1 commit intoiree-org:masterfrom
stellaraccident:bumpllvm_20200213
Closed

Update tensorflow and llvm submodules.#762
stellaraccident wants to merge 1 commit intoiree-org:masterfrom
stellaraccident:bumpllvm_20200213

Conversation

@stellaraccident
Copy link
Copy Markdown
Collaborator

  • tensorflow -> head
  • llvm -> head (not tensorflow version because incompatible)
  • llvm bazel build files: imported from tensorflow and manually patched
  • adapted to new dialect registration scheme by adding calls to the registration method
  • all tests pass on my linux vm with bazel (sans Vulkan due to no graphics card)
  • will give cmake a shot in a minute but this has been a lot already and need to sign off

* tensorflow -> head
* llvm -> head (not tensorflow version because incompatible)
* llvm bazel build files: imported from tensorflow and manually patched
* adapted to new dialect registration scheme by adding calls to the registration method
* all tests pass on my linux vm with bazel (sans Vulkan due to no graphics card)
* will give cmake a shot in a minute but this has been a lot already and need to sign off
@marbre
Copy link
Copy Markdown
Member

marbre commented Feb 14, 2020

@stellaraccident I can take over and give CMake a try based on what you already did.

@stellaraccident
Copy link
Copy Markdown
Collaborator Author

stellaraccident commented Feb 14, 2020 via email

@stellaraccident
Copy link
Copy Markdown
Collaborator Author

stellaraccident commented Feb 14, 2020 via email

@marbre
Copy link
Copy Markdown
Member

marbre commented Feb 14, 2020

Intermediate status:

  • Got a build working with all test passing, expect the tree also failing before.
    168 - iree_tools_vm_util_test (Failed)
    172 - iree_samples_custom_modules_custom_modules_test (Failed)
    173 - iree_samples_simple_embedding_simple_embedding_test (Failed)
  • Further refactoring required with regard to ALWAYSLINK. The current configuration doubles the sizes of the executables (e.g. iree-opt).

@marbre
Copy link
Copy Markdown
Member

marbre commented Feb 14, 2020

I opened #763 as a follow up and to discuses my modifications. My branch might need rebasing (this and an earlier PR of mine are merged), but if you like feel free to take back over again.

@marbre
Copy link
Copy Markdown
Member

marbre commented Feb 14, 2020

I'd really love to get the cmake version working again and stable so I can use it as a main mechanism of developing... believe it or not, my CMake builds are ~3-5x faster than corresponding Bazel builds and build the whole project in about 2 minutes (CMake maxes out all 64 cores in my machine, whereas Bazel rarely utilizes more than ~20).

@OliverUrbann We need a more powerfull build machine as well. My 16GB RAM are not sufficient to run six linker processes in parallel. It actually resulted in eating up nearly my whole swap and an unusable system. 64 cores and appropriate RAM sounds adequate ;)

@antiagainst
Copy link
Copy Markdown
Member

Yeah right now we can rely on the gigantic initAllDialects and initAllPasses. In the future we will need distilled ones with explicit register*() in binaries like what is happening with

https://github.com/llvm/llvm-project/blob/b6a9fe209992789be3ed95664d25196361cfad34/mlir/tools/mlir-opt/mlir-opt.cpp#L81-L104

@GMNGeoffrey
Copy link
Copy Markdown
Contributor

This needs some surgery upstream where we have stricter checks on depending on the rule that exports the headers you use.

copybara-service Bot pushed a commit that referenced this pull request Feb 14, 2020
* tensorflow -> head
* llvm -> head (not tensorflow version because incompatible)
* llvm bazel build files: imported from tensorflow and manually patched
* adapted to new dialect registration scheme by adding calls to the registration method
* all tests pass on my linux vm with bazel (sans Vulkan due to no graphics card)
* will give cmake a shot in a minute but this has been a lot already and need to sign off

Closes #762

FUTURE_COPYBARA_INTEGRATE_REVIEW=#762 from stellaraccident:bumpllvm_20200213 2809231
PiperOrigin-RevId: 295168058
copybara-service Bot pushed a commit that referenced this pull request Feb 14, 2020
* tensorflow -> head
* llvm -> head (not tensorflow version because incompatible)
* llvm bazel build files: imported from tensorflow and manually patched
* adapted to new dialect registration scheme by adding calls to the registration method
* all tests pass on my linux vm with bazel (sans Vulkan due to no graphics card)
* will give cmake a shot in a minute but this has been a lot already and need to sign off

Closes #762

FUTURE_COPYBARA_INTEGRATE_REVIEW=#762 from stellaraccident:bumpllvm_20200213 2809231
PiperOrigin-RevId: 295168058
copybara-service Bot pushed a commit that referenced this pull request Feb 14, 2020
* tensorflow -> head
* llvm -> head (not tensorflow version because incompatible)
* llvm bazel build files: imported from tensorflow and manually patched
* adapted to new dialect registration scheme by adding calls to the registration method
* all tests pass on my linux vm with bazel (sans Vulkan due to no graphics card)
* will give cmake a shot in a minute but this has been a lot already and need to sign off

Closes #762

FUTURE_COPYBARA_INTEGRATE_REVIEW=#762 from stellaraccident:bumpllvm_20200213 2809231
PiperOrigin-RevId: 295168058
copybara-service Bot pushed a commit that referenced this pull request Feb 14, 2020
This is a adds changes to get the CMake build working again. It includes the commits of #744 and #762, which can be removed from this PR after those made it to the master, followed by a rebase.

Closes #763

FUTURE_COPYBARA_INTEGRATE_REVIEW=#763 from iml130:bumpllvm_20200213 b584647
PiperOrigin-RevId: 295192350
copybara-service Bot pushed a commit that referenced this pull request Feb 14, 2020
This is a adds changes to get the CMake build working again. It includes the commits of #744 and #762, which can be removed from this PR after those made it to the master, followed by a rebase.

Closes #763

FUTURE_COPYBARA_INTEGRATE_REVIEW=#763 from iml130:bumpllvm_20200213 b584647
PiperOrigin-RevId: 295192350
@marbre
Copy link
Copy Markdown
Member

marbre commented Feb 18, 2020

Yeah right now we can rely on the gigantic initAllDialects and initAllPasses. In the future we will need distilled ones with explicit register*() in binaries like what is happening with

https://github.com/llvm/llvm-project/blob/b6a9fe209992789be3ed95664d25196361cfad34/mlir/tools/mlir-opt/mlir-opt.cpp#L81-L104

Would you propose to fork mlir-opt.cpp and maintain an IREE specific main entry function, like IREE's translate_main.cc replacing mlir-translate.cpp?

@antiagainst
Copy link
Copy Markdown
Member

Sorry for the late reply. Yeah I think that makes sense. mlir-opt is for testing purpose in MLIR core so it's pulling in all core dialects/passes for that. TF has its own tf-opt. Right now our iree-opt does not control the main function but I think we should.

@marbre
Copy link
Copy Markdown
Member

marbre commented Feb 25, 2020

Okay, will go for it after I returned to the office from C4ML. I think I will send a PR latest end of the week.

copybara-service Bot pushed a commit that referenced this pull request Mar 3, 2020
Follow up to the discussion with @antiagainst started [here](#762 (comment)). This serves as the basis to reduce the number of registered and linked passes.

Closes #858

COPYBARA_INTEGRATE_REVIEW=#858 from iml130:opt_main 716c03a
PiperOrigin-RevId: 298646127
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