Skip to content

Conversation

xuhdev
Copy link
Collaborator

@xuhdev xuhdev commented Jul 26, 2019

Currently there is no way to build MKLDNN more optimized than sse4. This commit let MKLDNN build respect USE_NATIVE_ARCH.

…ATIVE_ARCH

Currently there is no way to build MKLDNN more optimized than sse4. This
commit let MKLDNN build respect USE_NATIVE_ARCH.
@xuhdev xuhdev requested review from ezyang and soumith July 26, 2019 18:33
@pytorchbot pytorchbot added the module: build Build system issues label Jul 26, 2019
@ezyang
Copy link
Contributor

ezyang commented Jul 26, 2019

LGTM. @gujinghui or @XiaobingSuper could you review? I'll merge in a little bit if you don't have time.

@gujinghui
Copy link
Collaborator

If highlight in cmake/Summary.cmake and define in CMakeLists.txt as an dependent option, will be perfect to me.

@xuhdev
Copy link
Collaborator Author

xuhdev commented Jul 27, 2019

If highlight in cmake/Summary.cmake and define in CMakeLists.txt as an dependent option, will be perfect to me.

I didn't define another build option because USE_NATIVE_ARCH should be pretty clear as what the user wants. It is very rare to intend to build one part natively and another part generically. Does it make sense to you?

@gujinghui
Copy link
Collaborator

OK. I see it in below line. Good to me. Pls go ahread.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Jul 29, 2019
…ATIVE_ARCH (#23445)

Summary:
Currently there is no way to build MKLDNN more optimized than sse4. This commit let MKLDNN build respect USE_NATIVE_ARCH.
Pull Request resolved: pytorch/pytorch#23445

Differential Revision: D16542275

Pulled By: ezyang

fbshipit-source-id: 550976531d6a52db9128c0e3d4589a33715feee2
@facebook-github-bot
Copy link
Contributor

@ezyang merged this pull request in 09ba4df.

@xuhdev xuhdev deleted the mkldnn-native-arch branch July 31, 2019 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants