pytorch/cmake
Nathan John Sircombe bf00d26deb Enables builds with Compute Library backend for oneDNN (#55913)
Summary:
Since v1.7, oneDNN (MKL-DNN) has supported the use of Compute Library
for the Arm architeture to provide optimised convolution primitives
on AArch64.

This change enables the use of Compute Library in the PyTorch build.
Following the approach used to enable the use of CBLAS in MKLDNN,
It is enabled by setting the env vars USE_MKLDNN and USE_MKLDNN_ACL.
The location of the Compute Library build must be set useing `ACL_ROOT_DIR`.

This is an extension of the work in https://github.com/pytorch/pytorch/pull/50400
which added support for the oneDNN/MKL-DNN backend on AArch64.

_Note: this assumes that Compute Library has been built and installed at
ACL_ROOT_DIR. Compute library can be downloaded here:
`https://github.com/ARM-software/ComputeLibrary`_

Fixes #{issue number}

Pull Request resolved: https://github.com/pytorch/pytorch/pull/55913

Reviewed By: ailzhang

Differential Revision: D28559516

Pulled By: malfet

fbshipit-source-id: 29d24996097d0a54efc9ab754fb3f0bded290005
2021-05-20 07:43:56 -07:00
..
External cmake: Enable (s)ccache for nccl builds (#55814) 2021-04-13 14:49:25 -07:00
Modules Adding PyTorch + DNNL + AMD BLIS path (#54953) 2021-03-31 10:40:25 -07:00
Modules_CUDA_fix Lint trailing newlines (#54737) 2021-03-30 13:09:52 -07:00
public Enables builds with Compute Library backend for oneDNN (#55913) 2021-05-20 07:43:56 -07:00
Allowlist.cmake Replace whitelist with allowlist (#42067) 2020-07-28 08:01:16 -07:00
BuildVariables.cmake Remove Caffe2_MAIN_LIBS (#38408) 2020-05-15 12:27:15 -07:00
Caffe2Config.cmake.in Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
Caffe2ConfigVersion.cmake.in Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
cmake_uninstall.cmake.in Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
Codegen.cmake [pytorch] reintroduce static dispatch (#51957) 2021-02-19 11:41:39 -08:00
DebugHelper.cmake Add debug helper function to check target property (#52093) 2021-02-11 15:37:14 -08:00
Dependencies.cmake step 0 of cuDNN v8 convolution API integration (#51390) 2021-05-19 12:54:09 -07:00
GoogleTestPatch.cmake Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
iOS.cmake Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
Metal.cmake [GPU] Enable Metal on macosx (#47635) 2020-11-17 14:44:34 -08:00
MiscCheck.cmake Fix warning when running scripts/build_ios.sh (#49457) 2021-01-11 19:31:32 -08:00
ProtoBuf.cmake Renaming CAFFE2_API to TORCH_API (#49496) 2020-12-18 10:54:50 -08:00
ProtoBufPatch.cmake Patch generate files for system protobuf (#44583) 2020-09-29 18:06:33 -07:00
Summary.cmake Enables builds with Compute Library backend for oneDNN (#55913) 2021-05-20 07:43:56 -07:00
TorchConfig.cmake.in Expand Kineto platform support (ci-all) (#56323) 2021-05-05 15:00:01 -07:00
TorchConfigVersion.cmake.in Formatting cmake (to lowercase without space for if/elseif/else/endif) (#35521) 2020-03-27 14:25:17 -07:00
VulkanCodegen.cmake [vulkan] Fix glslc path for desktop build (#56507) 2021-05-11 14:18:39 -07:00
VulkanDependencies.cmake [Vulkan]Fix build warnings-treated-as-error on Linux. (#52781) 2021-03-03 13:48:43 -08:00