Not use OpenMP for android build (#3636)

This commit is contained in:
gwang-msft 2020-04-22 21:17:05 -07:00 committed by GitHub
parent 00917917d6
commit 02bae6bd06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -525,7 +525,7 @@ def generate_build_tree(cmake_path, source_dir, build_dir, cuda_home,
"-Donnxruntime_USE_NNAPI=" + ("ON" if args.use_dnnlibrary else "OFF"),
"-Donnxruntime_USE_OPENMP=" + (
"ON" if args.use_openmp and not args.use_dnnlibrary and
not args.use_mklml and not args.use_ngraph else "OFF"),
not args.use_mklml and not args.use_ngraph and not args.android else "OFF"),
"-Donnxruntime_USE_TVM=" + ("ON" if args.use_tvm else "OFF"),
"-Donnxruntime_USE_LLVM=" + ("ON" if args.use_llvm else "OFF"),
"-Donnxruntime_ENABLE_MICROSOFT_INTERNAL=" + (