Skip to content

Update third_party/ruy and use its own new CMakeLists.txt. - #4564

Merged
bjacob merged 5 commits into
iree-org:mainfrom
bjacob:ruy-update
Jan 25, 2021
Merged

bjacob merged 5 commits into
iree-org:mainfrom
bjacob:ruy-update

Conversation

@bjacob

@bjacob bjacob commented Jan 20, 2021

Copy link
Copy Markdown
Collaborator

No description provided.

@bjacob
bjacob requested a review from GMNGeoffrey January 20, 2021 22:10
@google-cla google-cla Bot added the cla: yes label Jan 20, 2021
@GMNGeoffrey

Copy link
Copy Markdown
Member

Looks like it's trying to run ruy's tests. We probably don't want to do that?

@benvanik

Copy link
Copy Markdown
Collaborator

Looks like it's trying to run ruy's tests. We probably don't want to do that?

correct (we should make sure it's only generating the libraries and no other targets - like benchmarks/test binaries/etc)

@bjacob

bjacob commented Jan 22, 2021 via email

Copy link
Copy Markdown
Collaborator Author

@bjacob

bjacob commented Jan 22, 2021

Copy link
Copy Markdown
Collaborator Author

Should be fixed by google/ruy#249, PTAL

Comment thread CMakeLists.txt Outdated
Comment on lines +449 to +450
# ruy must come after cpuinfo and googletest so it uses already-defined targets.
add_subdirectory(third_party/ruy EXCLUDE_FROM_ALL)

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.

If you guarded cpuinfo with the existence of its CMakeLists.txt as well, this wouldn't be required.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Cpuinfo is currently a mandatory dependency of Ruy (as far as the CMakeLists is concerned --- Bazel is different due to supporting some exotic platforms, but ruy's performance is degraded when cpuinfo is not available, and since Ruys CMake users care about performance, I didn't see a need to support cpuinfo-less builds in ruy cmakelists).

Sounds ok?

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'm not saying you should support cpuinfo-less builds of ruy, but you can support someone providing their own cpuinfo (as IREE does). If the ruy cpuinfo submodule isn't checked out, then that is a strong indicator that someone doesn't want to use the cpuinfo that comes from ruy's submodule (and must provide their own). Assuming the build just hard fails with "I can't find cpuinfo" (as opposed to silently degrading performance), then not adding the directory when it doesn't exist is nicer than requiring that ruy be added in some particular order.

@bjacob
bjacob merged commit 7defc33 into iree-org:main Jan 25, 2021
This was referenced Jan 25, 2021
@NatashaKnk NatashaKnk mentioned this pull request Jan 26, 2021
copybara-service Bot pushed a commit that referenced this pull request Jan 26, 2021
* 4da7ac0 Allow benchmark pipeline to be run on presubmit (#4607)
* efbf53d Integrate MLIR-EmitC at iml130/mlir-emitc@4e501d8 (#4610)
* 9cdd378 Revert removing explicit linker path in compile_android_modules.sh. (#4605)
* 7ed1872 Merge pull request #4601
* 4e1a69b Remove custom CMake cross compilation for Android. (#4584)
* 38210b5 Merge branch 'main' into google-to-main
* 7defc33 Update third_party/ruy and use its own new CMakeLists.txt. (#4564)
* 71c6802 Integrate MLIR-EmitC at iml130/mlir-emitc@4e501d8 (#4593)
* 7e4dd01 E2E implementation of all remaining fft types (#4585)
* 53fcde4 Merge google -> main (#4588)

COPYBARA_INTEGRATE_REVIEW=#4614 from NatashaKnk:main-to-google 4da7ac0
PiperOrigin-RevId: 353949105
iree-github-actions-bot pushed a commit that referenced this pull request Jan 26, 2021
* 4da7ac0 Allow benchmark pipeline to be run on presubmit (#4607)
* efbf53d Integrate MLIR-EmitC at iml130/mlir-emitc@4e501d8 (#4610)
* 9cdd378 Revert removing explicit linker path in compile_android_modules.sh. (#4605)
* 7ed1872 Merge pull request #4601
* 4e1a69b Remove custom CMake cross compilation for Android. (#4584)
* 38210b5 Merge branch 'main' into google-to-main
* 7defc33 Update third_party/ruy and use its own new CMakeLists.txt. (#4564)
* 71c6802 Integrate MLIR-EmitC at iml130/mlir-emitc@4e501d8 (#4593)
* 7e4dd01 E2E implementation of all remaining fft types (#4585)
* 53fcde4 Merge google -> main (#4588)

COPYBARA_INTEGRATE_REVIEW=#4614 from NatashaKnk:main-to-google 4da7ac0
PiperOrigin-RevId: 353949105
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.

3 participants