Skip to content

Main to google - #4136

Merged
GMNGeoffrey merged 7 commits into
iree-org:googlefrom
stellaraccident:main-to-google
Dec 9, 2020
Merged

GMNGeoffrey merged 7 commits into
iree-org:googlefrom
stellaraccident:main-to-google

Conversation

@stellaraccident

Copy link
Copy Markdown
Collaborator

No description provided.

ScottTodd and others added 6 commits December 7, 2020 10:46
…4130)

Fixes iree-org#3842

We have two optional graphical application binaries using [SDL2](https://www.libsdl.org/) and [Dear ImGui](https://github.com/ocornut/imgui):
* [vulkan_inference_gui](https://github.com/google/iree/blob/main/iree/samples/vulkan/vulkan_inference_gui.cc)
* [iree-run-module-vulkan-gui](https://github.com/google/iree/blob/main/iree/testing/vulkan/iree-run-module-vulkan-gui-main.cc)

As these applications are optional, we don't need to support Bazel.

We don't need to directly include the source for SDL2 and Dear ImGui as git submodules in IREE itself, so this moves those dependencies to CMake-only libraries found via `find_package`. The libraries can be installed in any way developers want, or via [vcpkg](https://github.com/microsoft/vcpkg).

Tested on Windows using:
```
λ vcpkg install sdl2[vulkan]
λ vcpkg install imgui[vulkan-binding,sdl2-binding]
λ vcpkg integrate install
```

The install command instructed me to add `-DCMAKE_TOOLCHAIN_FILE=D:/dev/tools/vcpkg/scripts/buildsystems/vcpkg.cmake` to my CMake configure command, which sets up the includes. We can integrate more directly with vcpkg and document its usage over time.
* Add generated VM opcode table to java bindings

* Remove unused gentbl symbol

* Move generated file to iree/vm/

* Update CMakeLists.txt and file paths in BUILD file

* Update BUILD file paths

* Move bytecode_op_table.h to a new subdirectory for generated files

* Move generated file to srcs and remove unnecessary copt
- Remove remaining %-string substitutions (`absl.logging` excluded).
- Replace all `subprocess.check_*` calls with the recommended `subprocess.run(check=True,...)`.
- Add TODO(iree-org#4131) for the following:
  - `python>=3.7: Use postponed type annotations.`
  - `python>=3.7: Consider using a dataclass.`
  - `python>=3.7: Use capture_output=True.`
  - `python>=3.7: Replace 'universal_newlines' with 'text'.`
  - `python>=3.7: Remove redundant OrderedDict.`
@google-cla google-cla Bot added the cla: yes label Dec 9, 2020
* Ignores local changes to deleted file.
copybara-service Bot pushed a commit that referenced this pull request Dec 9, 2020
FUTURE_COPYBARA_INTEGRATE_REVIEW=#4136 from stellaraccident:main-to-google e84d1c6
PiperOrigin-RevId: 346456015
@GMNGeoffrey
GMNGeoffrey merged commit 6463a9e into iree-org:google Dec 9, 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