Skip to content

Merge main -> google - #2504

Merged
copybara-service[bot] merged 13 commits into
iree-org:googlefrom
ScottTodd:main-to-google
Jul 13, 2020
Merged

copybara-service[bot] merged 13 commits into
iree-org:googlefrom
ScottTodd:main-to-google

Conversation

@ScottTodd

Copy link
Copy Markdown
Member

GMNGeoffrey and others added 13 commits July 10, 2020 11:00
* defa1d9 Synchronize submodules                                                          
* a626b68 Update TF Submodule and LLVM BUILD files.                                       
* ae90fc5 Synchronize submodules                                                          
* a29d6a9 Integrate LLVM at llvm/llvm-project@c2a61ef38850      
* 07c9af5 Merge pull request iree-org#2462 from GMNGeoffrey:main-to-google
…cification. (iree-org#2452)

- Factors `set_random_seed` and `save_and_compile_tf_module` out of `tf_test_utils.py` into the new `tf_utils.py`.
  - I set the default behavior of `compile_tf_module` to be that it doesn't keep the saved model, since it's for most purposes an implementation detail. The main exceptions to this are the cases of comparing IREE benchmarks to other frameworks, and providing debugging info for tests.
- Simplifies the `tf_test_utils.compile_module` API by removing support for tests that have multiple modules.
  - This feature was unused internally and in OSS, and debugging wasn't fully supported in its implementation.
- Simplifies the way that modules are referenced in test files.
  - Previously, a union of `CompiledModules` was referenced with `self.modules.module_name.all`, and is now referenced with `self.get_module()`.
  - Specific `CompiledModule`s can still be referenced using `self.compiled_modules.backend_name`.

Additionally, whether or not compilation artifacts were being saved was inconsistently controlled by `FLAGS.debug_dir`. Some compilation artifacts were being saved to `--test_tempdir` in `FLAGS.debug_dir`s absence, while other compilation artifacts and the results of the test invocations weren't.

I changed the behavior to here to always save all compilation artifacts and results in `FLAGS.debug_dir/test_name` if `FLAGS.debug_dir` is provided, and in `--test_tempdir/test_name` otherwise.

Incidental changes:
- Deleted `exported_names_test.py` as it was redundant.
- Fixed bug where `iree_compiler_targets=["vulkan-*"]` created artifact names like `compiled__vulkan_.vmfb`.
This makes the description more in line with LLVM integrates and makes
the commit being integrated explicit.

Tested:
Not really. I guess we'll just see what happens the next time it runs. #yolo
* Refactor the performance testing for cooperative matrix and move it to
be ran on its own.
* expand the code to loop through different tiling size
to be able to find optimal size.
* Add a mode to check correctness against CPU calculation with smaller
matrices.
* Enable cooperative matrix pattern by default as it is now gatted by
cooperative matrix analysis.
* Change the signature createAddVulkanLaunchWrapperPass to give
better control to the model builder tests.
Check the return value of system and throw an error for non-zero to
avoid warnings about unused results.
…rg#2489)

We've been trying to figure out how to set this for a while and keep
running into warnings in third party code. I think this should take
care of it. We can add additional exclusions as necessary.

Closes iree-org#2389
This is required to function properly in open source.
This should reduce errors we only see on import into Google's source repository, where buildifier formatting is enforced.

Includes reformatting the WORKSPACE file, since that wasn't formatted previously (and WORKSPACE files are not checked internally) and marking the source list as not sortable in embed_data/BUILD which is already excluded from sorting internally.
This should provide a base point for periodic integrates.

Tested: no
@copybara-service
copybara-service Bot merged commit 0c0e2ba into iree-org:google Jul 13, 2020
@ScottTodd ScottTodd mentioned this pull request Jul 14, 2020
ScottTodd added a commit that referenced this pull request Jul 14, 2020
* 3a84646 Merge branch 'main' into google-to-main
* 60ce387 [ModelBuilder] Re-enable transfer JIT test
* 7a46740 Synchronize submodules
* 9649cb7 Integrate TF at https://github.com/tensorflow/tensorflow/commit/ 2f4444c1cff
* c96b251 Synchronize submodules
* 8aa1fa9 Integrate LLVM at llvm/llvm-project@84a1bc7f2c0c
* 66ca884 Synchronize submodules
* 2239c8b Integrate LLVM at llvm/llvm-project@300156932321
* 6e80f52 Synchronize submodules
* de5d794 Integrate LLVM at llvm/llvm-project@3667d87a33d3
* 78352fa Synchronize submodules
* 356ab20 Integrate LLVM at llvm/llvm-project@74c14202d90b
* 88075e6 Synchronize submodules
* 5433f83 Integrate LLVM at llvm/llvm-project@869d05fb3e44
* 6ff5fc7 Synchronize submodules
* 621ee82 Integrate LLVM at llvm/llvm-project@83080a294ad7
* 5584b4a [ModelBuilder] Temporarily disable transfer JIT test while fixing bug
* 0c0e2ba Merge pull request #2504 from ScottTodd:main-to-google
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.

9 participants