File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,11 @@ build:avx_windows --copt=/arch:AVX
9696
9797build:mkl_open_source_only --define=tensorflow_mkldnn_contraction_kernel=1
9898
99+ # Config setting to build oneDNN with Compute Library for the Arm Architecture (ACL).
100+ build:mkl_aarch64_threadpool --define=build_with_mkl_aarch64=true
101+ build:mkl_aarch64_threadpool --@compute_library//:openmp=false
102+ build:mkl_aarch64_threadpool -c opt
103+
99104# Disable clang extention that rejects type definitions within offsetof.
100105# This was added in clang-16 by https://reviews.llvm.org/D133574.
101106# Can be removed once upb is updated, since a type definition is used within
Original file line number Diff line number Diff line change @@ -485,7 +485,10 @@ async def main():
485485
486486 if not args .disable_mkl_dnn :
487487 logging .debug ("Enabling MKL DNN" )
488- wheel_build_command .append ("--config=mkl_open_source_only" )
488+ if target_cpu == "aarch64" :
489+ wheel_build_command .append ("--config=mkl_aarch64_threadpool" )
490+ else :
491+ wheel_build_command .append ("--config=mkl_open_source_only" )
489492
490493 if args .target_cpu_features == "release" :
491494 if arch in ["x86_64" , "AMD64" ]:
You can’t perform that action at this time.
0 commit comments