-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[v1.x] Mkldnn header fix v1x for nightly binaries #18797
Conversation
* cherry-pick: Fix missing MKLDNN headers (apache#18310) * Include all mkldnn headers in CD builds (apache#18355) * Fix cmake mkldnn install target. Previously mkldnn headers are installed to CMAKE_INSTALL_INCLUDEDIR instead of CMAKE_INSTALL_INCLUDEDIR/mkldnn * Fix pypi_package.sh pip/setup.py for mkldnn builds * Set CMAKE_CUDA_COMPILER in aarch64-linux-gnu-toolchain.cmake (apache#18713) CMAKE_CUDA_HOST_COMPILER will be reset if CMAKE_CUDA_COMPILER is not set as of cmake 3.17.3 See https://gitlab.kitware.com/cmake/cmake/-/issues/20826 Co-authored-by: Leonard Lausen <lausen@amazon.com>
Hey @ChaiBapchya , Thanks for submitting the PR
CI supported jobs: [unix-cpu, edge, windows-gpu, miscellaneous, centos-gpu, windows-cpu, website, sanity, unix-gpu, centos-cpu, clang] Note: |
if variant != 'NATIVE': | ||
shutil.copytree(os.path.join(CURRENT_DIR, 'mxnet-build/3rdparty/mkldnn/include'), | ||
os.path.join(CURRENT_DIR, 'mxnet/include/mkldnn')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a flag in mxnet runtime library on whether mkldnn is enabled. instead of relying on variant it will be more robust to switch to that as condition instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mean something like this: mxnet.runtime.Features.is_enabled("MKLDNN")
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh bummer I forgot to replace that if condition with runtime.Features
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think when enabling the branch protection, we accidentally turned on "Require branches to be up to date before merging". I'm requesting to disable it in https://issues.apache.org/jira/browse/INFRA-20616. Don't worry about updating the branch in this PR for now. |
Sure. Thanks Sheng for jumping in. I'll wait until the branch protection is fixed. |
@MoisesHer since this is merged, nightly binary of 4th Aug should have mkldnn. Can you verify? |
I can confirm mkldnn headers exist
Output
|
Description
Nightly binaries available at https://dist.mxnet.io/python with the label 1.7.0 are built from 1.x branch.
So to fix the MKLDNN header missing issue in Nightly binaries, we need to cherry-pick it into 1.x branch
Cherrypicks #18608
@MoisesHer @mseth10 @leezu @szha