Skip to content

Merge main -> google - #3700

Merged
copybara-service[bot] merged 10 commits into
iree-org:googlefrom
hanhanW:main-to-google
Nov 3, 2020
Merged

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

Conversation

@hanhanW

@hanhanW hanhanW commented Nov 3, 2020

Copy link
Copy Markdown
Contributor

bjacob and others added 9 commits November 2, 2020 13:20
…n. (iree-org#3673)

* Add script to symbolize android stacks, particularly for use with Asan.

You just paste some ASan output to a text file and feed that to stdin to
this script. It will then pull the files out of the device and symbolize
them on the host using the NDK-provided host build of llvm-symbolizer.
Because it just pulls files from the device, there's no need to point
this script to any particular obj dir. It's easy to use.

ANDROID_NDK=~/android-ndk-r21d ~/android-symbolize.sh < ~/a

Discussion of alternatives: android/ndk#753

* rename
…e-org#3664)

* Add an "executable tutorial" going from zero to tracy on android
benchmark.

The idea is that a beginner would run it a few times, then it'd be
mostly useful as a tutorial to read steps from, not intended to be used
long term as a black box tool.

Just try running it. It'll complain a bit that you need to define
environment variables IREE_ROOT and ANDROID_NDK, and once you do that,
it should figure all the rest, including building tracy UI, going
through the whole steps of compiling an android benchmark workload,
running that in tracy, setting up port forwarding, and finally telling
you to run a command to run your (newly built) tracy UI to connect
and show the trace.
* 2963dff Merge main -> google
* 6e3ab35 Synchronize submodules
* 5ce8467 Synchronize submodules with LLVM at llvm/llvm-project@9bb9b737c557
* Forward some more CMake variables to host builds.

This makes it so that these variables (which control sanitizers, use of
ccache, and cmake verbosity) apply also to the host build, not just to
the target build.

* address Scott's review comment
…rg#3688)

1. Don't add IREE_DEFAULT_COPTS to CMake's global compiler flags.
  This was apparently a recent change not fitting with the
  intended purpose of IREE_DEFAULT_COPTS, which is to populate
  the default copts of iree_cc_* bazel-ish rules.

  In effect, this means that IREE_DEFAULT_COPTS only affects
  IREE code and not e.g. third_party code.

  I needed to change
  this now because when building with ASan, this caused
  third_party/llvm-project to build with -fsanitize=address,
  however on Android we also need to pass a linker flag for
  that to work, and that wan't being passed to the LLVM
  build, making it fail.

2. Don't check for compiler support for -fsanitize= flags.
  If the user explicitly enables a sanitizer, just use it.
  This only makes a difference to the error message, should
  not make any change to what succeeds/fails.

  Again, I needed to make that change now because of the
  need to pass a linker flag on Android, which there was
  no way to pass to this CMake compiler-support-check macro.
…ee-org#3693)

* Put sanitizer flags in global CMake variables, affecting all code

My concern with putting it only on IREE code and not say on LLVM code
is that we might end up getting inconsistent results, particularly
with symbols used in both IREE and non-IREE code --- ODR violations,
concern here is both with the undefined-behavior aspect of that and
with the more down to earch concern that we want consistent sanitizer
behavior in say std::string code that might be used on both sides.

* Move the sanitizers stuff out of iree_copts.cmake now that it's
no longer about IREE_*_COPTS.
…s. (iree-org#3697)

If there are multiple blocks in a function, all the blocks should be
cloned with the correct mapping.
* Add a IREE_ENABLE_CCACHE build option. OFF by default.

If enabled, this will try to detect ccache, and if found, CMake will
be told to use it. No-op if ccache is not found.

* move down to the right section
@google-cla google-cla Bot added the cla: yes label Nov 3, 2020
@copybara-service
copybara-service Bot merged commit bbd58ca into iree-org:google Nov 3, 2020
@hanhanW hanhanW mentioned this pull request Nov 3, 2020
hanhanW added a commit that referenced this pull request Nov 3, 2020
* 766a35d Synchronize submodules
* db94774 Integrate LLVM at llvm/llvm-project@701456b52355
* bbd58ca Merge pull request #3700 from hanhanW:main-to-google
* 1874d14 Add license to scripts
* 59f5d81 Synchronize submodules
* 7b5514e Synchronize submodules with LLVM at llvm/llvm-project@756f59784108
* 35e5a67 Synchronize submodules
* 304b26c Integrate LLVM at llvm/llvm-project@756f59784108
* b6f2c46 Synchronize submodules
* 9ba0807 Integrate LLVM at llvm/llvm-project@72ddd559b8aa
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.

2 participants