Compare commits
83 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
1f96911490 | |
|
|
509e0e51fb | |
|
|
3e8e59569a | |
|
|
809d8b3ce3 | |
|
|
4aa34a7473 | |
|
|
3e2e4571ea | |
|
|
5074a00911 | |
|
|
9a61ce075e | |
|
|
4026500fa9 | |
|
|
cb561323e1 | |
|
|
31068de695 | |
|
|
dae78c7430 | |
|
|
683439f0dd | |
|
|
e5c0b80492 | |
|
|
ed837dea58 | |
|
|
1379a829ce | |
|
|
9baffac2d3 | |
|
|
87174d9561 | |
|
|
32658645b5 | |
|
|
9af75bb1e7 | |
|
|
4148cfc0c3 | |
|
|
a7e977a25e | |
|
|
9c570e316e | |
|
|
0fe6e20502 | |
|
|
d76d1df56d | |
|
|
e0c4f0bfb1 | |
|
|
f290098e3d | |
|
|
52c5f9befe | |
|
|
43f5ec7241 | |
|
|
5d7a31fc9d | |
|
|
cec2fea2ee | |
|
|
907c2553d0 | |
|
|
3e9b8f23d1 | |
|
|
fa3a07cd8b | |
|
|
fe435e296e | |
|
|
215d258411 | |
|
|
42429c5ecb | |
|
|
0b778d936f | |
|
|
0713e47db1 | |
|
|
5b1639ad56 | |
|
|
5d8bf2b56f | |
|
|
9e099f8497 | |
|
|
aecb280e17 | |
|
|
b7fd96b182 | |
|
|
898e63ea6f | |
|
|
cd14d06971 | |
|
|
b4c82be639 | |
|
|
c35d32d45a | |
|
|
425b1168ad | |
|
|
f40c33ff18 | |
|
|
780f40395a | |
|
|
8f60482bfd | |
|
|
c1a90b0870 | |
|
|
b798586988 | |
|
|
209b2f1e04 | |
|
|
9a27864e42 | |
|
|
44268e9ad8 | |
|
|
cdf9989211 | |
|
|
b181342f9d | |
|
|
0f298d22f9 | |
|
|
6a4743441e | |
|
|
eb23047515 | |
|
|
eb1472d129 | |
|
|
6b12f40d3e | |
|
|
6efa88c486 | |
|
|
80caa2a715 | |
|
|
8192c0034a | |
|
|
20fb63b4a5 | |
|
|
fb2b4f0617 | |
|
|
76616c83ff | |
|
|
75e8783495 | |
|
|
dd3191026f | |
|
|
68ffbc7c55 | |
|
|
b39f02ed2d | |
|
|
7ab5ba3a97 | |
|
|
0d1ab208b2 | |
|
|
a1d1b691fd | |
|
|
736db236c4 | |
|
|
e2111f9fdd | |
|
|
2cdf231575 | |
|
|
4be1d3489f | |
|
|
47efd5f9d1 | |
|
|
c1d65a3f76 |
|
|
@ -96,11 +96,11 @@ test_temp_summary_event_file/
|
|||
*.pkl
|
||||
*.pb
|
||||
.clangd
|
||||
mindspore/python/mindspore/version.py
|
||||
mindspore/python/mindspore/default_config.py
|
||||
mindspore/python/mindspore/device_target.py
|
||||
mindspore/python/mindspore/package_name.py
|
||||
mindspore/python/mindspore/.commit_id
|
||||
mindspore/version.py
|
||||
mindspore/default_config.py
|
||||
mindspore/device_target.py
|
||||
mindspore/package_name.py
|
||||
mindspore/.commit_id
|
||||
|
||||
# lite test file
|
||||
mindspore/lite/test/do_test/
|
||||
|
|
|
|||
|
|
@ -4,6 +4,3 @@
|
|||
[submodule "graphengine"]
|
||||
path = graphengine
|
||||
url = https://gitee.com/mindspore/graphengine.git
|
||||
[submodule "tests/models"]
|
||||
path = tests/models
|
||||
url = https://gitee.com/mindspore/models.git
|
||||
|
|
|
|||
|
|
@ -0,0 +1,54 @@
|
|||
approvers:
|
||||
- anyrenwei
|
||||
- baochong
|
||||
- c_34
|
||||
- chujinjin
|
||||
- ckey_dou
|
||||
- cristoval
|
||||
- ddwsky
|
||||
- gaoxiong1
|
||||
- ginfung
|
||||
- guoqi1024
|
||||
- hangangqiang
|
||||
- heleiwang
|
||||
- HilbertDavid
|
||||
- hwhewei
|
||||
- jjfeing
|
||||
- john_tzanakakis
|
||||
- jpc_chenjianping
|
||||
- kingxian
|
||||
- leonwanghui
|
||||
- liangchenghui
|
||||
- lilongfei15
|
||||
- limingqi107
|
||||
- linqingke
|
||||
- liucunwei
|
||||
- mickf
|
||||
- nsyca
|
||||
- ouwenchang
|
||||
- pandoublefeng
|
||||
- robingrosman
|
||||
- stsuteng
|
||||
- tom__chen
|
||||
- wangyue01
|
||||
- wenkai_dist
|
||||
- wilfchen
|
||||
- wuxuejian
|
||||
- xu-yfei
|
||||
- yelihua
|
||||
- yuchaojie
|
||||
- zh_qh
|
||||
- zhaizhiqiang
|
||||
- zhang_xue_tong
|
||||
- zhanghaibo5
|
||||
- zhanyuan1
|
||||
- zhoufeng54
|
||||
- zlq2020
|
||||
- zqstar
|
||||
reviewers:
|
||||
- nicholas_yhr
|
||||
- liubuyu
|
||||
- chengxb7532
|
||||
- xulei2020
|
||||
- jonyguo
|
||||
- lx0095
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
approvers:
|
||||
- anyrenwei
|
||||
- baochong
|
||||
- c_34
|
||||
- chujinjin
|
||||
- ckey_dou
|
||||
- cristoval
|
||||
- ddwsky
|
||||
- gaoxiong1
|
||||
- ginfung
|
||||
- guoqi1024
|
||||
- hangangqiang
|
||||
- heleiwang
|
||||
- HilbertDavid
|
||||
- hwhewei
|
||||
- jjfeing
|
||||
- john_tzanakakis
|
||||
- jonyguo
|
||||
- jpc_chenjianping
|
||||
- kingxian
|
||||
- liangchenghui
|
||||
- lilongfei15
|
||||
- limingqi107
|
||||
- linqingke
|
||||
- liucunwei
|
||||
- mickf
|
||||
- nsyca
|
||||
- ouwenchang
|
||||
- pandoublefeng
|
||||
- robingrosman
|
||||
- stsuteng
|
||||
- tiancixiao
|
||||
- tom__chen
|
||||
- wangyue01
|
||||
- wenkai_dist
|
||||
- wilfchen
|
||||
- wuxuejian
|
||||
- xu-yfei
|
||||
- yelihua
|
||||
- yuchaojie
|
||||
- zh_qh
|
||||
- zhaizhiqiang
|
||||
- zhang_xue_tong
|
||||
- zhanghaibo5
|
||||
- zhanyuan1
|
||||
- zhoufeng54
|
||||
- zlq2020
|
||||
- zqstar
|
||||
- z0020952
|
||||
- chenshushu2020
|
||||
reviewers:
|
||||
- nicholas_yhr
|
||||
- liubuyu
|
||||
- chengxb7532
|
||||
- lx0095
|
||||
|
|
@ -1,32 +1,26 @@
|
|||
# MindSpore
|
||||
"mindspore/mindspore/ccsrc/debug/anf_ir_utils.cc" "stlFindInsert"
|
||||
"mindspore/mindspore/ccsrc/backend/graph_compiler/transform.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/backend/graph_compiler/transform.cc" "constVariable"
|
||||
"mindspore/mindspore/ccsrc/vm/transform.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/vm/transform.cc" "constVariable"
|
||||
"mindspore/mindspore/ccsrc/utils/tensorprint_utils.cc" "invalidPointerCast"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/gpu/hal/device/mpi/mpi_initializer.cc" "syntaxError"
|
||||
"mindspore/mindspore/ccsrc/runtime/device/gpu/mpi/mpi_initializer.cc" "syntaxError"
|
||||
"mindspore/mindspore/core/abstract/prim_nn.cc" "zerodivcond"
|
||||
"mindspore/mindspore/ccsrc/frontend/operator/ops_front_infer_function.cc" "zerodivcond"
|
||||
"mindspore/mindspore/ccsrc/pipeline/jit/pipeline_split.cc" "zerodivcond"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/ascend/hal/device/ascend_stream_assign.cc" "useStlAlgorithm"
|
||||
"mindspore/mindspore/ccsrc/runtime/device/ascend/ascend_stream_assign.cc" "useStlAlgorithm"
|
||||
"mindspore/mindspore/ccsrc/frontend/operator/ops_front_infer_function.cc" "uninitvar"
|
||||
"mindspore/mindspore/ccsrc/pipeline/jit/action.cc" "constVariable"
|
||||
"mindspore/mindspore/ccsrc/pipeline/jit/validator.cc" "constVariable"
|
||||
"mindspore/mindspore/ccsrc/utils/tensorprint_utils.cc" "invalidPointerCast"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/ascend/optimizer/ir_fission/ir_fission/bn_grad_split.cc" "knownConditionTrueFalse"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/sparse_apply_ftrl_cpu_kernel.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/sparse_apply_adam_cpu_kernel.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/sparse_apply_lazy_adam_cpu_kernel.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/sparse_apply_proximal_adagrad_cpu_kernel.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/bn_grad_split.cc" "knownConditionTrueFalse"
|
||||
"mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/sparse_apply_ftrl_cpu_kernel.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/sparse_apply_adam_cpu_kernel.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/sparse_apply_lazy_adam_cpu_kernel.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/sparse_apply_proximal_adagrad_cpu_kernel.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/frontend/parallel/auto_parallel/rec_core/rec_generate_strategy.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/embedding_look_up_cpu_kernel.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/embedding_look_up_cpu_kernel.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/core/ops/strided_slice.cc" "zerodivcond"
|
||||
"mindspore/mindspore/core/ops/avg_pool_3d.cc" "zerodivcond"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/ascend/hal/hccl_adapter/hccl_adapter.cc" "useStlAlgorithm"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/gpu/kernel/arrays/cast_gpu_kernel.cc" "unknownMacro"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/ascend/hal/device/ascend_memory_manager.cc" "nullPointerArithmeticRedundantCheck"
|
||||
"mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/auto_monad.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/core/load_mindir/anf_model_parser.cc" "stlIfStrFind"
|
||||
"mindspore/mindspore/ccsrc/frontend/optimizer/ad/kpynative.cc" "containerOutOfBounds"
|
||||
"mindspore/mindspore/ccsrc/runtime/hccl_adapter/hccl_adapter.cc" "useStlAlgorithm"
|
||||
|
||||
# MindData
|
||||
"mindspore/mindspore/ccsrc/minddata/dataset/engine/dataset_iterator.cc" "useStlAlgorithm"
|
||||
|
|
@ -41,7 +35,6 @@
|
|||
# Lite
|
||||
"mindspore/mindspore/core/mindrt/src/thread/" "useStlAlgorithm"
|
||||
"mindspore/mindspore/lite/test/" "syntaxError"
|
||||
"mindspore/mindspore/lite/test/ut/tools/converter/registry/pass_registry_test.cc" "unknownMacro"
|
||||
"mindspore/mindspore/lite/src/ops/unsqueeze.cc" "useStlAlgorithm"
|
||||
"mindspore/mindspore/lite/tools/common/flag_parser.cc" "useStlAlgorithm"
|
||||
"mindspore/mindspore/lite/tools/common/tensor_util.cc" "useStlAlgorithm"
|
||||
|
|
@ -49,5 +42,3 @@
|
|||
"mindspore/mindspore/lite/tools/converter/quantizer/quantize_util.cc" "useStlAlgorithm"
|
||||
"mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/" "unreadVariable"
|
||||
"mindspore/mindspore/lite/src/runtime/kernel/opencl/cl/" "unreadVariable"
|
||||
"mindspore/mindspore/lite/examples/quick_start_micro/" "syntaxError"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental" "unreadVariable"
|
||||
|
|
|
|||
|
|
@ -5,22 +5,14 @@
|
|||
"mindspore/include/infer_tensor.h" "runtime/references"
|
||||
"mindspore/include/inference.h" "runtime/explicit"
|
||||
"mindspore/mindspore/core/abstract/utils.cc" "build/include_what_you_use"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/ascend/optimizer/buffer_fusion/ub_pattern_fusion.cc" "build/include_what_you_use"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/ascend/hal/device/profiling/profiling_callback_register.cc" "runtime/references"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/ascend/hal/device/profiling/profiling_manager.h" "runtime/references"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/ascend/hal/device/profiling/profiling_reporter.h" "runtime/references"
|
||||
"mindspore/mindspore/ccsrc/backend/optimizer/ascend/buffer_fusion/ub_pattern_fusion.cc" "build/include_what_you_use"
|
||||
"mindspore/mindspore/ccsrc/runtime/device/ascend/profiling/profiling_callback_register.cc" "runtime/references"
|
||||
"mindspore/mindspore/core/mindrt/src/actor/actormgr.h" "runtime/references"
|
||||
"mindspore/mindspore/core/mindrt/src/actor/actorpolicyinterface.h" "runtime/references"
|
||||
"mindspore/mindspore/core/mindrt/src/actor/actorthread.h" "runtime/references"
|
||||
"mindspore/mindspore/core/mindrt/src/actor/actorpolicy.h" "runtime/references"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/" "readability/casting"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/gpu/hal/device/gpu_kernel_runtime.cc" "build/include_what_you_use"
|
||||
"mindspore/mindspore/ccsrc/utils/convert_utils_py.cc" "whitespace/indent"
|
||||
|
||||
# Modelzoo
|
||||
"mindspore/model_zoo/official/cv/yolov4_tiny/infer/mxbase/src/Yolov4TinyDetection.h" "runtime/references"
|
||||
"mindspore/model_zoo/official/cv/yolov4_tiny/infer/mxbase/src/PostProcess/Yolov4TinyMindsporePost.h" "runtime/references"
|
||||
"mindspore/model_zoo/official/cv/resnet/infer/ResNet18/mxbase/Resnet18ClassifyOpencv.h" "runtime/references"
|
||||
"mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/" "readability/casting"
|
||||
"mindspore/mindspore/ccsrc/runtime/device/gpu/gpu_kernel_runtime.cc" "build/include_what_you_use"
|
||||
|
||||
# MindData
|
||||
"mindspore/mindspore/ccsrc/minddata/mindrecord/include/shard_page.h" "runtime/string"
|
||||
|
|
@ -37,8 +29,8 @@
|
|||
|
||||
# Lite
|
||||
"mindspore/mindspore/lite/include/lite_utils.h" "build/include_what_you_use"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/" "readability/casting"
|
||||
"mindspore/mindspore/lite/tools/converter/micro/coder/wrapper/" "readability/casting"
|
||||
"mindspore/mindspore/lite/nnacl/" "readability/casting"
|
||||
"mindspore/mindspore/lite/micro/coder/wrapper/" "readability/casting"
|
||||
"mindspore/mindspore/lite/tools/converter/parser/tflite/tflite_node_parser.h" "runtime/references"
|
||||
"mindspore/mindspore/lite/tools/converter/model_parser.h" "build/namespaces"
|
||||
"mindspore/mindspore/lite/tools/converter/parser/caffe/caffe_node_parser.cc" "readability/casting"
|
||||
|
|
@ -61,12 +53,3 @@
|
|||
"mindspore/mindspore/lite/src/runtime/thread_pool.c" "runtime/arrays"
|
||||
"mindspore/mindspore/lite/src/runtime/thread_pool.c" "runtime/int"
|
||||
"mindspore/mindspore/lite/src/ops/ops_def.cc" "runtime/int"
|
||||
"mindspore/mindspore/lite/examples/runtime_gpu_extend/src/cl" "legal/copyright"
|
||||
"mindspore/mindspore/lite/examples/runtime_gpu_extend/src/cl" "readability/casting"
|
||||
"mindspore/mindspore/lite/examples/runtime_gpu_extend/src/cl" "readability/fn_size"
|
||||
"mindspore/mindspore/lite/examples/quick_start_c/main.c" "readability/casting"
|
||||
"mindspore/mindspore/lite/examples/quick_start_c/main.c" "runtime/threadsafe_fn"
|
||||
"mindspore/mindspore/lite/examples/quick_start_micro" "readability/casting"
|
||||
"mindspore/mindspore/core/mindrt/include/async/try.h" "runtime/explicit"
|
||||
"mindspore/mindspore/core/mindrt/include/async/failure.h" "runtime/explicit"
|
||||
"mindspore/mindspore/core/mindrt/include/async/defer.h" "runtime/explicit"
|
||||
|
|
|
|||
|
|
@ -1,48 +0,0 @@
|
|||
# akg-third-party
|
||||
# file directory: mindspore/akg/third_party/incubator-tvm/
|
||||
|
||||
https://docs.tvm.ai/vta/tutorials/index.html
|
||||
http://raw.githubusercontent.com/uwsaml/web-data/master/vta/blogpost/vta_stack.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/docs/inferbound/passupdomain_problem.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/docs/inferbound/stage_graph.png:align
|
||||
https://docs.tvm.ai/tutorials/get_started.html#sphx-glr-tutorials-get-started-py
|
||||
http://docs.tvm.ai/tutorials/deployment/cross_compilation_and_rpc.html#sphx-glr-tutorials-deployment-cross-compilation-and-rpc-py
|
||||
https://docs.tvm.ai/api/python/module.html#tvm.module.Module.time_evaluatornum
|
||||
https://arxiv.org/abs/1509.09308https://github.com/andravin/wincnn
|
||||
https://homes.cs.washington.edu/~cyulin/media/gnn_model/gcn_%s.torch
|
||||
https://docs.tvm.ai/api/python/schedule.html#tvm.schedule.Stage.storage_align
|
||||
https://homes.cs.washington.edu/~haichen/
|
||||
https://docs.tvm.ai/dev/relay_pass_infra.html
|
||||
https://en.cppreference.com/w/cpp/numeric/math/roundhttps://en.cppreference.com/w/cpp/numeric/math/nearbyint
|
||||
https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.csr_matrix.htmlandhttps://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.sparse.bsr_matrix.htmlfor
|
||||
https://arxiv.org/abs/1706.02515alpha
|
||||
https://tinyurl.com/y5k6fz5w.We
|
||||
https://tinyurl.com/y4d7hrzf.We
|
||||
https://raw.githubusercontent.com/uwsampl/tvm-distro/master/tophub
|
||||
https://arxiv.org/abs/1409.3215-
|
||||
https://arxiv.org/abs/1706.02515alpha
|
||||
https://discuss.tvm.ai/t/pool2d-gives-bad-output-for-integer-inputs/3377low
|
||||
http://www.apache.org/licenses/LICENSE-2.0////
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/docs/inferbound/gatherbound.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/docs/inferbound/inferbound_traversal.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/relay/let_scope.png:align
|
||||
http://raw.githubusercontent.com/uwsaml/web-data/master/vta/blogpost/vta_overview.png:align
|
||||
http://raw.githubusercontent.com/uwsaml/web-data/master/vta/developer/dataflow.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/docs/inferbound/inferbound_phases.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/docs/inferbound/passupdomain_div.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/docs/inferbound/passupdomain_min.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/relay/dataflow.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/relay/dataflow_vs_func.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/docs/inferbound/gatherbound_problem.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/docs/inferbound/relations.png:align
|
||||
http://raw.githubusercontent.com/uwsaml/web-data/master/vta/developer/vta_instructions.png:align
|
||||
http://raw.githubusercontent.com/uwsaml/web-data/master/vta/developer/gemm_core.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/docs/inferbound/union.png:align
|
||||
https://raw.githubusercontent.com/tvmai/tvmai.github.io/master/images/docs/inferbound/passupdomain_nodiv.png:align
|
||||
http://raw.githubusercontent.com/uwsaml/web-data/master/vta/developer/alu_core.png:align
|
||||
http://raw.githubusercontent.com/uwsaml/web-data/master/vta/developer/2d_dma.png:align
|
||||
https://raw.githubusercontent.com/dmlc/web-data/master/tensorflow/models/object_detection/ssd_mobilenet_v1_coco_2018_01_28_nopp.tgz
|
||||
https://github.com/google/googletestcd
|
||||
https://github.com/dmlc/dgl/blob/master/examples/pytorch/gcn/train.pyfrom
|
||||
https://github.com/FrozenGene/tflite/releases/download/v1.13.1/tflite-1.13.1-py3-none-any.whlpip3
|
||||
https://github.com/siju-samuel/darknet/blob/master/
|
||||
|
|
@ -8,55 +8,43 @@
|
|||
"mindspore/tests/" "import-self"
|
||||
|
||||
# Mindspore
|
||||
"mindspore/mindspore/python/mindspore/_check_deps_version.py" "broad-except"
|
||||
"mindspore/mindspore/python/mindspore/_check_version.py" "unused-import"
|
||||
"mindspore/mindspore/python/mindspore/_check_version.py" "broad-except"
|
||||
"mindspore/mindspore/python/mindspore/common/api.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/common/parameter.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/common/hook_handle.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/common/dtype.py" "undefined-all-variable"
|
||||
"mindspore/mindspore/python/mindspore/context.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/ops/operations" "super-init-not-called"
|
||||
"mindspore/mindspore/python/mindspore/ops/operations/_quant_ops.py" "unused-import"
|
||||
"mindspore/mindspore/python/mindspore/ops/operations/nn_ops.py" "redefined-builtin"
|
||||
"mindspore/mindspore/python/mindspore/ops/operations/_thor_ops.py" "dangerous-default-value"
|
||||
"mindspore/mindspore/python/mindspore/ops/operations/_thor_ops.py" "redefined-outer-name"
|
||||
"mindspore/mindspore/python/mindspore/ops/operations/_thor_ops.py" "unused-import"
|
||||
"mindspore/mindspore/python/mindspore/ops/_op_impl/_custom_op" "dangerous-default-value
|
||||
"mindspore/mindspore/python/mindspore/ops/_op_impl/_custom_op" "simplifiable-if-expression"
|
||||
"mindspore/mindspore/python/mindspore/ops/_op_impl/_custom_op" "unused-variable"
|
||||
"mindspore/mindspore/python/mindspore/ops/composite/base.py" "protected-acces"
|
||||
"mindspore/mindspore/python/mindspore/ops/primitive.py" "assignment-from-none"
|
||||
"mindspore/mindspore/python/mindspore/nn/cell.py" "assignment-from-none"
|
||||
"mindspore/mindspore/python/mindspore/_extends/parse/resources.py" "bad-whitespace"
|
||||
"mindspore/mindspore/python/mindspore/_extends/parse/parser.py" "broad-except"
|
||||
"mindspore/mindspore/python/mindspore/_extends/parse/parser.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/_extends/parse/parser.py" "eval-used"
|
||||
"mindspore/mindspore/python/mindspore/nn/cell.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/nn/optim/ftrl.py" "unused-import"
|
||||
"mindspore/mindspore/python/mindspore/train/amp.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/train/serialization.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/train/model.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/log.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/rewrite/api/node.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/rewrite/node.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/rewrite/symbol_tree.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/rewrite/parser_register.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/rewrite/api/pattern_engine.py" "protected-access"
|
||||
"mindspore/mindspore/python/mindspore/rewrite/symbol_tree.py" "inconsistent-return-statements"
|
||||
"mindspore/mindspore/_check_deps_version.py" "broad-except"
|
||||
"mindspore/mindspore/_check_version.py" "unused-import"
|
||||
"mindspore/mindspore/_check_version.py" "broad-except"
|
||||
"mindspore/mindspore/common/parameter.py" "protected-access"
|
||||
"mindspore/mindspore/context.py" "protected-access"
|
||||
"mindspore/mindspore/ops/operations" "super-init-not-called"
|
||||
"mindspore/mindspore/ops/operations/_quant_ops.py" "unused-import"
|
||||
"mindspore/mindspore/ops/operations/nn_ops.py" "redefined-builtin"
|
||||
"mindspore/mindspore/ops/operations/_thor_ops.py" "dangerous-default-value"
|
||||
"mindspore/mindspore/ops/operations/_thor_ops.py" "redefined-outer-name"
|
||||
"mindspore/mindspore/ops/operations/_thor_ops.py" "unused-import"
|
||||
"mindspore/mindspore/ops/_op_impl/_custom_op" "dangerous-default-value
|
||||
"mindspore/mindspore/ops/_op_impl/_custom_op" "simplifiable-if-expression"
|
||||
"mindspore/mindspore/ops/_op_impl/_custom_op" "unused-variable"
|
||||
"mindspore/mindspore/ops/composite/base.py" "protected-acces"
|
||||
"mindspore/mindspore/ops/primitive.py" "assignment-from-none"
|
||||
"mindspore/mindspore/nn/cell.py" "assignment-from-none"
|
||||
"mindspore/mindspore/_extends/parse/resources.py" "bad-whitespace"
|
||||
"mindspore/mindspore/_extends/parse/parser.py" "broad-except"
|
||||
"mindspore/mindspore/nn/cell.py" "protected-access"
|
||||
"mindspore/mindspore/nn/optim/ftrl.py" "unused-import"
|
||||
"mindspore/mindspore/train/amp.py" "protected-access"
|
||||
"mindspore/mindspore/train/serialization.py" "protected-access"
|
||||
"mindspore/mindspore/train/model.py" "protected-access"
|
||||
"mindspore/mindspore/log.py" "protected-access"
|
||||
"mindspore/mindspore/explainer/explanation/_counterfactual/hierarchical_occlusion.py" "unsupported-assignment-operation"
|
||||
"mindspore/model_zoo/official/cv" "missing-docstring"
|
||||
"mindspore/model_zoo/official/cv" "c-extension-no-member"
|
||||
"mindspore/model_zoo/official/nlp/bert_thor/src/bert_model.py" "redefined-outer-name"
|
||||
"mindspore/mindspore/python/mindspore/_extends/parallel_compile/akg_compiler/akg_process.py" "Catching too general exception BaseException"
|
||||
"mindspore/mindspore/python/mindspore/_extends/graph_kernel/model/model.py" "super-on-old-class"
|
||||
"mindspore/mindspore/python/mindspore/ops/_grad/grad_math_ops.py" "invalid-unary-operand-type"
|
||||
"mindspore/mindspore/_extends/parallel_compile/akg_compiler/akg_process.py" "Catching too general exception BaseException"
|
||||
|
||||
# MindData
|
||||
"mindspore/mindspore/python/mindspore/dataset/__init__.py" "redefined-builtin"
|
||||
"mindspore/mindspore/python/mindspore/dataset/engine/__init__.py" "redefined-builtin"
|
||||
"mindspore/mindspore/python/mindspore/dataset/engine/datasets.py" "redefined-builtin"
|
||||
"mindspore/mindspore/python/mindspore/dataset/engine/datasets.py" "broad-except"
|
||||
"mindspore/mindspore/python/mindspore/dataset/transforms/py_transforms_util.py" "broad-except"
|
||||
"mindspore/mindspore/dataset/__init__.py" "redefined-builtin"
|
||||
"mindspore/mindspore/dataset/engine/__init__.py" "redefined-builtin"
|
||||
"mindspore/mindspore/dataset/engine/datasets.py" "redefined-builtin"
|
||||
"mindspore/mindspore/dataset/engine/datasets.py" "broad-except"
|
||||
"mindspore/mindspore/dataset/transforms/py_transforms_util.py" "broad-except"
|
||||
|
||||
# Tests
|
||||
"mindspore/tests/vm_impl/array_ops_vm_impl.py" "unused-variable"
|
||||
|
|
@ -107,10 +95,6 @@
|
|||
"mindspore/tests/ut/python/pynative_mode" "unused-variable"
|
||||
"mindspore/tests/ut/python/pynative_mode/test_stop_gradient.py" "redefined-outer-name"
|
||||
"mindspore/tests/ut/python/pynative_mode/test_stop_gradient.py" "super-init-not-called"
|
||||
"mindspore/tests/ut/python/rewrite/test_flatten_recursive_stmt.py" "consider-using-ternary"
|
||||
"mindspore/tests/ut/python/rewrite/test_node.py" "syntax-error"
|
||||
"mindspore/tests/ut/python/rewrite/test_node.py" "protected-access"
|
||||
"mindspore/tests/ut/python/rewrite/test_symbol_tree.py" "len-as-condition"
|
||||
"mindspore/tests/ut/python/test_log.py" "possibly-unused-variable"
|
||||
"mindspore/tests/ut/python/test_log.py" "protected-access"
|
||||
"mindspore/tests/ut/python/train/summary/test_summary_collector.py" "protected-access"
|
||||
|
|
@ -130,9 +114,7 @@
|
|||
"mindspore/tests/st/ops/ascend/test_aicpu_ops/test_strided_slice.py" "redefined-builtin"
|
||||
"mindspore/tests/st/ops/ascend/test_aicpu_ops/test_strided_slice_grad.py" "redefined-outer-name"
|
||||
"mindspore/tests/st/pynative/parser/test_parser_construct.py" "bad-super-call"
|
||||
"mindspore/tests/ut/python/optimizer/test_auto_grad.py" "broad-except"
|
||||
|
||||
#MindSpore Lite
|
||||
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/generator.py" "redefined-builtin"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/generator.py" "exec-used"
|
||||
"mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/generator.py" "global-variable-undefined"
|
||||
"mindspore/tests/st/explainer/benchmark/_attribution/test_localization.py" "protected-access"
|
||||
"mindspore/tests/st/explainer/explanation/_attribution/_backprop/test_gradcam.py" "not-callable"
|
||||
"mindspore/tests/st/explainer/explanation/_attribution/_backprop/test_gradient.py" "not-callable"
|
||||
"mindspore/tests/st/explainer/explanation/_attribution/_backprop/test_modified_relu.py" "not-callable"
|
||||
|
|
|
|||
|
|
@ -3,25 +3,22 @@
|
|||
# Scene2:
|
||||
# file_path:function_name1, function_name2
|
||||
#
|
||||
mindspore/mindspore/core/mindrt/src/thread/actor_threadpool.cc:mindspore::ActorWorker::RunWithSpin
|
||||
mindspore/mindspore/lite/src/ops/primitive_c.cc:mindspore::lite::PrimitiveC::Create
|
||||
mindspore/mindspore/ccsrc/minddata/dataset/engine/datasetops/source/csv_op.cc:mindspore::dataset::CsvOp::CsvParser::InitCsvParser
|
||||
mindspore/mindspore/lite/tools/converter/graphdef_transform.cc:mindspore::lite::GraphDefTransform::Transform
|
||||
mindspore/mindspore/lite/providers/nnie_proposal/src/proposal.cc:mindspore::proposal::Rpn
|
||||
mindspore/mindspore/core/abstract/primitive_infer_map.cc:mindspore::abstract::GetPrimitiveToEvalImplMap
|
||||
mindspore/mindspore/ccsrc/frontend/optimizer/irpass.cc:mindspore::opt::irpass::OptimizeIRPassLib::OptimizeIRPassLib
|
||||
mindspore/mindspore/ccsrc/frontend/parallel/ops_info/gather_v2_p_info.cc:mindspore::parallel::GatherV2PInfo::CheckStrategy
|
||||
mindspore/mindspore/ccsrc/plugin/device/gpu/hal/device/gpu_kernel_runtime.cc:mindspore::device::gpu::GPUKernelRuntime::LaunchKernelDynamic
|
||||
mindspore/mindspore/ccsrc/frontend/parallel/ops_info/gather_v2_p_info.cc:mindspore::parallel::GatherV2PInfo::CheckStrategy
|
||||
mindspore/mindspore/ccsrc/runtime/device/gpu/gpu_kernel_runtime.cc:mindspore::device::gpu::GPUKernelRuntime::LaunchKernelDynamic
|
||||
mindspore/mindspore/ccsrc/pipeline/jit/init.cc:PYBIND11_MODULE
|
||||
mindspore/mindspore/ccsrc/plugin/device/gpu/kernel/math/unary_op_gpu_kernel.h:mindspore::kernel::UnaryOpGpuKernel::Launch
|
||||
mindspore/mindspore/ccsrc/plugin/device/ascend/optimizer/ir_fission/dynamic_rnn_grad_fission_v2.cc:mindspore::opt::AddLSTMInputGradNode
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/math/unary_op_gpu_kernel.h:mindspore::kernel::UnaryOpGpuKernel::Launch
|
||||
mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/dynamic_rnn_grad_fission_v2.cc:mindspore::opt::AddLSTMInputGradNode
|
||||
mindspore/model_zoo/official/recommend/wide_and_deep/src/wide_and_deep.py:__init__
|
||||
mindspore/model_zoo/official/recommend/wide_and_deep_multitable/src/wide_and_deep.py:__init__
|
||||
mindspore/mindspore/ccsrc/pipeline/jit/resource.cc:mindspore::pipeline::GetMethodMap
|
||||
mindspore/mindspore/python/mindspore/ops/operations/array_ops.py:_compute_slicing_shape
|
||||
mindspore/mindspore/python/mindspore/context.py:set_auto_parallel_context
|
||||
mindspore/mindspore/python/mindspore/common/tensor.py:__init__
|
||||
mindspore/mindspore/python/mindspore/common/parameter.py:set_data
|
||||
mindspore/mindspore/ops/operations/array_ops.py:_compute_slicing_shape
|
||||
mindspore/mindspore/common/tensor.py:__init__
|
||||
mindspore/mindspore/common/parameter.py:set_data
|
||||
mindspore/mindspore/ccsrc/pybind_api/ir/tensor_py.cc:mindspore::tensor::GetDataType
|
||||
mindspore/mindspore/lite/nnacl/fp32/avg_pooling_fp32.c:AvgPooling
|
||||
mindspore/mindspore/lite/src/runtime/thread_pool.c:GetArch
|
||||
|
|
@ -35,167 +32,47 @@ mindspore/mindspore/lite/nnacl/infer/infer_register.c:RegisterInfer
|
|||
mindspore/mindspore/lite/src/runtime/kernel/arm/base/quant_dtype_cast.cc:mindspore::kernel::QuantDTypeCastCPUKernel::QuantDTypeCast
|
||||
mindspore/mindspore/lite/src/runtime/kernel/arm/base/quant_dtype_cast.cc:mindspore::kernel::QuantDTypeCastCPUKernel::Run
|
||||
mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/prim.cc:mindspore::abstract::ConvertAbstractToPython
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/infer/strided_slice_infer.c:StridedSliceInferShape
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_transform_fp16.c:WinogradInputTransformFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/pooling_fp16.c:AvgPoolingFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/pooling_fp16.c:MaxPoolingFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:OutputTransform4x2UnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:OutputTransform4x2ReluUnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:OutputTransform4x2Relu6UnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6UnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6ReluUnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6Relu6UnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/int8/pooling_int8.c:AvgPoolingOptInt8
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/int8/pooling_int8.c:MaxPoolingWithQuantInt8
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/int8/conv3x3_int8.c:Conv3x3Int8OutputUnit
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/int8/conv_int8.c:Conv1x1PreOptPeroc
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/infer/infer_register.c:RegisterInfer
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32_grad/gemm.c:RowMajor2Col12MajorStride
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32_grad/gemm.c:RowMajor2Col8MajorStride
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_transform_fp16.c:Conv3x3Fp16InputUnit
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_transform_fp16.c:Conv3x3Fp16FilterTransform
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/pooling_fp16.c:AvgPoolingFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/pooling_fp16.c:MaxPoolingFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/pack_fp16.c:PackNHWCToNCHWFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:InputTransform6x6UnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:InputTransform8x8UnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:OutputTransform4x2Relu6UnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6UnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6ReluUnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6Relu6UnitFp16
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/int8/pooling_int8.c:AvgPoolingOptInt8
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/int8/conv3x3_int8.c:Conv3x3Int8InputUnit
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/int8/conv3x3_int8.c:Conv3x3Int8FilterTransform
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/int8/conv3x3_int8.c:Conv3x3Int8OutputUnit
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/int8/conv_int8.c:Conv1x1PreOptPeroc
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/int8/conv_int8.c:Conv1x1PreOptPert
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/int8/pack_int8.c:PackNHWCToNCHWInt8
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32/pooling_fp32.c:AvgPooling
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32/matmul_fp32.c:MatMul4x1Kernel
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32/conv_common_fp32.c:SWConv3x32Kernel, SWConv4x24Kernel, SWConv12x8Kernel, SWConv8x8Kernel, SWConv4x8Kernel, SWConv6x16Kernel, SWConv4x16Kernel
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32/conv_depthwise_fp32.c:DepthwiseSW3x32Kernel, DepthwiseSW4x24Kernel, DepthwiseSW12x8Kernel, DepthwiseSW8x8Kernel, DepthwiseSW4x8Kernel, DepthwiseSW6x16Kernel, DepthwiseSW4x16Kernel
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/strided_slice_infer.c:StridedSliceInferShape
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_transform_fp16.c:WinogradInputTransformFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pooling_fp16.c:AvgPoolingFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pooling_fp16.c:MaxPoolingFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:OutputTransform4x2UnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:OutputTransform4x2ReluUnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:OutputTransform4x2Relu6UnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6UnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6ReluUnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6Relu6UnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pooling_int8.c:AvgPoolingOptInt8
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pooling_int8.c:MaxPoolingWithQuantInt8
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv3x3_int8.c:Conv3x3Int8OutputUnit
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pack_int8.c:Conv1x1PreOptPeroc
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/infer_register.c:RegisterInfer
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/gemm.c:RowMajor2Col12MajorStride
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/gemm.c:RowMajor2Col8MajorStride
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_transform_fp16.c:Conv3x3Fp16InputUnit
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_transform_fp16.c:Conv3x3Fp16FilterTransform
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pooling_fp16.c:AvgPoolingFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pooling_fp16.c:MaxPoolingFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/pack_fp16.c:PackNHWCToNCHWFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:InputTransform6x6UnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:InputTransform8x8UnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:OutputTransform4x2Relu6UnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6UnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6ReluUnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/winograd_utils_fp16.c:OutputTransform8x6Relu6UnitFp16
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pooling_int8.c:AvgPoolingOptInt8
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv3x3_int8.c:Conv3x3Int8InputUnit
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv3x3_int8.c:Conv3x3Int8FilterTransform
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/conv3x3_int8.c:Conv3x3Int8OutputUnit
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pack_int8.c:Conv1x1PreOptPeroc
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pack_int8.c:Conv1x1PreOptPert
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/pack_int8.c:PackNHWCToNCHWInt8
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/pooling_fp32.c:AvgPooling
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_common_fp32.c:SWConv3x32Kernel, SWConv4x24Kernel, SWConv12x8Kernel, SWConv8x8Kernel, SWConv4x8Kernel, SWConv6x16Kernel, SWConv4x16Kernel
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_depthwise_fp32.c:DepthwiseSW3x32Kernel, DepthwiseSW4x24Kernel, DepthwiseSW12x8Kernel, DepthwiseSW8x8Kernel, DepthwiseSW4x8Kernel, DepthwiseSW6x16Kernel, DepthwiseSW4x16Kernel
|
||||
mindspore/mindspore/core/ir/dtype/type.cc:mindspore::ObjectIdLabel
|
||||
mindspore/mindspore/python/mindspore/ops/_op_impl/_custom_op/dsd_impl.py:dsd_matmul
|
||||
mindspore/mindspore/python/mindspore/ops/_op_impl/_custom_op/dsd_back_impl.py:dsdbpropimpl
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32/conv_1x1_x86_fp32.c:Conv1x1SW3x32Kernel, Conv1x1SW4x24Kernel, Conv1x1SW12x8Kernel, Conv1x1SW8x8Kernel, Conv1x1SW4x8Kernel, Conv1x1SW6x16Kernel, Conv1x1SW4x16Kernel, Conv1x1SW1x32Kernel, Conv1x1SW1x24Kernel, Conv1x1SW1x16Kernel, Conv1x1SW1x8Kernel
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32/matmul_fp32.c:MatMul3x32Kernel, MatMul4x24Kernel, MatMul12x8Kernel, MatMul8x8Kernel, MatMul4x8Kernel, MatMul6x16Kernel, MatMul4x16Kernel, MatVecMul1x32Kernel, MatVecMul1x24Kernel, MatVecMul1x16Kernel, MatVecMul1x8Kernel
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/sse/TiledC4MatMulFp32.c:TiledC4MatmulFp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/sse/PostFuncBiasReluC4.c:PostFuncBiasReluC4
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/sse/WinogradTrans.c:WinogradTransRight
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/sse/WinogradTrans.c:WinogradTransLeft
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/sse/WinogradPostFuncBiasReluC4.c:WinogradPostFuncBiasReluC4
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/avx/PostFuncBiasReluC8.c:PostFuncBiasReluC8
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/avx/WinogradPostFuncBiasReluC8.c:WinogradPostFuncBiasReluC8
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32/deconv_winograd_fp32.c:PackDeConvWgDataFp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/sse/WinogradPostFuncBiasReluC4.c:WinogradPostFuncBiasReluC4
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/sse/PostFuncBiasReluC8.c:PostFuncBiasReluC8
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/avx/WinogradTransAvx.c:WinogradTransLeft
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/avx/WinogradTransAvx.c:WinogradTransRight
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/avx/PostFuncBiasReluC8.c:PostFuncBiasReluC8
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/avx/WinogradPostFuncBiasReluC8.c:WinogradPostFuncBiasReluC8
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32/deconv_winograd_fp32.c:PackDeConvWgDataFp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32/deconv_winograd_fp32.c:DeConvWgMerge
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/intrinsics/avx/TiledC8MatMulFp32.c:TiledC8MatmulFp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/quant_dtype_cast_fp16.c:Fp16ToInt8_arm64
|
||||
mindspore/mindspore/ccsrc/backend/common/session/gpu_session.cc:mindspore::session::gpu::GPUSession::LoadInputData
|
||||
mindspore/mindspore/ccsrc/debug/dump_proto.cc:mindspore::ProtoExporter::SetNodeOutputType
|
||||
mindspore/mindspore/ccsrc/debug/dump_proto.cc:mindspore::ProtoExporter::SetValueToProto
|
||||
mindspore/mindspore/ccsrc/debug/dump_proto.cc:mindspore::ProtoExporter::SetScalarToProto
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_10x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_10x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_11x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_11x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_1x96_kernel_nhwc_fp32.c:nnacl_gemm_avx512_1x96_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_1x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_1x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_4x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_4x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_3x64_kernel_nhwc_fp32.c:nnacl_gemm_avx512_3x64_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_1x64_kernel_nhwc_fp32.c:nnacl_gemm_avx512_1x64_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_7x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_7x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_5x64_kernel_nhwc_fp32.c:nnacl_gemm_avx512_5x64_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_3x48_kernel_nhwc_fp32.c:nnacl_gemm_avx512_3x48_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_3x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_3x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_6x48_kernel_nhwc_fp32.c:nnacl_gemm_avx512_6x48_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_3x96_kernel_nhwc_fp32.c:nnacl_gemm_avx512_3x96_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_2x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_2x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_4x80_kernel_nhwc_fp32.c:nnacl_gemm_avx512_4x80_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_4x48_kernel_nhwc_fp32.c:nnacl_gemm_avx512_4x48_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_1x80_kernel_nhwc_fp32.c:nnacl_gemm_avx512_1x80_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_2x80_kernel_nhwc_fp32.c:nnacl_gemm_avx512_2x80_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_9x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_9x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_8x48_kernel_nhwc_fp32.c:nnacl_gemm_avx512_8x48_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_4x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_4x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_6x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_6x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_8x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_8x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_2x64_kernel_nhwc_fp32.c:nnacl_gemm_avx512_2x64_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_6x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_6x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_5x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_5x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_9x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_9x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_7x48_kernel_nhwc_fp32.c:nnacl_gemm_avx512_7x48_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_4x96_kernel_nhwc_fp32.c:nnacl_gemm_avx512_4x96_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_3x80_kernel_nhwc_fp32.c:nnacl_gemm_avx512_3x80_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_2x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_2x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_4x64_kernel_nhwc_fp32.c:nnacl_gemm_avx512_4x64_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_12x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_12x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_10x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_10x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_5x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_5x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_11x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_11x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_5x80_kernel_nhwc_fp32.c:nnacl_gemm_avx512_5x80_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_8x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_8x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_1x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_1x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_3x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_3x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_12x32_kernel_nhwc_fp32.c:nnacl_gemm_avx512_12x32_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_2x48_kernel_nhwc_fp32.c:nnacl_gemm_avx512_2x48_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_1x48_kernel_nhwc_fp32.c:nnacl_gemm_avx512_1x48_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_2x96_kernel_nhwc_fp32.c:nnacl_gemm_avx512_2x96_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_7x16_kernel_nhwc_fp32.c:nnacl_gemm_avx512_7x16_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_5x48_kernel_nhwc_fp32.c:nnacl_gemm_avx512_5x48_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_avx512/nnacl_gemm_avx512_6x64_kernel_nhwc_fp32.c:nnacl_gemm_avx512_6x64_kernel_nhwc_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_3x24_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_3x24_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_2x32_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_2x32_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_12x8_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_12x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_2x16_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_2x16_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_8x8_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_8x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_2x24_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_2x24_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_3x16_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_3x16_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_3x32_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_3x32_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_2x16_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_2x16_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_3x32_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_3x32_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_6x8_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_6x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_6x16_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_6x16_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_6x8_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_6x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_9x8_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_9x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_8x8_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_8x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_10x8_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_10x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_6x16_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_6x16_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_4x24_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_4x24_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_11x8_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_11x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_11x8_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_11x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_10x8_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_10x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_3x16_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_3x16_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_7x8_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_7x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_4x24_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_4x24_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_12x8_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_12x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_5x8_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_5x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_3x8_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_3x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/matmul_fp32_base.cc:mindspore::kernel::MatmulFp32BaseCPUKernel::init_global_variable
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_3x24_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_3x24_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_4x16_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_4x16_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_1x24_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_1x24_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_4x8_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_4x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_5x8_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_5x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_7x8_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_7x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_4x8_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_4x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_5x16_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_5x16_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_1x32_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_1x32_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_5x16_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_5x16_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_9x8_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_9x8_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_4x16_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_4x16_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_2x32_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_2x32_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_2x24_kernel_nc8hw8_fp32.c:nnacl_gemm_fma_2x24_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/HPC-generator/gemm_fma/nnacl_gemm_fma_1x32_kernel_nc8hw8_fp32_asm.c:nnacl_gemm_fma_1x32_kernel_nc8hw8_fp32
|
||||
mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/matmul_fp32_base.cc:mindspore::kernel::MatmulFp32BaseCPUKernel::Run
|
||||
mindspore/mindspore/ccsrc/frontend/parallel/auto_parallel/rec_core/rec_partition.cc:mindspore::parallel::GetWeights
|
||||
mindspore/mindspore/ccsrc/frontend/parallel/auto_parallel/rec_core/rec_partition.cc:mindspore::parallel::PartitionNode
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp16/instance_norm_fp16.c:InstanceNormNC8HW8Fp16
|
||||
mindspore/mindspore/lite/src/runtime/kernel/arm/fp32/matmul_fp32_base.cc:mindspore::kernel::MatmulFp32BaseCPUKernel::init_global_variable
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/fp32/conv_winograd_fp32.c:ConvWinogardFp32
|
||||
mindspore/mindspore/ccsrc/plugin/device/ascend/optimizer/ir_fusion/lamb_next_mv_with_decay_v1_rule.cc:mindspore::opt::MatchAdd5Pattern
|
||||
mindspore/mindspore/ccsrc/plugin/device/cpu/kernel/nnacl/experimental/conv_fp32_nchwx_avx512.c:conv2d_compute_fp32_nchwx_avx512
|
||||
mindspore/mindspore/ops/_op_impl/_custom_op/dsd_impl.py:DSDMatmulimpl
|
||||
mindspore/mindspore/ops/_op_impl/_custom_op/dsd_back_impl.py:dsdbpropimpl
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/conv_1x1_x86_fp32.c:Conv1x1SW3x32Kernel, Conv1x1SW4x24Kernel, Conv1x1SW12x8Kernel, Conv1x1SW8x8Kernel, Conv1x1SW4x8Kernel, Conv1x1SW6x16Kernel, Conv1x1SW4x16Kernel, Conv1x1SW1x32Kernel, Conv1x1SW1x24Kernel, Conv1x1SW1x16Kernel, Conv1x1SW1x8Kernel
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32/matmul_fp32.c:MatMul3x32Kernel, MatMul4x24Kernel, MatMul12x8Kernel, MatMul8x8Kernel, MatMul4x8Kernel, MatMul6x16Kernel, MatMul4x16Kernel, MatVecMul1x32Kernel, MatVecMul1x24Kernel, MatVecMul1x16Kernel, MatVecMul1x8Kernel
|
||||
mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/intrinsics/sse/TiledC4MatMulFp32.c:TiledC4MatmulFp32
|
||||
|
|
|
|||
|
|
@ -1,73 +0,0 @@
|
|||
# Copyright 2021 Huawei Technologies Co., Ltd
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# ============================================================================
|
||||
|
||||
MS_ALL:
|
||||
include/api
|
||||
mindspore/core
|
||||
mindspore/ccsrc/cxx_api
|
||||
mindspore/ccsrc/backend/common
|
||||
mindspore/ccsrc/plugin/device/cpu/kernel/nnacl
|
||||
mindspore/ccsrc/minddata
|
||||
mindspore/ccsrc/CMakeLists.txt
|
||||
mindspore/lite/java
|
||||
mindspore/lite/src/train
|
||||
mindspore/lite/src/runtime/kernel/arm/fp32
|
||||
mindspore/lite/src/runtime/kernel/arm/fp32_grad
|
||||
mindspore/ccsrc/backend/kernel_compiler
|
||||
mindspore/ccsrc/fl
|
||||
mindspore/ccsrc/ps
|
||||
MS_CLOUD:
|
||||
mindspore/python
|
||||
mindspore/ccsrc
|
||||
tests/st
|
||||
MS_LITE:
|
||||
include/c_api
|
||||
include/api/allocator.h
|
||||
include/api/delegate.h
|
||||
include/api/kernel.h
|
||||
include/api/model_parallel_runner.h
|
||||
mindspore/lite/
|
||||
cmake/package_lite.cmake
|
||||
MS_CLOUD_UT:
|
||||
tests/ut
|
||||
MS_CLOUD_UT_CPP:
|
||||
tests/ut/cpp
|
||||
MS_CLOUD_UT_PYTHON:
|
||||
tests/ut/python
|
||||
MS_CLOUD_ST_ASCEND:
|
||||
tests/st/ops/ascend
|
||||
MS_CLOUD_ST_GPU:
|
||||
tests/st/ops/gpu
|
||||
MS_CLOUD_ST_CPU:
|
||||
tests/st/ops/cpu
|
||||
MS_CI:
|
||||
.jenkins
|
||||
.clang-format
|
||||
MS_DOCS:
|
||||
docker
|
||||
docs
|
||||
scripts
|
||||
README.md
|
||||
Readme.md
|
||||
readme.md
|
||||
README_CN.md
|
||||
RELEASE.md
|
||||
release.md
|
||||
PULL_REQUEST_TEMPLATE.md
|
||||
CONTRIBUTING.md
|
||||
LICENSE
|
||||
NOTICE
|
||||
SECURITY.md
|
||||
Third_Party_Open_Source_Software
|
||||
|
|
@ -19,12 +19,11 @@ if(NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O2 -Wno-inconsistent-missing-override \
|
||||
-Wno-unused-lambda-capture -Wno-unneeded-internal-declaration -Wno-unused-variable \
|
||||
-Wno-return-std-move -DHALF_ENABLE_CPP11_USER_LITERALS=0 -D_FORTIFY_SOURCE=2")
|
||||
elseif(ENABLE_SYM_FILE)
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O2 -g -ggdb -Wl,--allow-shlib-undefined \
|
||||
-DHALF_ENABLE_CPP11_USER_LITERALS=0 -D_FORTIFY_SOURCE=2")
|
||||
set(CMAKE_OSX_SYSROOT "")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O2 -Winconsistent-missing-override -Wuser-defined-warnings \
|
||||
-Wno-return-std-move -Wno-unused-private-field -Wno-unused-lambda-capture -Wno-sign-compare \
|
||||
-Wno-overloaded-virtual -Wno-unneeded-internal-declaration -Wno-unused-variable -Wno-pessimizing-move \
|
||||
-Wno-inconsistent-missing-override -DHALF_ENABLE_CPP11_USER_LITERALS=0 -D_FORTIFY_SOURCE=2")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O2 -Wl,--allow-shlib-undefined \
|
||||
-DHALF_ENABLE_CPP11_USER_LITERALS=0 -D_FORTIFY_SOURCE=2")
|
||||
|
|
@ -34,16 +33,9 @@ if(ENABLE_PYTHON)
|
|||
add_compile_definitions(ENABLE_PYTHON)
|
||||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -g2 -ggdb -fno-inline-functions -fno-omit-frame-pointer \
|
||||
-D_LIBCPP_INLINE_VISIBILITY='' -D_LIBCPP_DISABLE_EXTERN_TEMPLATE=1 -DHALF_ENABLE_CPP11_USER_LITERALS=0 \
|
||||
-D_FORTIFY_SOURCE=2 -Wno-cpp -Wno-inconsistent-missing-override -Wno-unused-lambda-capture \
|
||||
-Wno-unneeded-internal-declaration -Wno-unused-variable -Wno-return-std-move")
|
||||
else()
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -g2 -ggdb -fno-inline-functions -fno-omit-frame-pointer \
|
||||
-Wl,--allow-shlib-undefined -D_LIBCPP_INLINE_VISIBILITY='' -D_LIBCPP_DISABLE_EXTERN_TEMPLATE=1 \
|
||||
-DHALF_ENABLE_CPP11_USER_LITERALS=0 -D_FORTIFY_SOURCE=2 -Wno-cpp")
|
||||
endif()
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -g2 -ggdb -fno-inline-functions -fno-omit-frame-pointer \
|
||||
-Wl,--allow-shlib-undefined -D_LIBCPP_INLINE_VISIBILITY='' -D_LIBCPP_DISABLE_EXTERN_TEMPLATE=1 \
|
||||
-DHALF_ENABLE_CPP11_USER_LITERALS=0 -D_FORTIFY_SOURCE=2 -Wno-cpp")
|
||||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/local/include -std=c++17 \
|
||||
-Werror -Wall -Wno-deprecated-declarations -fPIC")
|
||||
|
|
@ -52,7 +44,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|||
set(PYBIND11_CPP_STANDARD -std=c++17)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OPTION_CXX_FLAGS}")
|
||||
|
||||
if(ENABLE_AKG AND CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
if(ENABLE_AKG AND (ENABLE_D OR ENABLE_GPU))
|
||||
add_subdirectory("${CMAKE_SOURCE_DIR}/akg")
|
||||
endif()
|
||||
|
||||
|
|
@ -62,11 +54,6 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third_party/securec/include)
|
|||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third_party/flatbuffers/include)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third_party/flatbuffers/include/flatbuffers)
|
||||
|
||||
if(ENABLE_FAST_HASH_TABLE)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_FAST_HASH_TABLE=1")
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third_party/robin_hood/include)
|
||||
endif()
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/dependency_utils.cmake)
|
||||
find_package(Python3 COMPONENTS Interpreter Development)
|
||||
if(Python3_FOUND)
|
||||
|
|
@ -103,31 +90,14 @@ endif()
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
|
||||
add_subdirectory(mindspore/ccsrc)
|
||||
add_subdirectory(mindspore/core)
|
||||
|
||||
if(DEFINED ENV{ENABLE_CLOUD_AND_LITE})
|
||||
set(ENABLE_CLOUD_AND_LITE $ENV{ENABLE_CLOUD_AND_LITE})
|
||||
endif()
|
||||
if(ENABLE_CLOUD_AND_LITE)
|
||||
add_subdirectory(mindspore/lite)
|
||||
endif()
|
||||
|
||||
if(ENABLE_TESTCASES OR ENABLE_CPP_ST)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
# packaging
|
||||
file(READ ${CMAKE_SOURCE_DIR}/version.txt VERSION_NUMBER)
|
||||
string(REPLACE "\n" "" VERSION_NUMBER ${VERSION_NUMBER})
|
||||
if(${VERSION_NUMBER} MATCHES ".*dev.*")
|
||||
message("building dev mode")
|
||||
set(BUILD_DEV_MODE ON)
|
||||
endif()
|
||||
if(MODE_ASCEND_ACL)
|
||||
include(cmake/package_tar.cmake)
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
include(cmake/package_win.cmake)
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
include(cmake/package_mac.cmake)
|
||||
else()
|
||||
include(cmake/package.cmake)
|
||||
endif()
|
||||
|
|
|
|||
17
OWNERS
17
OWNERS
|
|
@ -3,8 +3,7 @@ approvers:
|
|||
- guoqi1024
|
||||
- baochong
|
||||
- zhaizhiqiang
|
||||
- stsuteng
|
||||
- kisnwang
|
||||
- leonwanghui
|
||||
|
||||
files:
|
||||
"akg":
|
||||
|
|
@ -12,17 +11,3 @@ files:
|
|||
- gaoxiong1
|
||||
- ckey_dou
|
||||
- anyrenwei
|
||||
|
||||
"graphengine":
|
||||
approvers:
|
||||
- zhoufeng54
|
||||
- jjfeing
|
||||
- guoqi1024
|
||||
- baochong
|
||||
|
||||
"version.txt":
|
||||
approvers:
|
||||
- zhoufeng54
|
||||
- jjfeing
|
||||
- guoqi1024
|
||||
- baochong
|
||||
|
|
|
|||
26
README.md
26
README.md
|
|
@ -42,20 +42,21 @@ processor, and software hardware co-optimization. At the meantime MindSpore as
|
|||
a global AI open source community, aims to further advance the development and
|
||||
enrichment of the AI software/hardware application ecosystem.
|
||||
|
||||
<img src="https://gitee.com/mindspore/mindspore/raw/master/docs/MindSpore-architecture.png" alt="MindSpore Architecture"/>
|
||||
<img src="https://gitee.com/mindspore/mindspore/raw/master/docs/MindSpore-architecture.png" alt="MindSpore Architecture" width="600"/>
|
||||
|
||||
For more details please check out our [Architecture Guide](https://www.mindspore.cn/docs/programming_guide/en/master/architecture.html).
|
||||
|
||||
### Automatic Differentiation
|
||||
|
||||
Currently, there are two automatic differentiation techniques in mainstream deep learning frameworks:
|
||||
There are currently three automatic differentiation techniques in mainstream deep learning frameworks:
|
||||
|
||||
- **Operator Overloading (OO)**: Overloading the basic operators of the programming language to encapsulate their gradient rules. Record the operation trajectory of the network during forward execution in an operator overloaded manner, then apply the chain rule to the dynamically generated data flow graph to implement automatic differentiation.
|
||||
- **Source Transformation (ST)**: This technology is evolving from the functional programming framework and performs automatic differential transformation on the intermediate expression (the expression form of the program during the compilation process) in the form of just-in-time compilation (JIT), supporting complex control flow scenarios, higher-order functions and closures.
|
||||
- **Conversion based on static compute graph**: Convert the network into a static data flow graph at compile time, then turn the chain rule into a data flow graph to implement automatic differentiation.
|
||||
- **Conversion based on dynamic compute graph**: Record the operation trajectory of the network during forward execution in an operator overloaded manner, then apply the chain rule to the dynamically generated data flow graph to implement automatic differentiation.
|
||||
- **Conversion based on source code**: This technology is evolving from the functional programming framework and performs automatic differential transformation on the intermediate expression (the expression form of the program during the compilation process) in the form of just-in-time compilation (JIT), supporting complex control flow scenarios, higher-order functions and closures.
|
||||
|
||||
PyTorch used OO. Compared to ST, OO generates gradient graph in runtime, so it does not need to take function call and control flow into consideration, which makes it easier to develop. However, OO can not perform gradient graph optimization in compilation time and the control flow has to be unfolded in runtime, so it is difficult to achieve extreme optimization in performance.
|
||||
TensorFlow adopted static calculation diagrams in the early days, whereas PyTorch used dynamic calculation diagrams. Static maps can utilize static compilation technology to optimize network performance, however, building a network or debugging it is very complicated. The use of dynamic graphics is very convenient, but it is difficult to achieve extreme optimization in performance.
|
||||
|
||||
MindSpore implemented automatic differentiation based on ST. On the one hand, it supports automatic differentiation of automatic control flow, so it is quite convenient to build models like PyTorch. On the other hand, MindSpore can perform static compilation optimization on neural networks to achieve great performance.
|
||||
But MindSpore finds another way, automatic differentiation based on source code conversion. On the one hand, it supports automatic differentiation of automatic control flow, so it is quite convenient to build models like PyTorch. On the other hand, MindSpore can perform static compilation optimization on neural networks to achieve great performance.
|
||||
|
||||
<img src="https://gitee.com/mindspore/mindspore/raw/master/docs/Automatic-differentiation.png" alt="Automatic Differentiation" width="600"/>
|
||||
|
||||
|
|
@ -235,11 +236,11 @@ currently the containerized build options are supported as follows:
|
|||
```
|
||||
|
||||
If you want to learn more about the building process of MindSpore docker images,
|
||||
please check out [docker](https://gitee.com/mindspore/mindspore/blob/master/scripts/docker/README.md) repo for the details.
|
||||
please check out [docker](https://gitee.com/mindspore/mindspore/blob/master/docker/README.md) repo for the details.
|
||||
|
||||
## Quickstart
|
||||
|
||||
See the [Quick Start](https://www.mindspore.cn/tutorials/en/master/beginner/quick_start.html)
|
||||
See the [Quick Start](https://www.mindspore.cn/docs/programming_guide/en/master/quick_start/quick_start.html)
|
||||
to implement the image classification.
|
||||
|
||||
## Docs
|
||||
|
|
@ -281,13 +282,10 @@ Project stable branches will be in one of the following states:
|
|||
|
||||
| **Branch** | **Status** | **Initial Release Date** | **Next Phase** | **EOL Date**|
|
||||
|------------|--------------|--------------------------|----------------------------------------|-------------|
|
||||
| **r1.6** | Maintained | 2022-01-29 | Unmaintained <br> 2023-01-29 estimated | |
|
||||
| **r1.5** | Maintained | 2021-10-15 | Unmaintained <br> 2022-10-15 estimated | |
|
||||
| **r1.4** | Maintained | 2021-08-15 | Unmaintained <br> 2022-08-15 estimated | |
|
||||
| **r1.3** | Maintained | 2021-07-15 | Unmaintained <br> 2022-07-15 estimated | |
|
||||
| **r1.2** | Unmaintained | 2021-04-15 | End Of Life <br> 2022-04-15 estimated | |
|
||||
| **r1.1** | End Of Life | 2020-12-31 | | 2021-09-30 |
|
||||
| **r1.0** | End Of Life | 2020-09-24 | | 2021-07-30 |
|
||||
| **r1.2** | Maintained | 2021-04-15 | Unmaintained <br> 2022-04-15 estimated | |
|
||||
| **r1.1** | Unmaintained | 2020-12-31 | End Of Life <br> 2021-09-30 estimated | |
|
||||
| **r1.0** | Unmaintained | 2020-09-24 | End Of Life <br> 2021-07-30 estimated | |
|
||||
| **r0.7** | End Of Life | 2020-08-31 | | 2021-02-28 |
|
||||
| **r0.6** | End Of Life | 2020-07-31 | | 2020-12-30 |
|
||||
| **r0.5** | End Of Life | 2020-06-30 | | 2021-06-30 |
|
||||
|
|
|
|||
26
README_CN.md
26
README_CN.md
|
|
@ -39,20 +39,21 @@ MindSpore提供了友好的设计和高效的执行,旨在提升数据科学
|
|||
|
||||
同时,MindSpore作为全球AI开源社区,致力于进一步开发和丰富AI软硬件应用生态。
|
||||
|
||||
<img src="https://gitee.com/mindspore/mindspore/raw/master/docs/MindSpore-architecture-zh.png" alt="MindSpore Architecture"/>
|
||||
<img src="https://gitee.com/mindspore/mindspore/raw/master/docs/MindSpore-architecture.png" alt="MindSpore Architecture" width="600"/>
|
||||
|
||||
欲了解更多详情,请查看我们的[总体架构](https://www.mindspore.cn/docs/programming_guide/zh-CN/master/architecture.html)。
|
||||
|
||||
### 自动微分
|
||||
|
||||
当前主流深度学习框架中有两种自动微分技术:
|
||||
当前主流深度学习框架中有三种自动微分技术:
|
||||
|
||||
- **操作符重载法**: 通过操作符重载对编程语言中的基本操作语义进行重定义,封装其微分规则。 在程序运行时记录算子过载正向执行时网络的运行轨迹,对动态生成的数据流图应用链式法则,实现自动微分。
|
||||
- **代码变换法**: 该技术是从功能编程框架演进而来,以即时编译(Just-in-time Compilation,JIT)的形式对中间表达式(程序在编译过程中的表达式)进行自动差分转换,支持复杂的控制流场景、高阶函数和闭包。
|
||||
- **基于静态计算图的转换**:编译时将网络转换为静态数据流图,将链式法则应用于数据流图,实现自动微分。
|
||||
- **基于动态计算图的转换**:记录算子过载正向执行时网络的运行轨迹,对动态生成的数据流图应用链式法则,实现自动微分。
|
||||
- **基于源码的转换**:该技术是从功能编程框架演进而来,以即时编译(Just-in-time Compilation,JIT)的形式对中间表达式(程序在编译过程中的表达式)进行自动差分转换,支持复杂的控制流场景、高阶函数和闭包。
|
||||
|
||||
PyTorch采用的是操作符重载法。相较于代码变换法,操作符重载法是在运行时生成微分计算图的, 无需考虑函数调用与控制流等情况, 开发更为简单。 但该方法不能在编译时刻做微分图的优化, 控制流也需要根据运行时的信息来展开, 很难实现性能的极限优化。
|
||||
TensorFlow早期采用的是静态计算图,PyTorch采用的是动态计算图。静态映射可以利用静态编译技术来优化网络性能,但是构建网络或调试网络非常复杂。动态图的使用非常方便,但很难实现性能的极限优化。
|
||||
|
||||
MindSpore则采用的是代码变换法。一方面,它支持自动控制流的自动微分,因此像PyTorch这样的模型构建非常方便。另一方面,MindSpore可以对神经网络进行静态编译优化,以获得更好的性能。
|
||||
MindSpore找到了另一种方法,即基于源代码转换的自动微分。一方面,它支持自动控制流的自动微分,因此像PyTorch这样的模型构建非常方便。另一方面,MindSpore可以对神经网络进行静态编译优化,以获得更好的性能。
|
||||
|
||||
<img src="https://gitee.com/mindspore/mindspore/raw/master/docs/Automatic-differentiation.png" alt="Automatic Differentiation" width="600"/>
|
||||
|
||||
|
|
@ -231,11 +232,11 @@ MindSpore的Docker镜像托管在[Docker Hub](https://hub.docker.com/r/mindspore
|
|||
[ 2. 2. 2. 2.]]]
|
||||
```
|
||||
|
||||
如果您想了解更多关于MindSpore Docker镜像的构建过程,请查看[docker](https://gitee.com/mindspore/mindspore/blob/master/scripts/docker/README.md) repo了解详细信息。
|
||||
如果您想了解更多关于MindSpore Docker镜像的构建过程,请查看[docker](https://gitee.com/mindspore/mindspore/blob/master/docker/README.md) repo了解详细信息。
|
||||
|
||||
## 快速入门
|
||||
|
||||
参考[快速入门](https://www.mindspore.cn/tutorials/zh-CN/master/beginner/quick_start.html)实现图片分类。
|
||||
参考[快速入门](https://www.mindspore.cn/docs/programming_guide/zh-CN/master/quick_start/quick_start.html)实现图片分类。
|
||||
|
||||
## 文档
|
||||
|
||||
|
|
@ -274,13 +275,10 @@ MindSpore的版本分支有以下几种维护阶段:
|
|||
|
||||
| **分支名** | **当前状态** | **上线时间** | **后续状态** | **EOL 日期**|
|
||||
|------------|--------------|----------------------|----------------------------------------|------------|
|
||||
| **r1.6** | Maintained | 2022-01-29 | Unmaintained <br> 2023-01-29 estimated | |
|
||||
| **r1.5** | Maintained | 2021-10-15 | Unmaintained <br> 2022-10-15 estimated | |
|
||||
| **r1.4** | Maintained | 2021-08-15 | Unmaintained <br> 2022-08-15 estimated | |
|
||||
| **r1.3** | Maintained | 2021-07-15 | Unmaintained <br> 2022-07-15 estimated | |
|
||||
| **r1.2** | Unmaintained | 2021-04-15 | End Of Life <br> 2022-04-15 estimated | |
|
||||
| **r1.1** | End Of Life | 2020-12-31 | | 2021-09-30 |
|
||||
| **r1.0** | End Of Life | 2020-09-24 | | 2021-07-30 |
|
||||
| **r1.2** | Maintained | 2021-04-15 | Unmaintained <br> 2022-04-15 estimated | |
|
||||
| **r1.1** | Unmaintained | 2020-12-31 | End Of Life <br> 2021-09-30 estimated | |
|
||||
| **r1.0** | Unmaintained | 2020-09-24 | End Of Life <br> 2021-07-30 estimated | |
|
||||
| **r0.7** | End Of Life | 2020-08-31 | | 2021-02-28 |
|
||||
| **r0.6** | End Of Life | 2020-07-31 | | 2020-12-30 |
|
||||
| **r0.5** | End Of Life | 2020-06-30 | | 2021-06-30 |
|
||||
|
|
|
|||
334
RELEASE.md
334
RELEASE.md
|
|
@ -1,334 +1,3 @@
|
|||
# MindSpore 1.6.0
|
||||
|
||||
## MindSpore 1.6.0 Release Notes
|
||||
|
||||
### Major Features and Improvements
|
||||
|
||||
#### OS
|
||||
|
||||
* [STABLE] Support macOS with CPU(X86)
|
||||
* [BETA] Supoport macOS with CPU(M1)
|
||||
|
||||
#### FrontEnd
|
||||
|
||||
* [STABLE] Support JIT Fallback feature in Graph mode.
|
||||
* [STABLE] Support compile cache feature in Graph mode.
|
||||
* [STABLE] Add new optimizers, including ASGD and Rprop.
|
||||
* [STABLE] Add new initializers, including Identity, Orthogonal, Dirac, Sparse and VarianceScaling.
|
||||
* [STABLE] Support resuming training when an exception occurs in the process.
|
||||
* [STABLE] Change `mindspore.nn.LSTMCell` from single-layer LSTM to single-cell LSTM.
|
||||
* [BETA] Introduce `mindspore.ops.Custom` to customize your own operators for Ascend(AICore, AICPU), GPU, CPU backends, and the custom type can be one of TBE, AKG, pure Python function or prebuild binary(called aot operator).
|
||||
|
||||
#### PyNative
|
||||
|
||||
* [STABLE] Support heterogeneous feature in PyNative mode.
|
||||
* [STABLE] Optimize memory allocation in PyNative mode.
|
||||
|
||||
#### Auto Parallel
|
||||
|
||||
- [STABLE] Support configuring the output shard strategy of the MatMul distributed operator.
|
||||
- [STABLE] Support multi-instances parallel.
|
||||
- [STABLE] Support activation slice communication and calculation overlap in Transformer.
|
||||
- [STABLE] Support heterogeneous parallel tensor swap.
|
||||
- [STABLE] Add implementations of distributed operator of ResizeNearestNeighbor.
|
||||
- [STABLE] Add a communication operator named NeighborExchangeV2 that supports data exchange between adjacent 8 rank ids.
|
||||
- [STABLE] Pipeline parallel support GPU platform.
|
||||
- [STABLE] Add cell-level data parallel interface.
|
||||
- [STABLE] Support gradient AllReduce fusion according to the amount of data.
|
||||
- [STABLE] Support a sharding strategy search algorithm called sharding propagation.
|
||||
|
||||
#### Executor
|
||||
|
||||
* [STABLE] Support multigraph sink and subgraph sink of MindRT.
|
||||
* [STABLE] Support memory swap to break the device memory size limit on Ascend platform.
|
||||
* [STABLE] Support dynamic deployment of distributed training cluster(GPU).
|
||||
* [BETA] Support automatic failover of parameter server.
|
||||
|
||||
#### DataSet
|
||||
|
||||
* [STABLE] Support overwrite feature in MindRecord.
|
||||
* [STABLE] Log improvement and more friendly to users.
|
||||
* [BETA] Support new feature [Dataset Offload](https://www.mindspore.cn/docs/programming_guide/zh-CN/master/enable_dataset_offload.html) to speed up data processing by heterogeneous computing.
|
||||
* [BETA] Support new feature [Dataset Autotune](https://www.mindspore.cn/docs/programming_guide/zh-CN/master/enable_dataset_autotune.html) to adjust parallelism of dataset pipeline automatically.
|
||||
|
||||
#### GraphKernel Fusion
|
||||
|
||||
* [STABLE] Support kernel fusion and generation for CPU backend.
|
||||
|
||||
#### Federated Learning
|
||||
|
||||
* [STABLE] FL-Client framework and model decoupling.
|
||||
* [BETA] Support Cross-silo federated learning framework.
|
||||
|
||||
#### Debug
|
||||
|
||||
* [STABLE] Support dump in cell level(Ascend).
|
||||
* [STABLE] Support dump Tensor statistics(Ascend/GPU).
|
||||
* [STABLE] Support displaying corresponding code lines for fusion nodes.
|
||||
* [STABLE] Support passing dump flag in Ascend backend in order to dump correct operators after fusion transformation.
|
||||
|
||||
### API Change
|
||||
|
||||
#### Backwards Incompatible Change
|
||||
|
||||
##### Python API
|
||||
|
||||
###### `mindspore.dataset.MindDataset` interface changes input parameter dataset_file([!27542](https://gitee.com/mindspore/mindspore/pulls/27542))
|
||||
|
||||
`MindDataset` contains the input parameter `dataset_file`, which is in the singular format. It can receive a single file path or a list that stores multiple file paths. Thus It is preferred to change the input parameter `dataset_file` into plural format. In addition, the input parameters of most dataset API, such as `TFRecordDataset`, are in plural formart (`dataset_files`). To ensure consistency, the input parameter `dataset_file` of MindDataset is changed to plural formart as `dataset_files`, we can see the updated version in api of [mindspore.dataset.MindDataset](https://www.mindspore.cn/docs/api/zh-CN/master/api_python/dataset/mindspore.dataset.MindDataset.html#mindspore.dataset.MindDataset).
|
||||
|
||||
###### Delete `mindspore.Tensor`'s property `virtual_flag`([!26989](https://gitee.com/mindspore/mindspore/pulls/26989))
|
||||
|
||||
###### Delete `mindspore.Parameter`'s property `is_init`([!26989](https://gitee.com/mindspore/mindspore/pulls/26989))
|
||||
|
||||
###### Delete `mindspore.nn.ROC`'s interface `roc`([!25713](https://gitee.com/mindspore/mindspore/pulls/25713))
|
||||
|
||||
###### The `shard()` interface of primitive is changed from `shard(strategy)` to `shard(in_strategy=None, out_strategy=None)`
|
||||
|
||||
###### The `set_auto_parallel_context()` interface of context is changed from
|
||||
|
||||
###### `set_auto_parallel_context(parallel_mode=AUTO_PARALLEL, auto_parallel_search_mode="dynamic_programming")` to ` set_auto_parallel_context(parallel_mode=AUTO_PARALLEL, search_mode="dynamic_programming")`
|
||||
|
||||
#### Collect Data and Create Landscape
|
||||
|
||||
##### Python API
|
||||
|
||||
###### `mindspore.train.callback.SummaryCollector` interface's parameter `collect_specified_data` add new operations `collect_landscape` ([!26229](https://gitee.com/mindspore/mindspore/pulls/26229))
|
||||
|
||||
`collect_landscape` can collect the parameters needed to create the loss landscape. we can see the updated version in api of [mindspore.train.callback.SummaryCollector](https://www.mindspore.cn/docs/api/zh-CN/master/api_python/mindspore.train.html#mindspore.train.callback.SummaryCollector).
|
||||
|
||||
###### `mindspore.train.callback` add new interface `SummaryLandscape` ([!26229](https://gitee.com/mindspore/mindspore/pulls/26229))
|
||||
|
||||
`SummaryLandscape` can help you to collect loss landscape information. It can create landscape in PCA direction or random direction by calculating loss. We can see the updated version in api of [mindspore.train.callback.SummaryLandscape](https://www.mindspore.cn/docs/api/zh-CN/master/api_python/mindspore.train.html#mindspore.train.callback.SummaryLandscape).
|
||||
|
||||
### Bug fixes
|
||||
|
||||
#### Executor
|
||||
|
||||
* Fix process hanging while calling MPI_comm_create in asymmetric pipeline split scenario. ([!28707](https://gitee.com/mindspore/mindspore/pulls/28707))
|
||||
* Fix the execution error when the weights are shared between graph mode and PyNative mode.([!26635](https://gitee.com/mindspore/mindspore/pulls/26635))
|
||||
* Fixed the probability coredump when free memory under PyNative mode.([!25472](https://gitee.com/mindspore/mindspore/pulls/25472))
|
||||
|
||||
#### Dataset
|
||||
|
||||
* Fix memory increase abnormally when running dataset for a long time. ([!26237](https://gitee.com/mindspore/mindspore/pulls/26237))
|
||||
* Fix saving MindRecord files with Chinese path on Windows. ([!28378](https://gitee.com/mindspore/mindspore/pulls/28378))
|
||||
|
||||
## MindSpore Lite
|
||||
|
||||
### Major Features and Improvements
|
||||
|
||||
#### Converter and runtime
|
||||
|
||||
* [STABLE] Add more fusion patterns in the converter tool to improve runtime performance.
|
||||
* [STABLE] Support take OpenGL texture as input and output of inference.
|
||||
* [STABLE] Refactor the JAVA API.
|
||||
* [BETA] Support inference on Ascend310.
|
||||
|
||||
#### x86 backend optimization
|
||||
|
||||
* [STABLE] Optimize kernels for x86 using Advanced Vector Extensions(AVX512).
|
||||
|
||||
#### ARM backend optimization
|
||||
|
||||
* [STABLE] Support heterogeneous parallel inference, including splitting operators, constructing heterogeneous subgraphs, and heterogeneous parallel scheduling between CPUs and GPUs.
|
||||
* [STABLE] Add more FP16 operators.
|
||||
|
||||
#### Post quantization
|
||||
|
||||
* [STABLE] Post quantization supports debugging.
|
||||
* [STABLE] Full quantization supports choosing non-quantized nodes.
|
||||
* [STABLE] Mixed bit quantization supports auto-tune.
|
||||
|
||||
#### Training on Device
|
||||
|
||||
* [STABLE] Support user-defined algorithm models to access the federated learning framework.
|
||||
|
||||
### Contributors
|
||||
|
||||
Thanks goes to these wonderful people:
|
||||
|
||||
AGroupofProbiotocs, anzhengqi, askmiao, baihuawei, baiyangfan, bai-yangfan, bingyaweng, BowenK, buxue, caifubi, CaoJian, caojian05, caozhou, Cathy, changzherui, chenbo116, chenfei, chengxianbin, chenhaozhe, chenjianping, chenzomi, chenzupeng, chujinjin, cj, cjh9368, Corleone, damon0626, danish, Danish, davidmc, dayschan, doitH, dong-li001, fary86, fuzhiye, Gaoxiong, GAO_HYP_XYJ, gengdongjie, Gogery, gongdaguo, gray0v0, gukecai, guoqi, gzhcv, hangq, hanhuifeng2020, Harshvardhan, He, heleiwang, hesham, hexia, Hoai, HuangBingjian, huangdongrun, huanghui, huangxinjing, huqi, huzhifeng, hwjiaorui, Jiabin Liu, jianghui58, Jiaqi, jin-xiulang, jinyaohui, jjfeing, John, jonyguo, JulyAi, jzg, kai00, kingfo, kingxian, kpy, kswang, liuyongqi, laiyongqiang, leonwanghui, liangchenghui, liangzelang, lichen_101010, lichenever, lihongkang, lilei, limingqi107, ling, linqingke, Lin Xh, liubuyu, liuwenhao4, liuxiao78, liuxiao93, liuyang_655, liuzhongkai, Lixia, lixian, liyanliu, liyong, lizhenyu, luopengting, lvchangquan, lvliang, lz, maning202007, Margaret_wangrui, mengyuanli, Ming_blue, ms_yan, ougongchang, panfengfeng, panyifeng, Payne, Peilin, peixu_ren, Pengyongrong, qianlong, qianjiahong, r1chardf1d0, riemann_penn, rmdyh, Sheng, shenwei41, simson, Simson, Su, sunsuodong, tao_yunhao, tinazhang, VectorSL, , Wan, wandongdong, wangdongxu, wangmin, [wangnan39@huawei.com](mailto:wangnan39@huawei.com), wangyue01, wangzhe, wanyiming, Wei, wenchunjiang, wilfChen, WilliamLian, wsc, wudenggang, wukesong, wuweikang, wuxuejian, Xiao Tianci, Xiaoda, xiefangqi, xinyunfan, xuanyue, xuyongfei, yanghaitao, yanghaitao1, yanghaoran, YangLuo, yangruoqi713, yankai, yanzhenxiang2020, yao_yf, yepei6, yeyunpeng, Yi, yoni, yoonlee666, yuchaojie, yujianfeng, yuximiao, zengzitao, Zhang, [zhanghaibo5@huawei.com](mailto:zhanghaibo5@huawei.com), zhanghuiyao, zhanghui_china, zhangxinfeng3, zhangyihui, zhangz0911gm, zhanke, zhanyuan, zhaodezan, zhaojichen, zhaoting, zhaozhenlong, zhengjun10, zhiqwang, zhoufeng, zhousiyi, zhouyaqiang, zhouyifengCode, Zichun, Ziyan, zjun, ZPaC, wangfengwfwf, zymaa, gerayking.
|
||||
|
||||
Contributions of any kind are welcome!
|
||||
|
||||
# MindSpore 1.5.2
|
||||
|
||||
## MindSpore 1.5.2 Release Notes
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Fix code specification, pclint, codedex alarm.
|
||||
- Repair NN Abnormal output of graphnorm operator.
|
||||
- Fixed the problem of poor performance in scenes with dynamic rnngrad batch size of 16 times.
|
||||
|
||||
### Contributors
|
||||
|
||||
Thanks goes to these wonderful people:
|
||||
|
||||
Adel, AGroupofProbiotocs, anthonyaje, anzhengqi, askmiao, baihuawei, baiyangfan, bai-yangfan, bingyaweng, BowenK, buxue, caifubi, CaoJian, caojian05, caozhou, Cathy, changzherui, chenbo116, chenfei, chengxianbin, chenhaozhe, chenjianping, chenzomi, chenzupeng, chujinjin, cj, cjh9368, Corleone, damon0626, danish, Danish, davidmc, dayschan, doitH, dong-li001, eric, Eric, fary86, fuzhiye, Gaoxiong, GAO_HYP_XYJ, gengdongjie, Gogery, gongdaguo, gray0v0, gukecai, guoqi, gzhcv, hangq, hanhuifeng2020, Harshvardhan, He, heleiwang, hexia, Hoai, HuangBingjian, huangdongrun, huanghui, huangxinjing, huqi, huzhifeng, hwjiaorui, Islam Amin, Jesse, , Jiabin Liu, jianghui58, jiangzhiwen, Jiaqi, jin-xiulang, jinyaohui, jjfeing, John, Jonathan, jonyguo, JulyAi, jzg, kai00, kingfo, kingxian, kpy, kswang, laiyongqiang, leonwanghui, Li, liangchenghui, liangzelang, lichen_101010, lichenever, lihongkang, lilei, limingqi107, ling, linqingke, Lin Xh, liubuyu, liuwenhao4, liuxiao78, liuxiao93, liuyang_655, liuzhongkai, Lixia, lixian, liyanliu, liyong, lizhenyu, luopengting, luoyang, lvchangquan, lvliang, lz, mahdi, Mahdi, maning202007, Margaret_wangrui, mayang, mengyuanli, Ming_blue, nhussain, ougongchang, panfengfeng, panyifeng, Payne, Peilin, peixu_ren, Pengyongrong, qianlong, qianjiahong, r1chardf1d0, riemann_penn, rmdyh, Sheng, shenwei41, simson, Simson, Su, sunsuodong, tao_yunhao, tinazhang, VectorSL, , Wan, wandongdong, wangdongxu, wangmin, wangnan39@huawei.com, wangyue01, wangzhe, wanyiming, Wei, wenchunjiang, wilfChen, WilliamLian, wsc, wudenggang, wukesong, wuweikang, wuxuejian, Xiao Tianci, Xiaoda, xiefangqi, xinyunfan, xuanyue, xulei2020, Xun, xuyongfei, yanghaitao, yanghaitao1, yanghaoran, YangLuo, yangruoqi713, yankai, yanzhenxiang2020, yao_yf, yepei6, yeyunpeng, Yi, yoni, yoonlee666, yuchaojie, yujianfeng, yuximiao, zengzitao, Zhang, zhanghaibo5@huawei.com, zhanghuiyao, zhanghui_china, zhangxinfeng3, zhangyihui, zhangz0911gm, zhanke, zhanyuan, zhaodezan, zhaojichen, zhaoting, zhaozhenlong, zhengjun10, Zhenglong Li, zhiqwang, zhoufeng, zhousiyi, zhouyaqiang, zhouyifengCode, Zichun, Zirui, Ziyan, zjun, ZPaC, wangfengwfwf, zymaa, gerayking.
|
||||
|
||||
Contributions of any kind are welcome!
|
||||
|
||||
# MindSpore 1.5.1
|
||||
|
||||
## MindSpore 1.5.1 Release Notes
|
||||
|
||||
### Bug fixes
|
||||
|
||||
- Fix code specification, pclint, codedex alarm.
|
||||
- Fix yolov4 network probabilistic segment error.
|
||||
|
||||
### Contributors
|
||||
|
||||
Thanks goes to these wonderful people:
|
||||
|
||||
Adel, AGroupofProbiotocs, anthonyaje, anzhengqi, askmiao, baihuawei, baiyangfan, bai-yangfan, bingyaweng, BowenK, buxue, caifubi, CaoJian, caojian05, caozhou, Cathy, changzherui, chenbo116, chenfei, chengxianbin, chenhaozhe, chenjianping, chenzomi, chenzupeng, chujinjin, cj, cjh9368, Corleone, damon0626, danish, Danish, davidmc, dayschan, doitH, dong-li001, eric, Eric, fary86, fuzhiye, Gaoxiong, GAO_HYP_XYJ, gengdongjie, Gogery, gongdaguo, gray0v0, gukecai, guoqi, gzhcv, hangq, hanhuifeng2020, Harshvardhan, He, heleiwang, hexia, Hoai, HuangBingjian, huangdongrun, huanghui, huangxinjing, huqi, huzhifeng, hwjiaorui, Islam Amin, Jesse, , Jiabin Liu, jianghui58, jiangzhiwen, Jiaqi, jin-xiulang, jinyaohui, jjfeing, John, Jonathan, jonyguo, JulyAi, jzg, kai00, kingfo, kingxian, kpy, kswang, laiyongqiang, leonwanghui, Li, liangchenghui, liangzelang, lichen_101010, lichenever, lihongkang, lilei, limingqi107, ling, linqingke, Lin Xh, liubuyu, liuwenhao4, liuxiao78, liuxiao93, liuyang_655, liuzhongkai, Lixia, lixian, liyanliu, liyong, lizhenyu, luopengting, luoyang, lvchangquan, lvliang, lz, mahdi, Mahdi, maning202007, Margaret_wangrui, mayang, mengyuanli, Ming_blue, nhussain, ougongchang, panfengfeng, panyifeng, Payne, Peilin, peixu_ren, Pengyongrong, qianlong, qianjiahong, r1chardf1d0, riemann_penn, rmdyh, Sheng, shenwei41, simson, Simson, Su, sunsuodong, tao_yunhao, tinazhang, VectorSL, , Wan, wandongdong, wangdongxu, wangmin, wangnan39@huawei.com, wangyue01, wangzhe, wanyiming, Wei, wenchunjiang, wilfChen, WilliamLian, wsc, wudenggang, wukesong, wuweikang, wuxuejian, Xiao Tianci, Xiaoda, xiefangqi, xinyunfan, xuanyue, xulei2020, Xun, xuyongfei, yanghaitao, yanghaitao1, yanghaoran, YangLuo, yangruoqi713, yankai, yanzhenxiang2020, yao_yf, yepei6, yeyunpeng, Yi, yoni, yoonlee666, yuchaojie, yujianfeng, yuximiao, zengzitao, Zhang, zhanghaibo5@huawei.com, zhanghuiyao, zhanghui_china, zhangxinfeng3, zhangyihui, zhangz0911gm, zhanke, zhanyuan, zhaodezan, zhaojichen, zhaoting, zhaozhenlong, zhengjun10, Zhenglong Li, zhiqwang, zhoufeng, zhousiyi, zhouyaqiang, zhouyifengCode, Zichun, Zirui, Ziyan, zjun, ZPaC, wangfengwfwf, zymaa, gerayking.
|
||||
|
||||
Contributions of any kind are welcome!
|
||||
|
||||
# MindSpore 1.5.0
|
||||
|
||||
## MindSpore 1.5.0 Release Notes
|
||||
|
||||
### Major Features and Improvements
|
||||
|
||||
#### NewModels
|
||||
|
||||
- [STABLE] Add CV model on Ascend: Fast-SCNN
|
||||
- [BETA] Add CV models on Ascend: midas_V2, attgan, FairMOT, CenterNet_resnet101, SEResNext, YOLOV3-tiny, RetinaFace
|
||||
- [STABLE] Add CV models on GPU: ssd_mobilenetv1_fpn, shufflenetv1, tinyDarkNet, CNN-CTC, unet++, DeepText, SqueezeNet
|
||||
- [STABLE] Add NLP models on GPU: GRU, GNMT2, Bert-Squad
|
||||
- [STABLE] Add recommend models on GPU: NCF
|
||||
- [BETA] Add CV models on GPU: FaceAttribute, FaceDetection, FaceRecongnition SENet,
|
||||
- [BETA] Add Audio models on GPU: DeepSpeech2
|
||||
- [STABLE]`model_zoo` has been separated to an individual repository`models`
|
||||
|
||||
#### FrontEnd
|
||||
|
||||
- [STABLE] Support`while` and`break`,`continue` statements of training network in`GRAPH_MODE`.
|
||||
- [BETA] Support export MindIR file after model training in cloud side and evaluate in edge side by import the MindIR file.
|
||||
- [STABLE] Support forward mode auto-diff interface Jvp(Jacobian-Vector-Product).
|
||||
- [STABLE] Support backward mode auto-diff interface Vjp(Vector-Jacobian-Product).
|
||||
|
||||
#### Auto Parallel
|
||||
|
||||
- [STABLE] Support distributed pipeline inference.
|
||||
- [STABLE] Add implementation of the sparse attention and its distributed operator.
|
||||
- [STABLE] Add implementations of distributed operator of Conv2d/Conv2dTranspose/Conv2dBackpropInput/Maxpool/Avgpool/Batchnorm/Gatherd.
|
||||
- [STABLE] Support configuring the dataset strategy on distributed training and inference mode.
|
||||
- [STABLE] Add high level API of the Transformer module.
|
||||
|
||||
#### Executor
|
||||
|
||||
- [STABLE] Support AlltoAll operator.
|
||||
- [STABLE] CPU operator (Adam) performance optimization increased by 50%.
|
||||
- [BETA] Support Adam offload feature, reduce the static memory usage of Pangu large model by 50%.
|
||||
- [STABLE] MindSpore Ascend backend supports configuration operator generation and loading cache path.
|
||||
- [STABLE] MindSpore Ascend backend supports lazy build in PyNaitve mode and compilation performance improved by 10 times.
|
||||
- [STABLE] The function or Cell decorated by ms_function supports gradient calculation in PyNative mode.
|
||||
- [STABLE] The outermost network supports parameters of non tensor type in PyNative mode.
|
||||
|
||||
#### DataSet
|
||||
|
||||
- [BETA] Add a new method for class Model to support auto data preprocessing in scenario of Ascend 310 inference.
|
||||
- [STABLE] Add a new drawing tool to visualize detection/segmentation datasets.
|
||||
- [STABLE] Support a new tensor operation named ConvertColor to support color space transform of images.
|
||||
- [STABLE] Enhance the following tensor operations to handle multiple columns simultaneously: RandomCrop, RandomHorizontalFlip, RandomResize, RandomResizedCrop, RandomVerticalFlip.
|
||||
- [STABLE] Support electromagnetic simulation dataset loading and data augmentation.
|
||||
- [STABLE] Optimize the error logs of Dataset to make them more friendly to users.
|
||||
|
||||
#### Federated Learning
|
||||
|
||||
- [STABLE] Change the deployment environment of FL-Client.
|
||||
|
||||
#### Running Data Recorder
|
||||
|
||||
- [STABLE] RDR saves collected data files within directories named by Rank ID on distributed training on Ascend, GPU and CPU.
|
||||
|
||||
#### GraphKernel Fusion
|
||||
|
||||
### API Change
|
||||
|
||||
#### Backwards Incompatible Change
|
||||
|
||||
##### Python API
|
||||
|
||||
###### New Recomputation Configuration for AutoParallel and SemiAutoParallel Scenarios
|
||||
|
||||
Configuring the recomputation of the communication operations generated by the model parallel and optimizer parallel to save the memory on the
|
||||
devices. Users can pass `mp_comm_recompute` and `parallel_optimizer_comm_recompute` to enable the recomputation of the communication operations.
|
||||
|
||||
### Bug fixes
|
||||
|
||||
#### FrontEnd
|
||||
|
||||
- Fix bug of too many subgraphs when network include`for` statement.([!23669](https://gitee.com/mindspore/mindspore/pulls/23669))
|
||||
|
||||
#### Executor
|
||||
|
||||
- RunTask failed when parameter_broadcast is enabled in PyNative mode. ([!23255](https://gitee.com/mindspore/mindspore/pulls/23255))
|
||||
- An illegal memory access was encountered in the dynamic shape net on GPU.
|
||||
- Fix tune failed for DynamicRnn. ([!21081](https://gitee.com/mindspore/mindspore/pulls/21081))
|
||||
|
||||
#### Dataset
|
||||
|
||||
- Optimize thread monitoring to solve the problem of running multiple multiprocessesing on Windwos. ([!23232](https://gitee.com/mindspore/mindspore/pulls/23232))
|
||||
- Fix bugs of Dataset tensor operations in lite mode. ([!21999](https://gitee.com/mindspore/mindspore/pulls/21999))
|
||||
- Fix memory increasing when using create_dict_iterator in for loop. ([!22529](https://gitee.com/mindspore/mindspore/pulls/22529))([!22529](https://gitee.com/mindspore/mindspore/pulls/22529))
|
||||
|
||||
## MindSpore Lite
|
||||
|
||||
### Major Features and Improvements
|
||||
|
||||
#### Converter and runtime
|
||||
|
||||
1. Optimize TDNN-like streaming model by reusing the result of last inference.
|
||||
2. Support dynamic filter Convolution.
|
||||
3. Support serializing float32 weight into float16 weight for reducing size of model file.
|
||||
4. Provide unified runtime API for developer reusing their code between cloud side and end side.
|
||||
5. Now developer can configure built-in pass as custom passes.
|
||||
6. Now user can specify format and shape of model inputs while converting model.
|
||||
7. Support multiple devices inference, includeing CPU, NPU, GPU. User can set devices in mindspore::Context.
|
||||
8. Support mixed precision inference. User can set inference precision by LoadConfig API.
|
||||
9. Support custom operator registration and enable inference on third-party hardware.
|
||||
|
||||
#### ARM backend optimization
|
||||
|
||||
1. Support the nchw data format of some Operators, such as Conv, InstanceNorm, etc. The performance of some models convertered from onnx and caffe is greatly improved.
|
||||
2. Fix bugs of memory leak on NPU.
|
||||
|
||||
#### Post quantization
|
||||
|
||||
1. Weight quantization supports mixed bit quantization.
|
||||
2. Full quantization supports data pre-processing.
|
||||
3. Adjust the quantization parameters from the command line to the configuration file.
|
||||
|
||||
#### Training on Device
|
||||
|
||||
1. Unify lite external api with MindSpore.
|
||||
2. Implement static memory allocator and common workspace for TOD,save memory 10-20%.
|
||||
3. Provide getgradients and setgradients interface,get and set optimizer params interfaces to support MOE Model.
|
||||
4. Support user specified output node when export IOD Model.
|
||||
5. Support more text networks (tinybert,albert) and operators.
|
||||
|
||||
#### Codegen
|
||||
|
||||
1. Support kernel register for custom op. Third-party hardware like NNIE can be accessed through it.
|
||||
|
||||
### API Change
|
||||
|
||||
#### API Incompatible Change
|
||||
|
||||
##### C++ API
|
||||
|
||||
### Contributors
|
||||
|
||||
Thanks goes to these wonderful people:
|
||||
|
||||
Adel, AGroupofProbiotocs, anthonyaje, anzhengqi, askmiao, baihuawei, baiyangfan, bai-yangfan, bingyaweng, BowenK, buxue, caifubi, CaoJian, caojian05, caozhou, Cathy, changzherui, chenbo116, chenfei, chengxianbin, chenhaozhe, chenjianping, chenzomi, chenzupeng, chujinjin, cj, cjh9368, Corleone, damon0626, danish, Danish, davidmc, dayschan, doitH, dong-li001, eric, Eric, fary86, fuzhiye, Gaoxiong, GAO_HYP_XYJ, gengdongjie, Gogery, gongdaguo, gray0v0, gukecai, guoqi, gzhcv, hangq, hanhuifeng2020, Harshvardhan, He, heleiwang, hexia, Hoai, HuangBingjian, huangdongrun, huanghui, huangxinjing, huqi, huzhifeng, hwjiaorui, Islam Amin, Jesse, , Jiabin Liu, jianghui58, jiangzhiwen, Jiaqi, jin-xiulang, jinyaohui, jjfeing, John, Jonathan, jonyguo, JulyAi, jzg, kai00, kingfo, kingxian, kpy, kswang, laiyongqiang, leonwanghui, Li, liangchenghui, liangzelang, lichen_101010, lichenever, lihongkang, lilei, limingqi107, ling, linqingke, Lin Xh, liubuyu, liuwenhao4, liuxiao78, liuxiao93, liuyang_655, liuzhongkai, Lixia, lixian, liyanliu, liyong, lizhenyu, luopengting, luoyang, lvchangquan, lvliang, lz, mahdi, Mahdi, maning202007, Margaret_wangrui, mayang, mengyuanli, Ming_blue, nhussain, ougongchang, panfengfeng, panyifeng, Payne, Peilin, peixu_ren, Pengyongrong, qianlong, qianjiahong, r1chardf1d0, riemann_penn, rmdyh, Sheng, shenwei41, simson, Simson, Su, sunsuodong, tao_yunhao, tinazhang, VectorSL, , Wan, wandongdong, wangdongxu, wangmin, wangnan39@huawei.com, wangyue01, wangzhe, wanyiming, Wei, wenchunjiang, wilfChen, WilliamLian, wsc, wudenggang, wukesong, wuweikang, wuxuejian, Xiao Tianci, Xiaoda, xiefangqi, xinyunfan, xuanyue, xulei2020, Xun, xuyongfei, yanghaitao, yanghaitao1, yanghaoran, YangLuo, yangruoqi713, yankai, yanzhenxiang2020, yao_yf, yepei6, yeyunpeng, Yi, yoni, yoonlee666, yuchaojie, yujianfeng, yuximiao, zengzitao, Zhang, zhanghaibo5@huawei.com, zhanghuiyao, zhanghui_china, zhangxinfeng3, zhangyihui, zhangz0911gm, zhanke, zhanyuan, zhaodezan, zhaojichen, zhaoting, zhaozhenlong, zhengjun10, Zhenglong Li, zhiqwang, zhoufeng, zhousiyi, zhouyaqiang, zhouyifengCode, Zichun, Zirui, Ziyan, zjun, ZPaC, wangfengwfwf, zymaa, gerayking.
|
||||
|
||||
Contributions of any kind are welcome!
|
||||
|
||||
# MindSpore 1.4.0
|
||||
|
||||
|
|
@ -1352,7 +1021,6 @@ MSTensor::DestroyTensorPtr(tensor);
|
|||
2. Multiplatform support, including Android, IoT Devices.
|
||||
3. Support offline model weight preprocessing while compiling.
|
||||
4. Support offline memory reuse computing for minimum runtime buffer size.
|
||||
5. Support kernel register for custom op. Third-party hardware like NNIE can be accessed through it.
|
||||
|
||||
### API Change
|
||||
|
||||
|
|
@ -2546,7 +2214,7 @@ In Ascend platform, if group > 1, the weight shape of Conv2D change from [in_cha
|
|||
6. Support Model(.ms) visualization on Netron.
|
||||
7. Support Tensorflow model in MindSpore Lite Converter
|
||||
8. Add 86 converter parsers.
|
||||
9. Convert aware training model without user's awareness
|
||||
9. Convert aware training model without user’s awareness
|
||||
10. Support scalar tensor in MindSpore Lite Converter and Runtime
|
||||
11. Support NPU backend on HUAWEI Kirin SoC.[BETA]
|
||||
12. Merge timeprofiler into benchmark
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL
|
|||
|
||||
Copyright Notice and License Texts
|
||||
|
||||
Software: asttokens 2.0.0
|
||||
Software: asttokens 1.1.13
|
||||
Copyright notice:
|
||||
copyright = u'2016, Grist Labs'
|
||||
Copyright 2016 Grist Labs, Inc.
|
||||
|
|
@ -214,6 +214,45 @@ Copyright 2016 Grist Labs, Inc.
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
Software: cffi 1.12.3
|
||||
Copyright notice:
|
||||
Copyright (c) 2002 Ranjit Mathew
|
||||
Copyright (c) 2002 Roger Sayle
|
||||
types.c - Copyright (c) 1996, 1998 Red Hat, Inc.
|
||||
assert list(c) == [0, 100, 1000, 600, 0]
|
||||
Copyright (c) 2002 Bo Thorsen
|
||||
fficommon.h - Copyright (c) 1996 Red Hat, Inc.
|
||||
prepcif.c - Copyright (c) 1996, 1998 Red Hat, Inc.
|
||||
ffitarget.h - Copyright (c) 1996-2003 Red Hat, Inc.
|
||||
copyright = u'2012-2018, Armin Rigo, Maciej Fijalkowski'
|
||||
libffi - Copyright (c) 1996-2003 Red Hat, Inc.
|
||||
Copyright (c) 2001 John Beniton
|
||||
libffi 2.00-beta - Copyright (c) 1996-2003 Red Hat, Inc.
|
||||
win32.S - Copyright (c) 1996, 1998, 2001, 2002 Red Hat, Inc.
|
||||
ffi.c - Copyright (c) 1996, 1998, 1999, 2001 Red Hat, Inc.
|
||||
|
||||
License:The MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person
|
||||
obtaining a copy of this software and associated documentation
|
||||
files (the "Software"), to deal in the Software without
|
||||
restriction, including without limitation the rights to use,
|
||||
copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included
|
||||
in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
Software: easydict 1.9
|
||||
Copyright notice:
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http:fsf.org/>
|
||||
|
|
@ -2207,34 +2246,6 @@ Copyright (c) 2016 Los Alamos National Security, LLC. All rights
|
|||
Copyright (c) 2010-2016 IBM Corporation. All rights reserved.
|
||||
Copyright (c) 2009-2011 Oracle and/or its affiliates. All rights reserved.
|
||||
|
||||
Software: re2 20191201
|
||||
Copyright notice:
|
||||
Copyright (C) 2005 Free Software Foundation, Inc.
|
||||
Copyright (C) 2007 Free Software Foundation, Inc.
|
||||
Copyright (C) 2009 Free Software Foundation, Inc.
|
||||
Copyright (C) 2009 The Android Open Source Project
|
||||
Copyright (c) 2002 by Lucent Technologies.
|
||||
Copyright (c) 2009 The RE2 Authors.
|
||||
Copyright 1999-2005 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2001-2010 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2002-2009 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2003-2009 Google Inc.
|
||||
Copyright 2003-2009 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2003-2010 Google Inc. All Rights Reserved.
|
||||
Copyright 2004 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2005 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2006 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2006-2007 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2006-2008 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2007 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2008 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2009 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2010 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2012 The Go Authors.
|
||||
Copyright 2015 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2016 The RE2 Authors. All Rights Reserved.
|
||||
Copyright 2018 The RE2 Authors. All Rights Reserved.
|
||||
|
||||
License: BSD-3 with additional clause
|
||||
Most files in this release are marked with the copyrights of the
|
||||
organizations who have edited them. The copyrights below are in no
|
||||
|
|
@ -3048,7 +3059,7 @@ Copyright (c) Facebook Inc. and Microsoft Corporation.
|
|||
License: MIT License
|
||||
Please see above.
|
||||
|
||||
Software: flatbuffers 2.0.0
|
||||
Software: flatbuffers 1.11.0
|
||||
Copyright notice:
|
||||
Copyright (c) 2015 Google, Inc.
|
||||
Copyright 2014 Google Inc. All rights reserved.
|
||||
|
|
@ -5019,71 +5030,38 @@ tinytest.c -- Copyright 2009-2012 Nick Mathewson
|
|||
tinytest.h -- Copyright 2009-2012 Nick Mathewson
|
||||
tinytestmacros.h -- Copyright 2009-2012 Nick Mathewson
|
||||
|
||||
Software: grpc 1.36.1
|
||||
Software: grpc 1.27.3
|
||||
Copyright notice:
|
||||
Copyright 2015 The gRPC Authors
|
||||
Copyright 2016 The gRPC Authors
|
||||
Copyright 2018 The gRPC Authors
|
||||
Copyright 2019 The gRPC Authors
|
||||
Copyright 2018 The gRPC Authors
|
||||
Copyright © 2018 gRPC.
|
||||
Copyright 2015 gRPC authors.
|
||||
Copyright 2019 gRPC authors.
|
||||
Copyright 2016 gRPC authors.
|
||||
Copyright 2017 gRPC authors.
|
||||
Copyright 2019 gRPC authors.
|
||||
Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
Copyright (C) 2009 - 2013 by Daniel Stenberg et al
|
||||
Copyright (c) 2004, 2006-2010 Michael Roth <mroth@nessie.de>
|
||||
Copyright (c) 2004-2009 Michael Roth <mroth@nessie.de>
|
||||
Copyright (c) 2004-2010 Michael Roth <mroth@nessie.de>
|
||||
Copyright (c) 2006-2008 Michael Roth <mroth@nessie.de>
|
||||
Copyright (c) 2009-2011, Google Inc.
|
||||
Copyright (c) 2018, Google Inc.
|
||||
Copyright 2007 Google Inc. All Rights Reserved.
|
||||
Copyright 2008 Google Inc.
|
||||
Copyright 2013 Google Inc.
|
||||
Copyright 2014 Google Inc.
|
||||
Copyright 2014 gRPC authors.
|
||||
Copyright 2014, Google Inc.
|
||||
Copyright 2015 The gRPC Authors
|
||||
Copyright 2015 gRPC authors.
|
||||
Copyright 2015, Google Inc.
|
||||
Copyright 2015-2016 gRPC authors.
|
||||
Copyright 2015-2017 gRPC authors.
|
||||
Copyright 2016 Google Inc.
|
||||
Copyright 2016 The Chromium Authors.
|
||||
Copyright 2016 gRPC authors.
|
||||
Copyright 2016, Google Inc.
|
||||
Copyright 2017 The gRPC Authors
|
||||
Copyright 2017 gRPC authors.
|
||||
Copyright 2018 The Bazel Authors.
|
||||
Copyright 2018 The gRPC Authors
|
||||
Copyright 2018 The gRPC Authors.
|
||||
Copyright 2018 gRPC Authors.
|
||||
Copyright 2018 gRPC authors.
|
||||
Copyright 2018, gRPC Authors
|
||||
Copyright 2019 Istio Authors. All Rights Reserved.
|
||||
Copyright 2019 The Bazel Authors.
|
||||
Copyright 2019 The gRPC Authors
|
||||
Copyright 2019 The gRPC Authors.
|
||||
Copyright 2018 gRPC authors.
|
||||
Copyright 2019 The gRPC authors.
|
||||
Copyright 2019 gRPC authors.
|
||||
Copyright 2018 The gRPC Authors
|
||||
Copyright 2016 The Chromium Authors. All rights reserved.
|
||||
Copyright 2019 the gRPC authors.
|
||||
Copyright 2019, Google Inc.
|
||||
Copyright 2020 The gRPC Authors
|
||||
Copyright 2020 The gRPC Authors.
|
||||
Copyright 2020 The gRPC authors.
|
||||
Copyright 2018, gRPC Authors All rights reserved.
|
||||
Copyright 2018 The gRPC Authors.
|
||||
Copyright 2019 The gRPC Authors. Grant of Copyright License.
|
||||
Copyright 2015-2017 gRPC authors.
|
||||
Copyright 2020 gRPC authors.
|
||||
Copyright 2020 the gRPC authors.
|
||||
Copyright 2020 王一 Wang Yi <godspeedchina@yeah.net>
|
||||
Copyright 2021 The gRPC Authors
|
||||
Copyright 2021 The gRPC authors.
|
||||
Copyright 2021 gRPC authors.
|
||||
Copyright 2021 the gRPC authors.
|
||||
Copyright 2015 The gRPC Authors
|
||||
Copyright 2017 The gRPC Authors
|
||||
Copyright 2015 gRPC authors.
|
||||
Copyright 2016 gRPC authors.
|
||||
Copyright (c) 2009-2011, Google Inc.
|
||||
Copyright (c) 2004-2010 Michael Roth <mroth@nessie.de>
|
||||
Copyright (c) 2017, Google Inc.
|
||||
Copyright (c) 2015, Google Inc.
|
||||
Copyright (C) 2009 - 2013 by Daniel Stenberg et al
|
||||
Copyright 2014 Google Inc.
|
||||
Copyright 2016-2017 gRPC authors.
|
||||
Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. gRPC in 3 minutes (C)
|
||||
Copyright 2018 gRPC Authors.
|
||||
Copyright 2015 The gRPC Authors GPRASSERT(c); grpccallunref(c);
|
||||
Copyright 2014 gRPC authors.
|
||||
Copyright 2020 The gRPC Authors
|
||||
Copyright 2017 The gRPC Authors
|
||||
Copyright (c) 2015 Lars Kanis
|
||||
|
||||
Software: opencv 4.2.0
|
||||
Copyright notice:
|
||||
|
|
@ -6875,14 +6853,16 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
Software: abseil-cpp 20200923.3
|
||||
Software: abseil-cpp 20200225.2
|
||||
Copyright notice:
|
||||
Copyright 2016 Google Inc. All Rights Reserved.
|
||||
Copyright 2017 Google Inc. All Rights Reserved.
|
||||
Copyright 2017 The Abseil Authors.
|
||||
Copyright 2018 The Abseil Authors.
|
||||
Copyright 2019 The Abseil Authors.
|
||||
Copyright 2018 The Abseil Authors.
|
||||
Copyright 2020 The Abseil Authors.
|
||||
Copyright 2017 Google Inc. All Rights Reserved.
|
||||
Copyright 2016 Google Inc. All Rights Reserved.
|
||||
Copyright 2000 - 2007 Google Inc.
|
||||
Copyright 2011 and onwards Google Inc.
|
||||
Copyright 2017 The Abseil Authors.
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
|
|
@ -9774,4 +9754,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|||
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
2
akg
2
akg
|
|
@ -1 +1 @@
|
|||
Subproject commit 0ddab6d9cad4c4c9faf72585e5a52faf79f55e4d
|
||||
Subproject commit 15b59fb739944c1903558659a39b34bb632de448
|
||||
26
build.bat
26
build.bat
|
|
@ -18,11 +18,19 @@
|
|||
SET BASE_PATH=%CD%
|
||||
SET BUILD_PATH=%BASE_PATH%/build
|
||||
|
||||
SET threads=8
|
||||
SET threads=6
|
||||
SET ENABLE_GITEE=OFF
|
||||
|
||||
set VERSION_STR=''
|
||||
for /f "tokens=1" %%a in (version.txt) do (set VERSION_STR=%%a)
|
||||
set VERSION_MAJOR=''
|
||||
set VERSION_MINOR=''
|
||||
set ERSION_REVISION=''
|
||||
|
||||
for /f "delims=\= tokens=2" %%a in ('findstr /C:"const int ms_version_major = " mindspore\lite\include\version.h') do (set x=%%a)
|
||||
set VERSION_MAJOR=%x:~1,1%
|
||||
for /f "delims=\= tokens=2" %%b in ('findstr /C:"const int ms_version_minor = " mindspore\lite\include\version.h') do (set y=%%b)
|
||||
set VERSION_MINOR=%y:~1,1%
|
||||
for /f "delims=\= tokens=2" %%c in ('findstr /C:"const int ms_version_revision = " mindspore\lite\include\version.h') do (set z=%%c)
|
||||
set VERSION_REVISION=%z:~1,1%
|
||||
|
||||
ECHO %2%|FINDSTR "^[0-9][0-9]*$"
|
||||
IF %errorlevel% == 0 (
|
||||
|
|
@ -44,14 +52,16 @@ IF NOT EXIST "%BUILD_PATH%/mindspore" (
|
|||
|
||||
cd %BUILD_PATH%/mindspore
|
||||
IF "%1%" == "lite" (
|
||||
echo "======Start building MindSpore Lite %VERSION_STR%======"
|
||||
echo "======Start building MindSpore Lite %VERSION_MAJOR%.%VERSION_MINOR%.%VERSION_REVISION%======"
|
||||
rd /s /q "%BASE_PATH%\output"
|
||||
(git log -1 | findstr "^commit") > %BUILD_PATH%\.commit_id
|
||||
IF defined VisualStudioVersion (
|
||||
cmake -DMSLITE_MINDDATA_IMPLEMENT=off -DMSLITE_ENABLE_TRAIN=off -DVERSION_STR=%VERSION_STR% ^
|
||||
cmake -DBUILD_MINDDATA=off -DMSLITE_ENABLE_TRAIN=off ^
|
||||
-DMS_VERSION_MAJOR=%VERSION_MAJOR% -DMS_VERSION_MINOR=%VERSION_MINOR% -DMS_VERSION_REVISION=%VERSION_REVISION% ^
|
||||
-DCMAKE_BUILD_TYPE=Release -G "Ninja" "%BASE_PATH%/mindspore/lite"
|
||||
) ELSE (
|
||||
cmake -DMSLITE_MINDDATA_IMPLEMENT=off -DMSLITE_ENABLE_TRAIN=off -DVERSION_STR=%VERSION_STR% ^
|
||||
cmake -DBUILD_MINDDATA=off -DMSLITE_ENABLE_TRAIN=off ^
|
||||
-DMS_VERSION_MAJOR=%VERSION_MAJOR% -DMS_VERSION_MINOR=%VERSION_MINOR% -DMS_VERSION_REVISION=%VERSION_REVISION% ^
|
||||
-DCMAKE_BUILD_TYPE=Release -G "CodeBlocks - MinGW Makefiles" "%BASE_PATH%/mindspore/lite"
|
||||
)
|
||||
) ELSE (
|
||||
|
|
@ -77,8 +87,6 @@ EXIT /b 0
|
|||
:clean
|
||||
IF EXIST "%BASE_PATH%/output" (
|
||||
cd %BASE_PATH%/output
|
||||
if EXIST "%BASE_PATH%/output/_CPack_Packages" (
|
||||
rd /s /q _CPack_Packages
|
||||
)
|
||||
rd /s /q _CPack_Packages
|
||||
)
|
||||
cd %BASE_PATH%
|
||||
489
build.sh
489
build.sh
|
|
@ -16,17 +16,55 @@
|
|||
|
||||
set -e
|
||||
BASEPATH=$(cd "$(dirname $0)"; pwd)
|
||||
export CUDA_PATH=""
|
||||
CUDA_PATH=""
|
||||
export BUILD_PATH="${BASEPATH}/build/"
|
||||
|
||||
source ./scripts/build/usage.sh
|
||||
source ./scripts/build/default_options.sh
|
||||
source ./scripts/build/option_proc_debug.sh
|
||||
source ./scripts/build/option_proc_mindspore.sh
|
||||
source ./scripts/build/option_proc_lite.sh
|
||||
source ./scripts/build/process_options.sh
|
||||
source ./scripts/build/parse_device.sh
|
||||
source ./scripts/build/build_mindspore.sh
|
||||
# print usage message
|
||||
usage()
|
||||
{
|
||||
echo "Usage:"
|
||||
echo "bash build.sh [-d] [-r] [-v] [-c on|off] [-t ut|st] [-g on|off] [-h] [-b ge] [-m infer|train] \\"
|
||||
echo " [-a on|off] [-p on|off] [-i] [-R] [-D on|off] [-j[n]] [-e gpu|ascend|cpu] \\"
|
||||
echo " [-P on|off] [-z [on|off]] [-M on|off] [-V 10.1|11.1|310|910] [-I arm64|arm32|x86_64] [-K] \\"
|
||||
echo " [-B on|off] [-E] [-l on|off] [-n full|lite|off] [-H on|off] \\"
|
||||
echo " [-A on|off] [-S on|off] [-k on|off] [-W sse|neon|avx|avx512|off] \\"
|
||||
echo " [-L Tensor-RT path] \\"
|
||||
echo ""
|
||||
echo "Options:"
|
||||
echo " -d Debug mode"
|
||||
echo " -r Release mode, default mode"
|
||||
echo " -v Display build command"
|
||||
echo " -c Enable code coverage, default off"
|
||||
echo " -t Run testcases, default off"
|
||||
echo " -g Use glog to output log, default on"
|
||||
echo " -h Print usage"
|
||||
echo " -b Select other backend, available: \\"
|
||||
echo " ge:graph engine"
|
||||
echo " -m Select graph engine backend mode, available: infer, train, default is infer"
|
||||
echo " -a Enable ASAN, default off"
|
||||
echo " -p Enable pipeline profile, print to stdout, default off"
|
||||
echo " -R Enable pipeline profile, record to json, default off"
|
||||
echo " -i Enable increment building, default off"
|
||||
echo " -j[n] Set the threads when building (Default: -j8)"
|
||||
echo " -e Use cpu, gpu or ascend"
|
||||
echo " -s Enable security, default off"
|
||||
echo " -P Enable dump anf graph to file in ProtoBuffer format, default on"
|
||||
echo " -D Enable dumping of function graph ir, default on"
|
||||
echo " -z Compile dataset & mindrecord, default on"
|
||||
echo " -n Compile minddata with mindspore lite, available: off, lite, full, lite_cv, full mode in lite train and lite_cv, wrapper mode in lite predict"
|
||||
echo " -M Enable MPI and NCCL for GPU training, gpu default on"
|
||||
echo " -V Specify the device version, if -e gpu, default CUDA 10.1, if -e ascend, default Ascend 910"
|
||||
echo " -I Enable compiling mindspore lite for arm64, arm32 or x86_64, default disable mindspore lite compilation"
|
||||
echo " -A Enable compiling mindspore lite aar package, option: on/off, default: off"
|
||||
echo " -K Compile with AKG, default on"
|
||||
echo " -B Enable debugger, default on"
|
||||
echo " -E Enable IBVERBS for parameter server, default off"
|
||||
echo " -l Compile with python dependency, default on"
|
||||
echo " -S Enable enable download cmake compile dependency from gitee , default off"
|
||||
echo " -k Enable make clean, clean up compilation generated cache "
|
||||
echo " -W Enable x86_64 SSE or AVX instruction set, use [sse|neon|avx|avx512|off], default off for lite and avx for CPU"
|
||||
echo " -H Enable hidden"
|
||||
echo " -L Link and specify Tensor-RT library path, default disable Tensor-RT lib linking"
|
||||
}
|
||||
|
||||
# check value of input is 'on' or 'off'
|
||||
# usage: check_on_off arg_value arg_name
|
||||
|
|
@ -39,18 +77,339 @@ check_on_off()
|
|||
fi
|
||||
}
|
||||
|
||||
# check and set options
|
||||
checkopts()
|
||||
{
|
||||
# Init default values of build options
|
||||
THREAD_NUM=8
|
||||
DEBUG_MODE="off"
|
||||
VERBOSE=""
|
||||
ENABLE_SECURITY="off"
|
||||
ENABLE_COVERAGE="off"
|
||||
RUN_TESTCASES="off"
|
||||
RUN_CPP_ST_TESTS="off"
|
||||
ENABLE_BACKEND=""
|
||||
TRAIN_MODE="INFER"
|
||||
ENABLE_ASAN="off"
|
||||
ENABLE_PROFILE="off"
|
||||
INC_BUILD="off"
|
||||
ENABLE_TIMELINE="off"
|
||||
ENABLE_DUMP2PROTO="on"
|
||||
ENABLE_DUMP_IR="on"
|
||||
COMPILE_MINDDATA="on"
|
||||
COMPILE_MINDDATA_LITE="lite_cv"
|
||||
ENABLE_MPI="off"
|
||||
CUDA_VERSION="10.1"
|
||||
COMPILE_LITE="off"
|
||||
LITE_PLATFORM=""
|
||||
LITE_ENABLE_AAR="off"
|
||||
USE_GLOG="on"
|
||||
ENABLE_AKG="on"
|
||||
ENABLE_ACL="off"
|
||||
ENABLE_D="off"
|
||||
ENABLE_DEBUGGER="on"
|
||||
ENABLE_IBVERBS="off"
|
||||
ENABLE_PYTHON="on"
|
||||
ENABLE_GPU="off"
|
||||
ENABLE_VERBOSE="off"
|
||||
ENABLE_GITEE="off"
|
||||
ENABLE_MAKE_CLEAN="off"
|
||||
X86_64_SIMD="off"
|
||||
ARM_SIMD="off"
|
||||
DEVICE_VERSION=""
|
||||
DEVICE=""
|
||||
ENABLE_HIDDEN="on"
|
||||
TENSORRT_HOME=""
|
||||
USER_ENABLE_DUMP_IR=false
|
||||
USER_ENABLE_DEBUGGER=false
|
||||
# Process the options
|
||||
while getopts 'drvj:c:t:hb:s:a:g:p:ie:m:l:I:RP:D:zM:V:K:B:En:A:S:k:W:H:L:' opt
|
||||
do
|
||||
CASE_SENSIVE_ARG=${OPTARG}
|
||||
OPTARG=$(echo ${OPTARG} | tr '[A-Z]' '[a-z]')
|
||||
case "${opt}" in
|
||||
d)
|
||||
DEBUG_MODE="on"
|
||||
;;
|
||||
n)
|
||||
if [[ "X$OPTARG" == "Xoff" || "X$OPTARG" == "Xlite" || "X$OPTARG" == "Xfull" || "X$OPTARG" == "Xlite_cv" || "X$OPTARG" == "Xwrapper" ]]; then
|
||||
COMPILE_MINDDATA_LITE="$OPTARG"
|
||||
else
|
||||
echo "Invalid value ${OPTARG} for option -n"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
r)
|
||||
DEBUG_MODE="off"
|
||||
;;
|
||||
v)
|
||||
ENABLE_VERBOSE="on"
|
||||
VERBOSE="VERBOSE=1"
|
||||
;;
|
||||
j)
|
||||
THREAD_NUM=$OPTARG
|
||||
;;
|
||||
c)
|
||||
check_on_off $OPTARG c
|
||||
ENABLE_COVERAGE="$OPTARG"
|
||||
;;
|
||||
t)
|
||||
if [[ "X$OPTARG" == "Xon" || "X$OPTARG" == "Xut" ]]; then
|
||||
RUN_TESTCASES="on"
|
||||
elif [[ "X$OPTARG" == "Xoff" ]]; then
|
||||
RUN_TESTCASES="off"
|
||||
elif [[ "X$OPTARG" == "Xst" ]]; then
|
||||
RUN_CPP_ST_TESTS="on"
|
||||
else
|
||||
echo "Invalid value ${OPTARG} for option -t"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
g)
|
||||
check_on_off $OPTARG g
|
||||
USE_GLOG="$OPTARG"
|
||||
;;
|
||||
h)
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
b)
|
||||
if [[ "X$OPTARG" != "Xge" && "X$OPTARG" != "Xcpu" ]]; then
|
||||
echo "Invalid value ${OPTARG} for option -b"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
ENABLE_BACKEND=$(echo "$OPTARG" | tr '[a-z]' '[A-Z]')
|
||||
if [[ "X$ENABLE_BACKEND" != "XCPU" ]]; then
|
||||
ENABLE_CPU="on"
|
||||
fi
|
||||
;;
|
||||
a)
|
||||
check_on_off $OPTARG a
|
||||
ENABLE_ASAN="$OPTARG"
|
||||
;;
|
||||
p)
|
||||
check_on_off $OPTARG p
|
||||
ENABLE_PROFILE="$OPTARG"
|
||||
;;
|
||||
l)
|
||||
check_on_off $OPTARG l
|
||||
ENABLE_PYTHON="$OPTARG"
|
||||
;;
|
||||
i)
|
||||
INC_BUILD="on"
|
||||
;;
|
||||
m)
|
||||
if [[ "X$OPTARG" != "Xinfer" && "X$OPTARG" != "Xtrain" ]]; then
|
||||
echo "Invalid value ${OPTARG} for option -m"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
TRAIN_MODE=$(echo "$OPTARG" | tr '[a-z]' '[A-Z]')
|
||||
;;
|
||||
s)
|
||||
check_on_off $OPTARG s
|
||||
if [[ "X$OPTARG" == "Xon" ]]; then
|
||||
if [[ $USER_ENABLE_DUMP_IR == true ]]; then
|
||||
echo "enable security, the dump ir is not available"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
if [[ $USER_ENABLE_DEBUGGER == true ]]; then
|
||||
echo "enable security, the debugger is not available"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
ENABLE_DUMP_IR="off"
|
||||
ENABLE_DEBUGGER="off"
|
||||
fi
|
||||
ENABLE_SECURITY="$OPTARG"
|
||||
echo "enable security"
|
||||
;;
|
||||
R)
|
||||
ENABLE_TIMELINE="on"
|
||||
echo "enable time_line record"
|
||||
;;
|
||||
S)
|
||||
check_on_off $OPTARG S
|
||||
ENABLE_GITEE="$OPTARG"
|
||||
echo "enable download from gitee"
|
||||
;;
|
||||
k)
|
||||
check_on_off $OPTARG k
|
||||
ENABLE_MAKE_CLEAN="$OPTARG"
|
||||
echo "enable make clean"
|
||||
;;
|
||||
e)
|
||||
DEVICE=$OPTARG
|
||||
;;
|
||||
M)
|
||||
check_on_off $OPTARG M
|
||||
ENABLE_MPI="$OPTARG"
|
||||
;;
|
||||
V)
|
||||
DEVICE_VERSION=$OPTARG
|
||||
;;
|
||||
P)
|
||||
check_on_off $OPTARG p
|
||||
ENABLE_DUMP2PROTO="$OPTARG"
|
||||
echo "enable dump anf graph to proto file"
|
||||
;;
|
||||
D)
|
||||
check_on_off $OPTARG D
|
||||
if [[ "X$OPTARG" == "Xon" ]]; then
|
||||
if [[ "X$ENABLE_SECURITY" == "Xon" ]]; then
|
||||
echo "enable security, the dump ir is not available"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
USER_ENABLE_DUMP_IR=true
|
||||
fi
|
||||
ENABLE_DUMP_IR="$OPTARG"
|
||||
echo "enable dump function graph ir"
|
||||
;;
|
||||
z)
|
||||
eval ARG=\$\{$OPTIND\}
|
||||
if [[ -n "$ARG" && "$ARG" != -* ]]; then
|
||||
OPTARG="$ARG"
|
||||
check_on_off $OPTARG z
|
||||
OPTIND=$((OPTIND + 1))
|
||||
else
|
||||
OPTARG=""
|
||||
fi
|
||||
if [[ "X$OPTARG" == "Xoff" ]]; then
|
||||
COMPILE_MINDDATA="off"
|
||||
fi
|
||||
;;
|
||||
I)
|
||||
COMPILE_LITE="on"
|
||||
if [[ "$OPTARG" == "arm64" ]]; then
|
||||
LITE_PLATFORM="arm64"
|
||||
elif [[ "$OPTARG" == "arm32" ]]; then
|
||||
LITE_PLATFORM="arm32"
|
||||
elif [[ "$OPTARG" == "x86_64" ]]; then
|
||||
LITE_PLATFORM="x86_64"
|
||||
else
|
||||
echo "-I parameter must be arm64、arm32 or x86_64"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
K)
|
||||
ENABLE_AKG="on"
|
||||
echo "enable compile with akg"
|
||||
;;
|
||||
B)
|
||||
check_on_off $OPTARG B
|
||||
if [[ "X$OPTARG" == "Xon" ]]; then
|
||||
if [[ "X$ENABLE_SECURITY" == "Xon" ]]; then
|
||||
echo "enable security, the debugger is not available"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
USER_ENABLE_DEBUGGER=true
|
||||
fi
|
||||
ENABLE_DEBUGGER="$OPTARG"
|
||||
;;
|
||||
E)
|
||||
ENABLE_IBVERBS="on"
|
||||
echo "enable IBVERBS for parameter server"
|
||||
;;
|
||||
A)
|
||||
COMPILE_LITE="on"
|
||||
if [[ "$OPTARG" == "on" ]]; then
|
||||
LITE_ENABLE_AAR="on"
|
||||
fi
|
||||
;;
|
||||
W)
|
||||
if [[ "$OPTARG" != "sse" && "$OPTARG" != "off" && "$OPTARG" != "avx" && "$OPTARG" != "avx512" && "$OPTARG" != "neon" ]]; then
|
||||
echo "Invalid value ${OPTARG} for option -W, -W parameter must be sse|neon|avx|avx512|off"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
if [[ "$OPTARG" == "sse" || "$OPTARG" == "avx" || "$OPTARG" == "avx512" ]]; then
|
||||
X86_64_SIMD="$OPTARG"
|
||||
fi
|
||||
if [[ "$OPTARG" == "neon" ]]; then
|
||||
ARM_SIMD="$OPTARG"
|
||||
fi
|
||||
;;
|
||||
H)
|
||||
check_on_off $OPTARG H
|
||||
ENABLE_HIDDEN="$OPTARG"
|
||||
echo "${OPTARG} hidden"
|
||||
;;
|
||||
L)
|
||||
ENABLE_TRT="on"
|
||||
TENSORRT_HOME="$CASE_SENSIVE_ARG"
|
||||
echo "Link Tensor-RT library. Path: ${CASE_SENSIVE_ARG}"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown option ${opt}!"
|
||||
usage
|
||||
exit 1
|
||||
esac
|
||||
done
|
||||
|
||||
if [[ "X$RUN_TESTCASES" == "Xon" && "X$DEVICE" != "X" ]]; then
|
||||
echo "WARNING:Option -e can't be set while option -t on/ut is set, reset device to empty."
|
||||
DEVICE=""
|
||||
fi
|
||||
|
||||
# Parse device
|
||||
# Process build option
|
||||
if [[ "X$DEVICE" == "Xgpu" ]]; then
|
||||
ENABLE_GPU="on"
|
||||
ENABLE_CPU="on"
|
||||
ENABLE_MPI="on"
|
||||
# version default 10.1
|
||||
if [[ "X$DEVICE_VERSION" == "X" ]]; then
|
||||
DEVICE_VERSION=10.1
|
||||
fi
|
||||
if [[ "X$DEVICE_VERSION" != "X11.1" && "X$DEVICE_VERSION" != "X10.1" ]]; then
|
||||
echo "Invalid value ${DEVICE_VERSION} for option -V"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
CUDA_VERSION="$DEVICE_VERSION"
|
||||
elif [[ "X$DEVICE" == "Xd" || "X$DEVICE" == "Xascend" ]]; then
|
||||
# version default 910
|
||||
if [[ "X$DEVICE_VERSION" == "X" ]]; then
|
||||
DEVICE_VERSION=910
|
||||
fi
|
||||
# building 310 package by giving specific -V 310 instruction
|
||||
if [[ "X$DEVICE_VERSION" == "X310" ]]; then
|
||||
ENABLE_ACL="on"
|
||||
# universal ascend package
|
||||
elif [[ "X$DEVICE_VERSION" == "X910" ]]; then
|
||||
ENABLE_D="on"
|
||||
ENABLE_ACL="on"
|
||||
ENABLE_CPU="on"
|
||||
else
|
||||
echo "Invalid value ${DEVICE_VERSION} for option -V"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
elif [[ "X$DEVICE" == "Xcpu" ]]; then
|
||||
ENABLE_CPU="on"
|
||||
elif [[ "X$DEVICE" == "X" ]]; then
|
||||
:
|
||||
else
|
||||
echo "Invalid value ${DEVICE} for option -e"
|
||||
usage
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
update_submodule()
|
||||
{
|
||||
git submodule update --init graphengine
|
||||
cd "${BASEPATH}/graphengine"
|
||||
git submodule update --init metadef
|
||||
cd "${BASEPATH}"
|
||||
if [[ "X$ENABLE_AKG" = "Xon" ]]; then
|
||||
if [[ "X$ENABLE_D" == "Xon" ]]; then
|
||||
git submodule update --init akg
|
||||
else
|
||||
GIT_LFS_SKIP_SMUDGE=1 git submodule update --init akg
|
||||
fi
|
||||
if [[ "X$ENABLE_AKG" = "Xon" ]] && [[ "X$ENABLE_D" = "Xon" || "X$ENABLE_GPU" = "Xon" ]]; then
|
||||
git submodule update --init --recursive akg
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -61,6 +420,96 @@ build_exit()
|
|||
exit 1
|
||||
}
|
||||
|
||||
# Create building path
|
||||
build_mindspore()
|
||||
{
|
||||
echo "start build mindspore project."
|
||||
mkdir -pv "${BUILD_PATH}/mindspore"
|
||||
cd "${BUILD_PATH}/mindspore"
|
||||
CMAKE_ARGS="-DDEBUG_MODE=$DEBUG_MODE -DBUILD_PATH=$BUILD_PATH"
|
||||
if [[ "X$ENABLE_COVERAGE" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_COVERAGE=ON"
|
||||
fi
|
||||
if [[ "X$RUN_TESTCASES" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_TESTCASES=ON"
|
||||
fi
|
||||
if [[ "X$RUN_CPP_ST_TESTS" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_CPP_ST=ON"
|
||||
fi
|
||||
if [[ -n "$ENABLE_BACKEND" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_${ENABLE_BACKEND}=ON"
|
||||
fi
|
||||
if [[ -n "$TRAIN_MODE" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_${TRAIN_MODE}=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_ASAN" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_ASAN=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_PROFILE" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_PROFILE=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_SECURITY" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_SECURITY=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_TIMELINE" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_TIMELINE=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_DUMP2PROTO" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_DUMP_PROTO=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_GITEE" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_GITEE=ON"
|
||||
fi
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_DUMP_IR=${ENABLE_DUMP_IR}"
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_PYTHON=${ENABLE_PYTHON}"
|
||||
if [[ "X$ENABLE_MPI" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_MPI=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_D" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_D=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_GPU" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_GPU=ON -DUSE_CUDA=ON -DCUDA_PATH=$CUDA_PATH -DMS_REQUIRE_CUDA_VERSION=${CUDA_VERSION}"
|
||||
fi
|
||||
if [[ "X$ENABLE_CPU" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_CPU=ON -DX86_64_SIMD=${X86_64_SIMD} -DARM_SIMD=${ARM_SIMD}"
|
||||
fi
|
||||
if [[ "X$COMPILE_MINDDATA" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_MINDDATA=ON"
|
||||
fi
|
||||
if [[ "X$USE_GLOG" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DUSE_GLOG=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_AKG" = "Xon" ]] && [[ "X$ENABLE_D" = "Xon" || "X$ENABLE_GPU" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_AKG=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_ACL" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_ACL=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_DEBUGGER" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_DEBUGGER=ON"
|
||||
fi
|
||||
|
||||
if [[ "X$ENABLE_IBVERBS" = "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_IBVERBS=ON"
|
||||
fi
|
||||
if [[ "X$ENABLE_HIDDEN" = "Xoff" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DENABLE_HIDDEN=OFF"
|
||||
fi
|
||||
if [[ "X$ENABLE_TRT" == "Xon" ]]; then
|
||||
CMAKE_ARGS="${CMAKE_ARGS} -DTENSORRT_HOME=${TENSORRT_HOME}"
|
||||
fi
|
||||
echo "${CMAKE_ARGS}"
|
||||
if [[ "X$INC_BUILD" = "Xoff" ]]; then
|
||||
cmake ${CMAKE_ARGS} ${BASEPATH}
|
||||
fi
|
||||
if [[ -n "$VERBOSE" ]]; then
|
||||
CMAKE_VERBOSE="--verbose"
|
||||
fi
|
||||
cmake --build . --target package ${CMAKE_VERBOSE} -j$THREAD_NUM
|
||||
echo "success building mindspore project!"
|
||||
}
|
||||
|
||||
make_clean()
|
||||
{
|
||||
echo "enable make clean"
|
||||
|
|
@ -69,9 +518,7 @@ make_clean()
|
|||
}
|
||||
|
||||
echo "---------------- MindSpore: build start ----------------"
|
||||
init_default_options
|
||||
process_options "$@"
|
||||
parse_device
|
||||
checkopts "$@"
|
||||
|
||||
if [[ "X$COMPILE_LITE" = "Xon" ]]; then
|
||||
export COMPILE_MINDDATA_LITE
|
||||
|
|
@ -92,8 +539,8 @@ else
|
|||
echo "acl mode, skipping deploy phase"
|
||||
rm -rf ${BASEPATH}/output/_CPack_Packages/
|
||||
else
|
||||
cp -rf ${BUILD_PATH}/package/mindspore/lib ${BASEPATH}/mindspore/python/mindspore
|
||||
cp -rf ${BUILD_PATH}/package/mindspore/*.so ${BASEPATH}/mindspore/python/mindspore
|
||||
cp -rf ${BUILD_PATH}/package/mindspore/lib ${BASEPATH}/mindspore
|
||||
cp -rf ${BUILD_PATH}/package/mindspore/*.so ${BASEPATH}/mindspore
|
||||
fi
|
||||
fi
|
||||
echo "---------------- MindSpore: build end ----------------"
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
approvers:
|
||||
- zhoufeng54
|
||||
- ouwenchang
|
||||
- hangangqiang
|
||||
- jpc_chenjianping
|
||||
- tiancixiao
|
||||
reviewers:
|
||||
- nicholas_yhr
|
||||
- liubuyu
|
||||
- chengxb7532
|
||||
- shenwei41
|
||||
- xulei2020
|
||||
|
|
|
|||
|
|
@ -1,54 +0,0 @@
|
|||
function(changerpath target_so target_name link_sos)
|
||||
set(depend_so "")
|
||||
foreach(link_so ${link_sos})
|
||||
set(some-file "${CMAKE_SOURCE_DIR}/build/${target_name}_${link_so}.txt")
|
||||
set(some-file1 "${CMAKE_SOURCE_DIR}/build/${target_name}_${link_so}1.txt")
|
||||
set(some-file2 "${CMAKE_SOURCE_DIR}/build/${target_name}_${link_so}2.txt")
|
||||
add_custom_command(
|
||||
OUTPUT
|
||||
${some-file}
|
||||
COMMAND
|
||||
otool -L ${target_so} | tail -n +2 | grep ${link_so} | head -n1 > ${some-file}
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build"
|
||||
VERBATIM
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT
|
||||
${some-file1}
|
||||
COMMAND
|
||||
cat ${some-file} | cut -d " " -f 1 | sed -E "s/^.//g" > ${some-file1}
|
||||
DEPENDS
|
||||
${some-file}
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build"
|
||||
VERBATIM
|
||||
)
|
||||
add_custom_command(
|
||||
OUTPUT
|
||||
${some-file2}
|
||||
COMMAND
|
||||
awk -F "/" "{print $NF}" ${some-file1} > ${some-file2}
|
||||
DEPENDS
|
||||
${some-file1}
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build"
|
||||
VERBATIM
|
||||
)
|
||||
add_custom_target(
|
||||
link_${target_name}_${link_so} ALL
|
||||
COMMAND install_name_tool -change `cat ${some-file1}` @rpath/`cat ${some-file2}` ${target_so}
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build"
|
||||
DEPENDS ${target_so} ${some-file1} ${some-file2}
|
||||
COMMENT "install tool name"
|
||||
)
|
||||
add_custom_command(
|
||||
TARGET link_${target_name}_${link_so}
|
||||
POST_BUILD
|
||||
COMMAND rm ${some-file} ${some-file1} ${some-file2}
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/build"
|
||||
VERBATIM
|
||||
)
|
||||
if(depend_so)
|
||||
add_dependencies(link_${target_name}_${link_so} link_${target_name}_${depend_so})
|
||||
endif()
|
||||
set(depend_so ${link_so})
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
|
@ -17,10 +17,6 @@ endfunction()
|
|||
|
||||
|
||||
## find python, quit if the found python is static
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
set(Python3_FIND_REGISTRY LAST)
|
||||
set(Python3_FIND_STRATEGY LOCATION)
|
||||
endif()
|
||||
set(Python3_USE_STATIC_LIBS FALSE)
|
||||
set(Python3_FIND_VIRTUALENV ONLY)
|
||||
find_package(Python3 COMPONENTS Interpreter Development)
|
||||
|
|
@ -54,15 +50,6 @@ message(PATCH_EXECUTABLE = ${Patch_EXECUTABLE})
|
|||
|
||||
find_required_package(Threads)
|
||||
|
||||
# add openmp if the onednn use ms threadpool
|
||||
if(USE_MS_THREADPOOL_FOR_DNNL)
|
||||
find_package(OpenMP)
|
||||
if(OPENMP_FOUND)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
|
||||
else()
|
||||
message(WARNING "OpenMP not found")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
## packages used on Linux
|
||||
if(NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
|
|
@ -84,58 +71,3 @@ if(NOT CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|||
find_required_package(FLEX)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# for macos, find appropriate macosx SDK then set SDKROOT and MACOSX_DEPLOYMENT_TARGET
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
if(NOT DEFINED ENV{SDKROOT})
|
||||
# arm64: macosx11.x
|
||||
# x86_64: macosx10.x, macosx11.x
|
||||
if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm64")
|
||||
set(MACOSX_SDK_REGEX "MacOSX11(\\.\\d+)?")
|
||||
else()
|
||||
set(MACOSX_SDK_REGEX "MacOSX1[01](\\.\\d+)?")
|
||||
endif()
|
||||
set(MACOSX_XCODE_SDK_PATH "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs")
|
||||
set(MACOSX_CLT_SDK_PATH "/Library/Developer/CommandLineTools/SDKs")
|
||||
set(MACOSX_SDK_SEARCH_PATHS "${MACOSX_XCODE_SDK_PATH}/*" "${MACOSX_CLT_SDK_PATH}/*")
|
||||
file(GLOB ALL_SDK_NAME ${MACOSX_SDK_SEARCH_PATHS})
|
||||
# get highest SDK version meets the requirements
|
||||
execute_process(
|
||||
COMMAND bash -c "echo '${ALL_SDK_NAME}' | grep -Eo '${MACOSX_SDK_REGEX}' | sort -n | tail -1 | tr -d '\\n'"
|
||||
OUTPUT_VARIABLE MACOSX_FIND_SDK_NAME
|
||||
)
|
||||
if(NOT MACOSX_FIND_SDK_NAME)
|
||||
message(FATAL_ERROR
|
||||
"can not find appropriate macosx SDK, find in ${ALL_SDK_NAME}, you may set SDKROOT manually"
|
||||
)
|
||||
endif()
|
||||
if(IS_DIRECTORY "${MACOSX_XCODE_SDK_PATH}/${MACOSX_FIND_SDK_NAME}.sdk")
|
||||
set(ENV{SDKROOT} "${MACOSX_XCODE_SDK_PATH}/${MACOSX_FIND_SDK_NAME}.sdk")
|
||||
else()
|
||||
set(ENV{SDKROOT} "${MACOSX_CLT_SDK_PATH}/${MACOSX_FIND_SDK_NAME}.sdk")
|
||||
endif()
|
||||
endif()
|
||||
message("macosx sdkroot: $ENV{SDKROOT}")
|
||||
# set macosx deployment target based on SDK
|
||||
if(NOT DEFINED ENV{MACOSX_DEPLOYMENT_TARGET})
|
||||
execute_process(
|
||||
COMMAND bash -c "cat $ENV{SDKROOT}/SDKSettings.json | \
|
||||
grep -Eo 'MACOSX_DEPLOYMENT_TARGET\\\":\\\"\\d{2}\\.\\d+' | cut -d '\"' -f 3 | tr -d '\\n'"
|
||||
OUTPUT_VARIABLE MACOSX_FIND_SDK_VERSION
|
||||
)
|
||||
if(NOT MACOSX_FIND_SDK_VERSION)
|
||||
message(FATAL_ERROR "can not find MACOSX_DEPLOYMENT_TARGET in SDKROOT, \
|
||||
please check whether it's a valid SDK path")
|
||||
endif()
|
||||
|
||||
if(${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "arm64")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0")
|
||||
elseif(${MACOSX_FIND_SDK_VERSION} VERSION_LESS "10.15")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET ${MACOSX_FIND_SDK_VERSION} CACHE STRING
|
||||
"minimum macosx deployment target version" FORCE)
|
||||
else()
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15")
|
||||
endif()
|
||||
endif()
|
||||
message("macosx deployment target version: ${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
message(STATUS "Compiling GraphEngine")
|
||||
if(NOT(BUILD_LITE))
|
||||
set(GE_SOURCE_DIR ${CMAKE_SOURCE_DIR}/graphengine)
|
||||
else()
|
||||
set(GE_SOURCE_DIR ${CMAKE_SOURCE_DIR}/../../graphengine)
|
||||
endif()
|
||||
set(GE_SOURCE_DIR ${CMAKE_SOURCE_DIR}/graphengine)
|
||||
|
||||
message(STATUS "[ME] build_path: ${BUILD_PATH}")
|
||||
|
||||
|
|
@ -26,12 +22,30 @@ function(ge_protobuf_generate c_var h_var)
|
|||
set(${h_var} ${${h_var}} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
||||
if(ENABLE_TESTCASES OR MODE_ASCEND_ALL OR MODE_ASCEND_ACL)
|
||||
if(NOT(BUILD_LITE))
|
||||
file(GLOB_RECURSE GE_PROTO_FILE RELATIVE ${CMAKE_SOURCE_DIR} "graphengine/metadef/proto/*.proto")
|
||||
else()
|
||||
file(GLOB_RECURSE GE_PROTO_FILE ${TOP_DIR}/graphengine/metadef/proto/*.proto)
|
||||
if(ENABLE_TESTCASES)
|
||||
set(_ge_tmp_CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||
set(_ge_tmp_ENABLE_GITEE ${ENABLE_GITEE})
|
||||
set(_ge_tmp_CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
||||
set(ENABLE_GITEE ON)
|
||||
set(CMAKE_INSTALL_PREFIX ${BUILD_PATH}/graphengine)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILE__='\"$(subst $(realpath ${CMAKE_SOURCE_DIR})/,,$(abspath $<))\"' \
|
||||
-Wno-builtin-macro-redefined")
|
||||
|
||||
if(ENABLE_TESTCASES)
|
||||
# use slog, error manager, mmpa in non ascend mode, e.g. tests
|
||||
set(GE_PREBUILD_PATH ${GE_SOURCE_DIR}/third_party/prebuild/${CMAKE_HOST_SYSTEM_PROCESSOR})
|
||||
set(ENABLE_MS_TESTCASES TRUE)
|
||||
find_submodule_lib(slog libalog.so ${GE_PREBUILD_PATH})
|
||||
find_submodule_lib(static_mmpa libmmpa.a ${GE_PREBUILD_PATH})
|
||||
endif()
|
||||
|
||||
string(REPLACE " -Werror" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
add_subdirectory(${GE_SOURCE_DIR})
|
||||
set(CMAKE_INSTALL_PREFIX ${_ge_tmp_CMAKE_INSTALL_PREFIX})
|
||||
set(ENABLE_GITEE ${_ge_tmp_ENABLE_GITEE})
|
||||
set(CMAKE_CXX_FLAGS ${_ge_tmp_CMAKE_CXX_FLAGS})
|
||||
elseif(MODE_ASCEND_ALL OR MODE_ASCEND_ACL)
|
||||
file(GLOB_RECURSE GE_PROTO_FILE RELATIVE ${CMAKE_SOURCE_DIR} "graphengine/metadef/proto/*.proto")
|
||||
set(TMP_FILE_NAME_LIST)
|
||||
foreach(file ${GE_PROTO_FILE})
|
||||
get_filename_component(file_name ${file} NAME_WE)
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ function(ms_protobuf_generate_py c_var h_var py_var)
|
|||
COMMAND perl -pi -e "s/import (.+_pb2.*)/from . import \\1/"
|
||||
"${CMAKE_BINARY_DIR}/${rel_path}/${file_name}_pb2.py"
|
||||
COMMAND cp "${CMAKE_BINARY_DIR}/${rel_path}/${file_name}_pb2.py"
|
||||
"${PROJECT_SOURCE_DIR}/mindspore/python/mindspore/train/"
|
||||
"${PROJECT_SOURCE_DIR}/mindspore/train/"
|
||||
DEPENDS protobuf::protoc ${abs_file}
|
||||
COMMENT "Running C++ protocol buffer compiler on ${file}" VERBATIM)
|
||||
endforeach()
|
||||
|
|
|
|||
|
|
@ -1,47 +0,0 @@
|
|||
# securec arm library
|
||||
#
|
||||
#
|
||||
# SECUREC_ARM_LIBRARY
|
||||
#
|
||||
|
||||
if(NOT TARGET securec_arm)
|
||||
set(_ms_tmp_CMAKE_POSITION_INDEPENDENT_CODE ${CMAKE_POSITION_INDEPENDENT_CODE})
|
||||
set(_ms_tmp_CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
|
||||
|
||||
if(TARGET_OHOS_LITE)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${SECURE_CXX_FLAGS}")
|
||||
else()
|
||||
set(CMAKE_C_FLAGS "${SECURE_CXX_FLAGS}")
|
||||
endif()
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
add_compile_definitions(SECUREC_ONLY_DECLARE_MEMSET)
|
||||
endif()
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ${_ms_tmp_CMAKE_POSITION_INDEPENDENT_CODE})
|
||||
set(CMAKE_C_FLAGS ${_ms_tmp_CMAKE_C_FLAGS})
|
||||
endif()
|
||||
|
||||
if(NOT MSVC)
|
||||
SET(CMAKE_BUILD_TYPE "Debug")
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
SET(CMAKE_C_FLAGS_DEBUG "$ENV{CFLAGS} -fPIC -O0 -Wall -Wno-deprecated-declarations -g2 -ggdb \
|
||||
-fno-inline-functions -fno-omit-frame-pointer -fstack-protector-all")
|
||||
else()
|
||||
SET(CMAKE_C_FLAGS_DEBUG "$ENV{CFLAGS} -Wno-nullability-completeness -fPIC -O0 -Wall \
|
||||
-Wno-deprecated-declarations -g2 -ggdb -fno-inline-functions -fno-omit-frame-pointer \
|
||||
-fstack-protector-all -D_LIBCPP_INLINE_VISIBILITY='' -D'_LIBCPP_EXTERN_TEMPLATE(...)='")
|
||||
endif()
|
||||
SET(CMAKE_C_FLAGS_RELEASE "$ENV{CFLAGS} -fPIC -O3 -Wall -Wno-deprecated-declarations -fstack-protector-all")
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
#add flags
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/usr/local/include -Werror")
|
||||
endif()
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR}/third_party/securec/include)
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
list(APPEND SECUREC_ARM_LIBRARY "memset_s.c")
|
||||
else()
|
||||
aux_source_directory(${PROJECT_SOURCE_DIR}/third_party/securec/src SECUREC_ARM_LIBRARY)
|
||||
endif()
|
||||
add_library(securec_arm STATIC ${SECUREC_ARM_LIBRARY})
|
||||
set(SECUREC_ARM_LIBRARY securec_arm)
|
||||
|
|
@ -1,34 +1,17 @@
|
|||
if(ENABLE_GITEE_EULER)
|
||||
set(GIT_REPOSITORY "https://gitee.com/src-openeuler/abseil-cpp.git")
|
||||
set(GIT_TAG "openEuler-22.03-LTS")
|
||||
set(MD5 "06c9554d9f9776bb1a4b848ca206c0af")
|
||||
set(ABSL_SRC "${TOP_DIR}/build/mindspore/_deps/absl-src")
|
||||
__download_pkg_with_git(absl ${GIT_REPOSITORY} ${GIT_TAG} ${MD5})
|
||||
execute_process(COMMAND tar -xf ${ABSL_SRC}/abseil-cpp-20210324.2.tar.gz --strip-components 1 -C ${ABSL_SRC})
|
||||
else()
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/abseil-cpp/repository/archive/20210324.2.tar.gz")
|
||||
set(MD5 "e0b585398b89ee92a10d8c68ef7eed48")
|
||||
set(REQ_URL "https://gitee.com/mirrors/abseil-cpp/repository/archive/20200225.2.tar.gz")
|
||||
set(MD5 "7e84ac40ee4541f645f5b9c90c9c98e6")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/abseil/abseil-cpp/archive/20210324.2.tar.gz")
|
||||
set(MD5 "e0b585398b89ee92a10d8c68ef7eed48")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT ENABLE_GLIBCXX)
|
||||
set(absl_CXXFLAGS "${absl_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
set(REQ_URL "https://github.com/abseil/abseil-cpp/archive/20200225.2.tar.gz")
|
||||
set(MD5 "73f2b6e72f1599a9139170c29482ddc4")
|
||||
endif()
|
||||
|
||||
mindspore_add_pkg(absl
|
||||
VER 20210324.2
|
||||
VER 20200225.2
|
||||
LIBS absl_strings absl_throw_delegate absl_raw_logging_internal absl_int128 absl_bad_optional_access
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CMAKE_OPTION
|
||||
-DCMAKE_BUILD_TYPE:STRING=Release
|
||||
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=TRUE
|
||||
-DCMAKE_CXX_STANDARD=11
|
||||
)
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=TRUE)
|
||||
|
||||
include_directories(${absl_INC})
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/c-ares/repository/archive/cares-1_15_0.tar.gz")
|
||||
set(MD5 "459876e53724a2c87ed2876312b96aed")
|
||||
set(MD5 "a1e06c7eb45b96b8bff2ee1b43a4c70b")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/c-ares/c-ares/releases/download/cares-1_15_0/c-ares-1.15.0.tar.gz")
|
||||
set(MD5 "d2391da274653f7643270623e822dff7")
|
||||
|
|
@ -15,8 +15,7 @@ mindspore_add_pkg(c-ares
|
|||
-DCARES_SHARED:BOOL=OFF
|
||||
-DCARES_STATIC:BOOL=ON
|
||||
-DCARES_STATIC_PIC:BOOL=ON
|
||||
-DHAVE_LIBNSL:BOOL=OFF
|
||||
PATCHES ${TOP_DIR}/third_party/patch/c-ares/CVE-2021-3672.patch)
|
||||
-DHAVE_LIBNSL:BOOL=OFF)
|
||||
|
||||
include_directories(${c-ares_INC})
|
||||
add_library(mindspore::cares ALIAS c-ares::cares)
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
set(cmsis_pkg_name cmsis)
|
||||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/CMSIS_5/repository/archive/5.7.0.tar.gz")
|
||||
set(MD5 "0eaa594b0c62dd72e41ec181c4689842")
|
||||
set(REQ_URL "https://gitee.com/mirrors/CMSIS_5/repository/archive/5.7.0")
|
||||
set(MD5 "f8b5c3f0711feb9ebac0fb05c15f0306")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/ARM-software/CMSIS_5/archive/5.7.0.tar.gz")
|
||||
set(MD5 "0eaa594b0c62dd72e41ec181c4689842")
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ set(cppjieba_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
|||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/cppjieba/repository/archive/v5.0.3.tar.gz")
|
||||
set(MD5 "06fcc22b4db6c332dc1b0bd353bdf6f2")
|
||||
set(MD5 "ea0bdd5a654a376e2c2077daae23b376")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/yanyiwu/cppjieba/archive/v5.0.3.tar.gz")
|
||||
set(MD5 "b8b3f7a73032c9ce9daafa4f67196c8c")
|
||||
|
|
@ -14,8 +14,7 @@ mindspore_add_pkg(cppjieba
|
|||
HEAD_ONLY ./
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${TOP_DIR}/third_party/patch/cppjieba/cppjieba.patch001)
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/cppjieba/cppjieba.patch001)
|
||||
include_directories(${cppjieba_INC}include)
|
||||
include_directories(${cppjieba_INC}deps)
|
||||
add_library(mindspore::cppjieba ALIAS cppjieba)
|
||||
|
||||
add_library(mindspore::cppjieba ALIAS cppjieba)
|
||||
|
|
@ -1,17 +1,20 @@
|
|||
set(Eigen3_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
set(Eigen3_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
|
||||
|
||||
set(REQ_URL "https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz")
|
||||
set(MD5 "609286804b0f79be622ccf7f9ff2b660")
|
||||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/eigen-git-mirrorsource/repository/archive/3.3.7.tar.gz")
|
||||
set(MD5 "cf6552a5d90c1aca4b5e0b011f65ea93")
|
||||
else()
|
||||
set(REQ_URL "https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz")
|
||||
set(MD5 "9e30f67e8531477de4117506fe44669b")
|
||||
endif()
|
||||
|
||||
mindspore_add_pkg(Eigen3
|
||||
VER 3.3.9
|
||||
VER 3.3.7
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CMAKE_OPTION -DBUILD_TESTING=OFF)
|
||||
find_package(Eigen3 3.3.9 REQUIRED ${MS_FIND_NO_DEFAULT_PATH})
|
||||
find_package(Eigen3 3.3.7 REQUIRED ${MS_FIND_NO_DEFAULT_PATH})
|
||||
include_directories(${Eigen3_INC})
|
||||
include_directories(${EIGEN3_INCLUDE_DIR})
|
||||
set_property(TARGET Eigen3::Eigen PROPERTY IMPORTED_GLOBAL TRUE)
|
||||
|
|
|
|||
|
|
@ -1,59 +1,41 @@
|
|||
if(MSVC)
|
||||
set(flatbuffers_CXXFLAGS "${CMAKE_CXX_FLAGS}")
|
||||
set(flatbuffers_CFLAGS "${CMAKE_C_FLAGS}")
|
||||
set(flatbuffers_CFLAGS "${CMAKE_CXX_FLAGS}")
|
||||
set(flatbuffers_LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
else()
|
||||
set(flatbuffers_CXXFLAGS "-fPIC -fPIE -D_FORTIFY_SOURCE=2 -O2 -fstack-protector-strong")
|
||||
set(flatbuffers_CFLAGS "-fPIC -fPIE -D_FORTIFY_SOURCE=2 -O2 -fstack-protector-strong")
|
||||
set(flatbuffers_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
set(flatbuffers_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
set(flatbuffers_USE_STATIC_LIBS ON)
|
||||
endif()
|
||||
if(ENABLE_GITEE_EULER)
|
||||
set(GIT_REPOSITORY "https://gitee.com/src-openeuler/flatbuffers.git")
|
||||
set(GIT_TAG "openEuler-22.03-LTS")
|
||||
set(MD5 "f1c724296be49a29ded69278a9a770c7")
|
||||
set(FLATBUFFER_SRC "${TOP_DIR}/mindspore/lite/build/_deps/flatbuffers-src")
|
||||
set(FLATBUFFER_DIR "${FLATBUFFER_SRC}/flatbuffers-2.0.0")
|
||||
__download_pkg_with_git(flatbuffers ${GIT_REPOSITORY} ${GIT_TAG} ${MD5})
|
||||
execute_process(COMMAND tar -xf ${FLATBUFFER_SRC}/v2.0.0.tar.gz WORKING_DIRECTORY ${FLATBUFFER_SRC})
|
||||
|
||||
foreach(_SUBMODULE_FILE ${PKG_SUBMODULES})
|
||||
STRING(REGEX REPLACE "(.+)_(.+)" "\\1" _SUBMODEPATH ${_SUBMODULE_FILE})
|
||||
STRING(REGEX REPLACE "(.+)/(.+)" "\\2" _SUBMODENAME ${_SUBMODEPATH})
|
||||
file(GLOB ${pkg_name}_INSTALL_SUBMODULE ${_SUBMODULE_FILE}/*)
|
||||
file(COPY ${${pkg_name}_INSTALL_SUBMODULE} DESTINATION ${${pkg_name}_SOURCE_DIR}/3rdparty/${_SUBMODENAME})
|
||||
endforeach()
|
||||
else()
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/flatbuffers/repository/archive/v2.0.0.tar.gz")
|
||||
set(MD5 "5c23d17c0486b81d4c11907e8f7bf36b")
|
||||
set(REQ_URL "https://gitee.com/mirrors/flatbuffers/repository/archive/v1.11.0.tar.gz")
|
||||
set(MD5 "4051dc865063ffa724c4264dea8dbbe9")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/google/flatbuffers/archive/v2.0.0.tar.gz")
|
||||
set(MD5 "a27992324c3cbf86dd888268a23d17bd")
|
||||
endif()
|
||||
set(REQ_URL "https://github.com/google/flatbuffers/archive/v1.11.0.tar.gz")
|
||||
set(MD5 "02c64880acb89dbd57eebacfd67200d8")
|
||||
endif()
|
||||
|
||||
if(APPLE)
|
||||
set(flatbuffers_CXXFLAGS "${flatbuffers_CXXFLAGS} -Wno-deprecated")
|
||||
endif()
|
||||
if(APPLE)
|
||||
set(FLATBUFFERS_PATCH ${TOP_DIR}/third_party/patch/flatbuffers/flatbuffers.patch001)
|
||||
mindspore_add_pkg(flatbuffers
|
||||
VER 2.0.0
|
||||
VER 1.11.0
|
||||
LIBS flatbuffers
|
||||
EXE flatc
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${FLATBUFFERS_PATCH}
|
||||
CMAKE_OPTION -DFLATBUFFERS_BUILD_TESTS=OFF -DCMAKE_INSTALL_LIBDIR=lib)
|
||||
else()
|
||||
mindspore_add_pkg(flatbuffers
|
||||
VER 2.0.0
|
||||
VER 1.11.0
|
||||
LIBS flatbuffers
|
||||
EXE flatc
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
DIR ${FLATBUFFER_DIR}
|
||||
CMAKE_OPTION -DCMAKE_C_COMPILER=${FLATC_GCC_COMPILER} -DCMAKE_CXX_COMPILER=${FLATC_GXX_COMPILER}
|
||||
-DFLATBUFFERS_BUILD_TESTS=OFF -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,38 +1,28 @@
|
|||
if(BUILD_LITE)
|
||||
if(MSVC)
|
||||
set(flatbuffers_CXXFLAGS "${CMAKE_CXX_FLAGS}")
|
||||
set(flatbuffers_CFLAGS "${CMAKE_C_FLAGS}")
|
||||
set(flatbuffers_LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
else()
|
||||
set(glog_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2 ${SECURE_CXX_FLAGS} -Dgoogle=mindspore_private")
|
||||
set(glog_CFLAGS "-D_FORTIFY_SOURCE=2 -O2 ${SECURE_C_FLAGS}")
|
||||
set(glog_LDFLAGS "${SECURE_SHARED_LINKER_FLAGS}")
|
||||
endif()
|
||||
set(glog_patch "")
|
||||
set(glog_lib glog)
|
||||
else()
|
||||
set(glog_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2 ${SECURE_CXX_FLAGS} -Dgoogle=mindspore_private")
|
||||
set(glog_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
set(glog_patch ${CMAKE_SOURCE_DIR}/third_party/patch/glog/glog.patch001)
|
||||
set(glog_lib mindspore_glog)
|
||||
endif()
|
||||
|
||||
set(glog_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2 ${SECURE_CXX_FLAGS} -Dgoogle=mindspore_private")
|
||||
set(glog_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
if(NOT ENABLE_GLIBCXX)
|
||||
set(glog_CXXFLAGS "${glog_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
endif()
|
||||
|
||||
if(BUILD_LITE)
|
||||
set(glog_patch "")
|
||||
set(glog_lib glog)
|
||||
else()
|
||||
set(glog_patch ${CMAKE_SOURCE_DIR}/third_party/patch/glog/glog.patch001)
|
||||
set(glog_lib mindspore_glog)
|
||||
endif()
|
||||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/glog/repository/archive/v0.4.0.tar.gz")
|
||||
set(MD5 "9a7598a00c569a11ff1a419076de4ed7")
|
||||
set(MD5 "22fe340ddc231e6c8e46bc295320f8ee")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/google/glog/archive/v0.4.0.tar.gz")
|
||||
set(MD5 "0daea8785e6df922d7887755c3d100d0")
|
||||
endif()
|
||||
|
||||
set(glog_option -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=ON -DWITH_GFLAGS=OFF
|
||||
-DCMAKE_BUILD_TYPE=Release)
|
||||
set(glog_option -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD_SHARED_LIBS=ON -DWITH_GFLAGS=OFF)
|
||||
|
||||
if(WIN32 AND NOT MSVC)
|
||||
if(WIN32)
|
||||
execute_process(COMMAND "${CMAKE_C_COMPILER}" -dumpmachine
|
||||
OUTPUT_VARIABLE i686_or_x86_64
|
||||
)
|
||||
|
|
|
|||
|
|
@ -1,61 +1,51 @@
|
|||
set(grpc_USE_STATIC_LIBS OFF)
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(grpc_CXXFLAGS "-fstack-protector-all -Wno-uninitialized -Wno-unused-parameter -fPIC -D_FORTIFY_SOURCE=2 -O2 \
|
||||
-Dgrpc=mindspore_grpc -Dgrpc_impl=mindspore_grpc_impl -Dgrpc_core=mindspore_grpc_core")
|
||||
set(grpc_CXXFLAGS "-fstack-protector-all -Wno-uninitialized -Wno-unused-parameter -fPIC -D_FORTIFY_SOURCE=2 -O2")
|
||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
set(grpc_CXXFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -O2")
|
||||
else()
|
||||
set(grpc_CXXFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -O2 \
|
||||
-Dgrpc=mindspore_grpc -Dgrpc_impl=mindspore_grpc_impl -Dgrpc_core=mindspore_grpc_core")
|
||||
-Dgrpc=mindspore_grpc -Dgrpc_impl=mindspore_grpc_impl -Dgrpc_core=mindspore_grpc_core")
|
||||
if(NOT ENABLE_GLIBCXX)
|
||||
set(grpc_CXXFLAGS "${grpc_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(grpc_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
||||
endif()
|
||||
set(grpc_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
||||
|
||||
if(EXISTS ${protobuf_ROOT}/lib64)
|
||||
set(_FINDPACKAGE_PROTOBUF_CONFIG_DIR "${protobuf_ROOT}/lib64/cmake/protobuf")
|
||||
set(_FINDPACKAGE_PROTOBUF_CONFIG_DIR "${protobuf_ROOT}/lib64/cmake/protobuf")
|
||||
else()
|
||||
set(_FINDPACKAGE_PROTOBUF_CONFIG_DIR "${protobuf_ROOT}/lib/cmake/protobuf")
|
||||
set(_FINDPACKAGE_PROTOBUF_CONFIG_DIR "${protobuf_ROOT}/lib/cmake/protobuf")
|
||||
endif()
|
||||
message("grpc using Protobuf_DIR : " ${_FINDPACKAGE_PROTOBUF_CONFIG_DIR})
|
||||
|
||||
if(EXISTS ${absl_ROOT}/lib64)
|
||||
set(_FINDPACKAGE_ABSL_CONFIG_DIR "${absl_ROOT}/lib64/cmake/absl")
|
||||
set(_FINDPACKAGE_ABSL_CONFIG_DIR "${absl_ROOT}/lib64/cmake/absl")
|
||||
else()
|
||||
set(_FINDPACKAGE_ABSL_CONFIG_DIR "${absl_ROOT}/lib/cmake/absl")
|
||||
set(_FINDPACKAGE_ABSL_CONFIG_DIR "${absl_ROOT}/lib/cmake/absl")
|
||||
endif()
|
||||
message("grpc using absl_DIR : " ${_FINDPACKAGE_ABSL_CONFIG_DIR})
|
||||
|
||||
if(EXISTS ${re2_ROOT}/lib64)
|
||||
set(_FINDPACKAGE_RE2_CONFIG_DIR "${re2_ROOT}/lib64/cmake/re2")
|
||||
else()
|
||||
set(_FINDPACKAGE_RE2_CONFIG_DIR "${re2_ROOT}/lib/cmake/re2")
|
||||
endif()
|
||||
message("grpc using re2_DIR : " ${_FINDPACKAGE_RE2_CONFIG_DIR})
|
||||
|
||||
if(EXISTS ${openssl_ROOT})
|
||||
set(_CMAKE_ARGS_OPENSSL_ROOT_DIR "-DOPENSSL_ROOT_DIR:PATH=${openssl_ROOT}")
|
||||
set(_CMAKE_ARGS_OPENSSL_ROOT_DIR "-DOPENSSL_ROOT_DIR:PATH=${openssl_ROOT}")
|
||||
endif()
|
||||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/grpc/repository/archive/v1.36.1.tar.gz")
|
||||
set(MD5 "71252ebcd8e9e32a818a907dfd4b63cc")
|
||||
set(REQ_URL "https://gitee.com/mirrors/grpc/repository/archive/v1.27.3.tar.gz")
|
||||
set(MD5 "b8b6d8defeda0355105e3b64b4201786")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/grpc/grpc/archive/v1.36.1.tar.gz")
|
||||
set(MD5 "90c93203e95e89af5f46738588217057")
|
||||
set(REQ_URL "https://github.com/grpc/grpc/archive/v1.27.3.tar.gz")
|
||||
set(MD5 "0c6c3fc8682d4262dd0e5e6fabe1a7e2")
|
||||
endif()
|
||||
|
||||
mindspore_add_pkg(grpc
|
||||
VER 1.36.1
|
||||
VER 1.27.3
|
||||
LIBS mindspore_grpc++ mindspore_grpc mindspore_gpr mindspore_upb mindspore_address_sorting
|
||||
EXE grpc_cpp_plugin
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${TOP_DIR}/third_party/patch/grpc/grpc.patch001
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/grpc/grpc.patch001
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE:STRING=Release
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DgRPC_INSTALL:BOOL=ON
|
||||
|
|
@ -71,8 +61,6 @@ mindspore_add_pkg(grpc
|
|||
-Dc-ares_DIR:PATH=${c-ares_ROOT}/lib/cmake/c-ares
|
||||
-DgRPC_SSL_PROVIDER:STRING=package
|
||||
${_CMAKE_ARGS_OPENSSL_ROOT_DIR}
|
||||
-DgRPC_RE2_PROVIDER:STRING=package
|
||||
-Dre2_DIR:PATH=${_FINDPACKAGE_RE2_CONFIG_DIR}
|
||||
)
|
||||
|
||||
include_directories(${grpc_INC})
|
||||
|
|
@ -81,7 +69,7 @@ add_library(mindspore::grpc++ ALIAS grpc::mindspore_grpc++)
|
|||
|
||||
# link other grpc libs
|
||||
target_link_libraries(grpc::mindspore_grpc++ INTERFACE grpc::mindspore_grpc grpc::mindspore_gpr grpc::mindspore_upb
|
||||
grpc::mindspore_address_sorting)
|
||||
grpc::mindspore_address_sorting)
|
||||
|
||||
# modify mindspore macro define
|
||||
add_compile_definitions(grpc=mindspore_grpc)
|
||||
|
|
|
|||
|
|
@ -23,15 +23,15 @@ if(BUILD_LITE)
|
|||
-DANDROID_STL=${ANDROID_STL}
|
||||
${CMAKE_OPTION})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT ENABLE_GLIBCXX)
|
||||
set(gtest_CXXFLAGS "${gtest_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
else()
|
||||
if(NOT ENABLE_GLIBCXX)
|
||||
set(gtest_CXXFLAGS "${gtest_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/googletest/repository/archive/release-1.8.1.tar.gz")
|
||||
set(MD5 "2e6fbeb6a91310a16efe181886c59596")
|
||||
set(MD5 "0ec077324f27c2685635ad4cc9bdc263")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/google/googletest/archive/release-1.8.1.tar.gz")
|
||||
set(MD5 "2e6fbeb6a91310a16efe181886c59596")
|
||||
|
|
@ -51,17 +51,9 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|||
${CMAKE_BINARY_DIR}/googletest/googlemock/gtest)
|
||||
file(COPY ${gtest_DIRPATH}/bin/libgtest_main${CMAKE_SHARED_LIBRARY_SUFFIX} DESTINATION
|
||||
${CMAKE_BINARY_DIR}/googletest/googlemock/gtest)
|
||||
file(COPY ${gtest_DIRPATH}/bin/libgmock_main${CMAKE_SHARED_LIBRARY_SUFFIX} DESTINATION
|
||||
${CMAKE_BINARY_DIR}/googletest/googlemock/gtest)
|
||||
file(COPY ${gtest_DIRPATH}/bin/libgmock${CMAKE_SHARED_LIBRARY_SUFFIX} DESTINATION
|
||||
${CMAKE_BINARY_DIR}/googletest/googlemock/gtest)
|
||||
else()
|
||||
file(COPY ${gtest_LIBPATH}/libgtest${CMAKE_SHARED_LIBRARY_SUFFIX} DESTINATION
|
||||
${CMAKE_BINARY_DIR}/googletest/googlemock/gtest)
|
||||
file(COPY ${gtest_LIBPATH}/libgtest_main${CMAKE_SHARED_LIBRARY_SUFFIX} DESTINATION
|
||||
${CMAKE_BINARY_DIR}/googletest/googlemock/gtest)
|
||||
file(COPY ${gtest_LIBPATH}/libgmock${CMAKE_SHARED_LIBRARY_SUFFIX} DESTINATION
|
||||
${CMAKE_BINARY_DIR}/googletest/googlemock/gtest)
|
||||
file(COPY ${gtest_LIBPATH}/libgmock_main${CMAKE_SHARED_LIBRARY_SUFFIX} DESTINATION
|
||||
${CMAKE_BINARY_DIR}/googletest/googlemock/gtest)
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -2,23 +2,12 @@ set(LIB_ICU_COMMON icuuc)
|
|||
set(LIB_ICU_DATA icudata)
|
||||
set(LIB_ICU_I18N icui18n)
|
||||
|
||||
if(ENABLE_GITEE_EULER)
|
||||
set(GIT_REPOSITORY "https://gitee.com/src-openeuler/icu.git")
|
||||
set(GIT_TAG "openEuler-22.03-LTS")
|
||||
set(MD5 "fa4070da839ce75469a8de962f2a0c2a")
|
||||
set(ICU4C_SRC "${TOP_DIR}/build/mindspore/_deps/icu4c-src/icu4c")
|
||||
set(ICU4C_TAR_SRC "${TOP_DIR}/build/mindspore/_deps/icu4c-src")
|
||||
__download_pkg_with_git(icu4c ${GIT_REPOSITORY} ${GIT_TAG} ${MD5})
|
||||
execute_process(COMMAND mkdir ${ICU4C_SRC})
|
||||
execute_process(COMMAND tar -xf ${ICU4C_TAR_SRC}/icu4c-69_1-src.tgz --strip-components 1 -C ${ICU4C_SRC})
|
||||
else()
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/icu/repository/archive/release-69-1.tar.gz")
|
||||
set(MD5 "9f218f0eee9d49831e7e48fd136e689c")
|
||||
set(REQ_URL "https://gitee.com/mirrors/icu/repository/archive/release-67-1.tar.gz")
|
||||
set(MD5 "72415ffd1af3acf19f9aa3fa82c7b5bc")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/unicode-org/icu/archive/release-69-1.tar.gz")
|
||||
set(MD5 "135125f633864285d637db5c01e0388b")
|
||||
endif()
|
||||
set(REQ_URL "https://github.com/unicode-org/icu/archive/release-67-1.tar.gz")
|
||||
set(MD5 "fd525fb47d8827b0b7da78b51dd2d93f")
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
|
|
@ -34,34 +23,28 @@ else()
|
|||
file(WRITE ${CMAKE_BINARY_DIR}/icu4c_filter.json ${JSON_FILE})
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
mindspore_add_pkg(icu4c
|
||||
VER 69.1
|
||||
VER 67.1
|
||||
LIBS ${LIB_ICU_COMMON} ${LIB_ICU_DATA} ${LIB_ICU_I18N}
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/icu4c/icu4c.patch01
|
||||
CONFIGURE_COMMAND ./icu4c/source/runConfigureICU MacOSX --disable-tests
|
||||
CONFIGURE_COMMAND ./icu4c/source/runConfigureICU MacOSX --enable-rpath --disable-tests
|
||||
--disable-samples --disable-icuio --disable-extras
|
||||
ICU_DATA_FILTER_FILE=${CMAKE_BINARY_DIR}/icu4c_filter.json
|
||||
)
|
||||
else()
|
||||
mindspore_add_pkg(icu4c
|
||||
VER 69.1
|
||||
VER 67.1
|
||||
LIBS ${LIB_ICU_COMMON} ${LIB_ICU_DATA} ${LIB_ICU_I18N}
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${TOP_DIR}/third_party/patch/icu4c/icu4c.patch01
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/icu4c/icu4c.patch01
|
||||
CONFIGURE_COMMAND ./icu4c/source/runConfigureICU Linux --enable-rpath --disable-tests --disable-samples
|
||||
--disable-icuio --disable-extras
|
||||
ICU_DATA_FILTER_FILE=${CMAKE_BINARY_DIR}/icu4c_filter.json
|
||||
)
|
||||
endif()
|
||||
include_directories(${icu4c_INC})
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/change_rpath.cmake)
|
||||
changerpath($<TARGET_FILE:icu4c::${LIB_ICU_COMMON}> ${LIB_ICU_COMMON} "libicuuc;libicudata")
|
||||
changerpath($<TARGET_FILE:icu4c::${LIB_ICU_DATA}> ${LIB_ICU_DATA} "libicudata")
|
||||
changerpath($<TARGET_FILE:icu4c::${LIB_ICU_I18N}> ${LIB_ICU_I18N} "libicuuc;libicudata;libicui18n")
|
||||
endif()
|
||||
add_library(mindspore::icuuc ALIAS icu4c::${LIB_ICU_COMMON})
|
||||
add_library(mindspore::icudata ALIAS icu4c::${LIB_ICU_DATA})
|
||||
add_library(mindspore::icui18n ALIAS icu4c::${LIB_ICU_I18N})
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/libjpeg-turbo/repository/archive/2.0.4.tar.gz")
|
||||
set(MD5 "44c43e4a9fb352f47090804529317c88")
|
||||
set(MD5 "51aac2382ad1a68b2e4beb391dc1cf60")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/libjpeg-turbo/libjpeg-turbo/archive/2.0.4.tar.gz")
|
||||
set(MD5 "44c43e4a9fb352f47090804529317c88")
|
||||
|
|
|
|||
|
|
@ -3,24 +3,24 @@ if(MSVC)
|
|||
set(flatbuffers_CFLAGS "${CMAKE_CXX_FLAGS}")
|
||||
set(flatbuffers_LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
else()
|
||||
set(nlohmann_json373_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
set(nlohmann_json373_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
set(nlohmann_json_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
set(nlohmann_json_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
endif()
|
||||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/JSON-for-Modern-CPP/repository/archive/v3.7.3.zip")
|
||||
set(MD5 "b758acca4f3e133bacf919e31ca302e3")
|
||||
set(REQ_URL "https://gitee.com/mirrors/JSON-for-Modern-CPP/repository/archive/v3.6.1.zip")
|
||||
set(MD5 "36ea0d9a709c6667b2798a62f6b197ae")
|
||||
set(INCLUDE "./include")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/nlohmann/json/releases/download/v3.7.3/include.zip")
|
||||
set(MD5 "fb96f95cdf609143e998db401ca4f324")
|
||||
set(INCLUDE "./include")
|
||||
set(REQ_URL "https://github.com/nlohmann/json/releases/download/v3.6.1/include.zip")
|
||||
set(MD5 "0dc903888211db3a0f170304cd9f3a89")
|
||||
set(INCLUDE "./")
|
||||
endif()
|
||||
|
||||
mindspore_add_pkg(nlohmann_json373
|
||||
VER 3.7.3
|
||||
mindspore_add_pkg(nlohmann_json
|
||||
VER 3.6.1
|
||||
HEAD_ONLY ${INCLUDE}
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5})
|
||||
include_directories(${nlohmann_json373_INC})
|
||||
add_library(mindspore::json ALIAS nlohmann_json373)
|
||||
include_directories(${nlohmann_json_INC})
|
||||
add_library(mindspore::json ALIAS nlohmann_json)
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ endif()
|
|||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/libevent/repository/archive/release-2.1.12-stable.tar.gz")
|
||||
set(MD5 "0d5a27436bf7ff8253420c8cf09f47ca")
|
||||
set(MD5 "c9036513dd9e5b4fa1c81ade23b7ead2")
|
||||
else()
|
||||
set(REQ_URL
|
||||
"https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz")
|
||||
|
|
|
|||
|
|
@ -17,20 +17,18 @@ set(tiff_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
|||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/libtiff/repository/archive/v4.2.0.tar.gz")
|
||||
set(MD5 "1b8f32e39940ffbdac3638f7081ba9e0")
|
||||
set(MD5 "38b7bdd622c554b98967ccf2013b6478")
|
||||
else()
|
||||
set(REQ_URL "http://download.osgeo.org/libtiff/tiff-4.2.0.tar.gz")
|
||||
set(MD5 "2bbf6db1ddc4a59c89d6986b368fc063")
|
||||
endif()
|
||||
|
||||
mindspore_add_pkg(tiff
|
||||
VER 4.2.0
|
||||
VER 4.1.0
|
||||
LIBS tiff
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -Djbig=OFF -Dlzma=OFF -Djpeg12=OFF -Dzstd=OFF -Dpixarlog=OFF
|
||||
-Dold-jpeg=OFF -Dwebp=OFF -DBUILD_SHARED_LIBS=OFF -Dlibdeflate=OFF
|
||||
PATCHES ${TOP_DIR}/third_party/patch/libtiff/CVE-2022-0561_and_CVE-2022-0562.patch001
|
||||
PATCHES ${TOP_DIR}/third_party/patch/libtiff/CVE-2022-0908.patch002)
|
||||
-Dold-jpeg=OFF -Dwebp=OFF -DBUILD_SHARED_LIBS=OFF)
|
||||
message("tiff include = ${tiff_INC}")
|
||||
message("tiff lib = ${tiff_LIB}")
|
||||
|
|
|
|||
|
|
@ -1,30 +1,17 @@
|
|||
set(onednn_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
set(onednn_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
if(USE_MS_THREADPOOL_FOR_DNNL)
|
||||
set(USE_MS_THREADPOOL "-DDNNL_CPU_RUNTIME=THREADPOOL")
|
||||
else()
|
||||
set(USE_MS_THREADPOOL "")
|
||||
endif()
|
||||
if(ENABLE_GITEE_EULER)
|
||||
set(GIT_REPOSITORY "git@gitee.com:src-openeuler/onednn.git")
|
||||
set(GIT_TAG "0d726f1")
|
||||
set(MD5 "6a062e36ea1bee03ff55bf44ee243e27")
|
||||
__download_pkg_with_git(ONEDNN ${GIT_REPOSITORY} ${GIT_TAG} ${MD5})
|
||||
set(ONE_DNN_SRC "${TOP_DIR}/mindspore/lite/build/_deps/onednn-src")
|
||||
execute_process(COMMAND tar -xf ${ONE_DNN_SRC}/v2.2.tar.gz --strip-components 1 -C ${ONE_DNN_SRC})
|
||||
endif()
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
mindspore_add_pkg(onednn
|
||||
VER 2.2
|
||||
LIBS dnnl mkldnn
|
||||
HEAD_ONLY ./include
|
||||
RELEASE on
|
||||
URL http://tools.mindspore.cn/libs/dnnl/dnnl_win_2.2.0_cpu_vcomp.zip
|
||||
MD5 139fcdbd601a970fb86dd15b30ba5ae3)
|
||||
URL https://github.com/oneapi-src/oneDNN/releases/download/v2.2/dnnl_win_2.2.0_cpu_vcomp.zip
|
||||
MD5 fa12c693b2ec07700d174e1e99d60a7e)
|
||||
else()
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/MKL-DNN/repository/archive/v2.2.tar.gz")
|
||||
set(MD5 "49c650e0cc24ef9ae7033d4cb22ebfad")
|
||||
set(MD5 "386933f4c4fecb2d42d8433eb3f542f9")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/oneapi-src/oneDNN/archive/v2.2.tar.gz")
|
||||
set(MD5 "6a062e36ea1bee03ff55bf44ee243e27")
|
||||
|
|
@ -34,11 +21,8 @@ else()
|
|||
LIBS dnnl mkldnn
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/onednn/0001-fix-user-threadpool-bug.patch
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/onednn/0002-fix-pool-nthr-bug.patch
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/onednn/0003-fix-zero-threads-identified-on-AMD.patch
|
||||
CMAKE_OPTION -DDNNL_ARCH_OPT_FLAGS='' -DDNNL_BUILD_EXAMPLES=OFF -DDNNL_BUILD_TESTS=OFF
|
||||
${USE_MS_THREADPOOL} -DDNNL_ENABLE_CONCURRENT_EXEC=ON)
|
||||
-DDNNL_ENABLE_CONCURRENT_EXEC=ON)
|
||||
endif()
|
||||
|
||||
include_directories(${onednn_INC})
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/nccl/repository/archive/v2.7.6-1.tar.gz")
|
||||
set(MD5 "6884364c2b1cf229f0bdaf94efcb5782")
|
||||
set(MD5 "220d232b30cb9bff2e54219399b9f6fb")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/NVIDIA/nccl/archive/v2.7.6-1.tar.gz")
|
||||
set(MD5 "073b19899f374c5ba07d2db02dc38f9f")
|
||||
|
|
@ -12,8 +12,8 @@ mindspore_add_pkg(nccl
|
|||
LIBS nccl
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
BUILD_OPTION src.build
|
||||
BUILD_OPTION src.build NVCC_GENCODE="-gencode=arch=compute_70,code=sm_70"
|
||||
INSTALL_INCS build/include/*
|
||||
INSTALL_LIBS build/lib/*)
|
||||
include_directories(${nccl_INC})
|
||||
add_library(mindspore::nccl ALIAS nccl::nccl)
|
||||
add_library(mindspore::nccl ALIAS nccl::nccl)
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/ompi/repository/archive/v4.0.3.tar.gz")
|
||||
set(MD5 "70f764c26ab6cd99487d58be0cd8c409")
|
||||
set(MD5 "77865fe49f85c6294416007c5633a448")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/open-mpi/ompi/archive/v4.0.3.tar.gz")
|
||||
set(MD5 "86cb724e8fe71741ad3be4e7927928a2")
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/ONNX/repository/archive/v1.6.0.tar.gz")
|
||||
set(MD5 "1bdbcecdd68ea8392630467646776e02")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/onnx/onnx/releases/download/v1.6.0/onnx-1.6.0.tar.gz")
|
||||
set(MD5 "512f2779d6215d4a36f366b6b9acdf1e")
|
||||
endif()
|
||||
|
||||
mindspore_add_pkg(ms_onnx
|
||||
VER 1.6.0
|
||||
HEAD_ONLY ./
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5})
|
||||
|
|
@ -1,22 +1,12 @@
|
|||
if(ENABLE_GITEE_EULER)
|
||||
set(GIT_REPOSITORY "git@gitee.com:src-openeuler/opencl-clhpp.git")
|
||||
set(GIT_TAG "7347fa1bb52ebee9f3d6c44ff65ef3c4253cab79")
|
||||
set(MD5 "d41d8cd98f00b204e9800998ecf8427e")
|
||||
|
||||
__download_pkg_with_git(OpenCL-CLHPP ${GIT_REPOSITORY} ${GIT_TAG} ${MD5})
|
||||
set(OPENCL_CLHPP_SRC "${TOP_DIR}/mindspore/lite/build/_deps/opencl-clhpp-src")
|
||||
execute_process(COMMAND tar -xf ${OPENCL_CLHPP_SRC}/v2.0.12.tar.gz --strip-components 1 -C ${OPENCL_CLHPP_SRC})
|
||||
|
||||
set(OPENCL_HEADER_SRC "${TOP_DIR}/mindspore/lite/build/_deps/opencl-headers-src")
|
||||
execute_process(COMMAND mkdir -p ${OPENCL_HEADER_SRC})
|
||||
execute_process(COMMAND tar -xf ${OPENCL_CLHPP_SRC}/v2020.12.18.tar.gz --strip-components 1 -C ${OPENCL_HEADER_SRC})
|
||||
elseif(ENABLE_GITEE)
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/OpenCL-Headers/repository/archive/v2020.12.18.tar.gz")
|
||||
set(MD5 "9a34e50198ac54b795bf3822bb6e429a")
|
||||
__download_pkg(OpenCL-Headers ${REQ_URL} ${MD5})
|
||||
set(MD5 "e75dc757f16d3789ce551d79f989bf41")
|
||||
set(PKG_GIT_TAG "")
|
||||
__download_pkg_with_git(OpenCL-Headers ${REQ_URL} ${PKG_GIT_TAG} ${MD5})
|
||||
set(REQ_URL "https://gitee.com/mirrors/OpenCL-CLHPP/repository/archive/v2.0.12.tar.gz")
|
||||
set(MD5 "3439d8eb6d247bfd02164bcd0c8e5adb")
|
||||
__download_pkg(OpenCL-CLHPP ${REQ_URL} ${MD5})
|
||||
set(MD5 "a07b45d676b02644482bc2c3bb90b891")
|
||||
set(PKG_GIT_TAG "")
|
||||
__download_pkg_with_git(OpenCL-CLHPP ${REQ_URL} ${PKG_GIT_TAG} ${MD5})
|
||||
else()
|
||||
set(REQ_URL "https://github.com/KhronosGroup/OpenCL-Headers/archive/v2020.12.18.tar.gz")
|
||||
set(MD5 "ea0296fb79951f43082b742234f26c9a")
|
||||
|
|
@ -26,12 +16,13 @@ else()
|
|||
__download_pkg(OpenCL-CLHPP ${REQ_URL} ${MD5})
|
||||
endif()
|
||||
|
||||
function(gene_opencl CL_SRC_DIR)
|
||||
message(STATUS "**********gene opencl********* cl path: " "${CL_SRC_DIR}")
|
||||
function(gene_opencl BASEPATH)
|
||||
string(CONCAT CL_SRC_DIR "${BASEPATH}" "/src/runtime/kernel/opencl/cl")
|
||||
message(STATUS "**********gene opencl*********base path: " "${BASEPATH}" ", cl path: " "${CL_SRC_DIR}")
|
||||
if(NOT EXISTS ${CL_SRC_DIR})
|
||||
return()
|
||||
endif()
|
||||
file(GLOB_RECURSE CL_LIST ${CL_SRC_DIR}/*.cl)
|
||||
file(GLOB_RECURSE CL_LIST ${CL_SRC_DIR}/*.cl ${CL_SRC_DIR}/int8/*.cl)
|
||||
foreach(file_path ${CL_LIST})
|
||||
file(REMOVE ${file_path}.inc)
|
||||
string(REGEX REPLACE ".+/(.+)\\..*" "\\1" kernel_name "${file_path}")
|
||||
|
|
|
|||
|
|
@ -1,8 +1,4 @@
|
|||
if(MSVC)
|
||||
set(opencv_CXXFLAGS "${CMAKE_CXX_FLAGS}")
|
||||
set(opencv_CFLAGS "${CMAKE_C_FLAGS}")
|
||||
set(opencv_LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(opencv_CXXFLAGS "-fstack-protector-all -Wno-uninitialized -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -O2")
|
||||
set(opencv_CFLAGS "-fstack-protector-all -Wno-uninitialized -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -O2")
|
||||
set(opencv_LDFLAGS "-Wl")
|
||||
|
|
@ -18,57 +14,38 @@ else()
|
|||
set(opencv_CXXFLAGS "${opencv_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
endif()
|
||||
set(opencv_CFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter -D_FORTIFY_SOURCE=2 -O2")
|
||||
set(opencv_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack -s")
|
||||
set(opencv_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
||||
endif()
|
||||
|
||||
if(ENABLE_GITEE_EULER)
|
||||
set(GIT_REPOSITORY "https://gitee.com/src-openeuler/opencv.git")
|
||||
set(GIT_TAG "openEuler-22.03-LTS")
|
||||
set(MD5 "e2b5aa4946559d0a397148d6e1ab7284")
|
||||
set(OPENCV_SRC "${TOP_DIR}/build/mindspore/_deps/opencv-src")
|
||||
__download_pkg_with_git(opencv ${GIT_REPOSITORY} ${GIT_TAG} ${MD5})
|
||||
execute_process(COMMAND tar -xf ${OPENCV_SRC}/opencv-4.5.2.tar.gz --strip-components 1 -C ${OPENCV_SRC})
|
||||
else()
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/opencv/repository/archive/4.5.2.tar.gz")
|
||||
set(MD5 "d3141f649ab2d76595fdd8991ee15c55")
|
||||
if(PYTHON_VERSION MATCHES "3.9")
|
||||
set(REQ_URL "https://gitee.com/mirrors/opencv/repository/archive/4.5.1.tar.gz")
|
||||
set(MD5 "e74309207f2fa88fb6cc417d8ea9ff09")
|
||||
elseif((PYTHON_VERSION MATCHES "3.7") OR (PYTHON_VERSION MATCHES "3.8"))
|
||||
set(REQ_URL "https://gitee.com/mirrors/opencv/repository/archive/4.2.0.tar.gz")
|
||||
set(MD5 "00424c7c4acde1e26ebf17aaa155bf23")
|
||||
else()
|
||||
message("Could not find 'Python 3.8' or 'Python 3.7' or 'Python 3.9'")
|
||||
return()
|
||||
endif()
|
||||
else()
|
||||
set(REQ_URL "https://github.com/opencv/opencv/archive/4.5.2.tar.gz")
|
||||
set(MD5 "d3141f649ab2d76595fdd8991ee15c55")
|
||||
endif()
|
||||
if(PYTHON_VERSION MATCHES "3.9")
|
||||
set(REQ_URL "https://github.com/opencv/opencv/archive/4.5.1.tar.gz")
|
||||
set(MD5 "2205d3169238ec1f184438a96de68513")
|
||||
elseif((PYTHON_VERSION MATCHES "3.7") OR (PYTHON_VERSION MATCHES "3.8"))
|
||||
set(REQ_URL "https://github.com/opencv/opencv/archive/4.2.0.tar.gz")
|
||||
set(MD5 "e8cb208ce2723481408b604b480183b6")
|
||||
else()
|
||||
message("Could not find 'Python 3.8' or 'Python 3.7' or 'Python 3.9'")
|
||||
return()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
mindspore_add_pkg(opencv
|
||||
VER 4.5.2
|
||||
LIBS opencv_core452.lib opencv_imgcodecs452.lib opencv_imgproc452.lib
|
||||
LIB_PATH x64/*/lib
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -DWITH_PROTOBUF=OFF -DWITH_WEBP=OFF -DWITH_IPP=OFF
|
||||
-DWITH_ADE=OFF
|
||||
-DBUILD_ZLIB=ON
|
||||
-DBUILD_JPEG=ON
|
||||
-DBUILD_PNG=ON
|
||||
-DBUILD_OPENEXR=OFF
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_PERF_TESTS=OFF
|
||||
-DBUILD_opencv_apps=OFF
|
||||
-DCMAKE_SKIP_RPATH=TRUE
|
||||
-DBUILD_opencv_python3=OFF
|
||||
-DBUILD_opencv_videoio=OFF
|
||||
-DWITH_FFMPEG=OFF
|
||||
-DWITH_TIFF=ON
|
||||
-DBUILD_TIFF=OFF
|
||||
-DWITH_JASPER=OFF
|
||||
-DBUILD_JASPER=OFF
|
||||
-DCV_TRACE=OFF # cause memory usage increacing
|
||||
-DTIFF_INCLUDE_DIR=${tiff_INC}
|
||||
-DTIFF_LIBRARY=${tiff_LIB})
|
||||
elseif(WIN32)
|
||||
mindspore_add_pkg(opencv
|
||||
VER 4.5.2
|
||||
LIBS libopencv_core452.dll.a libopencv_imgcodecs452.dll.a libopencv_imgproc452.dll.a
|
||||
if(WIN32)
|
||||
if(PYTHON_VERSION MATCHES "3.9")
|
||||
mindspore_add_pkg(opencv
|
||||
VER 4.5.1
|
||||
LIBS libopencv_core451.dll.a libopencv_imgcodecs451.dll.a libopencv_imgproc451.dll.a
|
||||
LIB_PATH x64/mingw/lib
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
|
|
@ -77,7 +54,33 @@ elseif(WIN32)
|
|||
-DBUILD_ZLIB=ON
|
||||
-DBUILD_JPEG=ON
|
||||
-DBUILD_PNG=ON
|
||||
-DBUILD_OPENEXR=OFF
|
||||
-DBUILD_OPENEXR=ON
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_PERF_TESTS=OFF
|
||||
-DBUILD_opencv_apps=OFF
|
||||
-DCMAKE_SKIP_RPATH=TRUE
|
||||
-DBUILD_opencv_python3=OFF
|
||||
-DBUILD_opencv_videoio=OFF
|
||||
-DWITH_FFMPEG=OFF
|
||||
-DWITH_TIFF=ON
|
||||
-DBUILD_TIFF=OFF
|
||||
-DWITH_JASPER=OFF
|
||||
-DBUILD_JASPER=OFF
|
||||
-DTIFF_INCLUDE_DIR=${tiff_INC}
|
||||
-DTIFF_LIBRARY=${tiff_LIB})
|
||||
elseif(PYTHON_VERSION MATCHES "3.8" OR PYTHON_VERSION MATCHES "3.7")
|
||||
mindspore_add_pkg(opencv
|
||||
VER 4.2.0
|
||||
LIBS libopencv_core420.dll.a libopencv_imgcodecs420.dll.a libopencv_imgproc420.dll.a
|
||||
LIB_PATH x64/mingw/lib
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -DWITH_PROTOBUF=OFF -DWITH_WEBP=OFF -DWITH_IPP=OFF
|
||||
-DWITH_ADE=OFF
|
||||
-DBUILD_ZLIB=ON
|
||||
-DBUILD_JPEG=ON
|
||||
-DBUILD_PNG=ON
|
||||
-DBUILD_OPENEXR=ON
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_PERF_TESTS=OFF
|
||||
-DBUILD_opencv_apps=OFF
|
||||
|
|
@ -89,13 +92,14 @@ elseif(WIN32)
|
|||
-DBUILD_TIFF=OFF
|
||||
-DWITH_JASPER=OFF
|
||||
-DBUILD_JASPER=OFF
|
||||
-DCV_TRACE=OFF # cause memory usage increacing
|
||||
-DWITH_LAPACK=OFF
|
||||
-DTIFF_INCLUDE_DIR=${tiff_INC}
|
||||
-DTIFF_LIBRARY=${tiff_LIB})
|
||||
endif()
|
||||
else()
|
||||
mindspore_add_pkg(opencv
|
||||
VER 4.5.2
|
||||
if(PYTHON_VERSION MATCHES "3.9")
|
||||
mindspore_add_pkg(opencv
|
||||
VER 4.5.1
|
||||
LIBS opencv_core opencv_imgcodecs opencv_imgproc
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
|
|
@ -104,7 +108,31 @@ else()
|
|||
-DBUILD_ZLIB=ON
|
||||
-DBUILD_JPEG=ON
|
||||
-DBUILD_PNG=ON
|
||||
-DBUILD_OPENEXR=OFF
|
||||
-DBUILD_OPENEXR=ON
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_PERF_TESTS=OFF
|
||||
-DBUILD_opencv_apps=OFF
|
||||
-DCMAKE_SKIP_RPATH=TRUE
|
||||
-DBUILD_opencv_python3=OFF
|
||||
-DWITH_FFMPEG=OFF
|
||||
-DWITH_TIFF=ON
|
||||
-DBUILD_TIFF=OFF
|
||||
-DWITH_JASPER=OFF
|
||||
-DBUILD_JASPER=OFF
|
||||
-DTIFF_INCLUDE_DIR=${tiff_INC}
|
||||
-DTIFF_LIBRARY=${tiff_LIB})
|
||||
elseif(PYTHON_VERSION MATCHES "3.8" OR PYTHON_VERSION MATCHES "3.7")
|
||||
mindspore_add_pkg(opencv
|
||||
VER 4.2.0
|
||||
LIBS opencv_core opencv_imgcodecs opencv_imgproc
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -DWITH_PROTOBUF=OFF -DWITH_WEBP=OFF -DWITH_IPP=OFF
|
||||
-DWITH_ADE=OFF
|
||||
-DBUILD_ZLIB=ON
|
||||
-DBUILD_JPEG=ON
|
||||
-DBUILD_PNG=ON
|
||||
-DBUILD_OPENEXR=ON
|
||||
-DBUILD_TESTS=OFF
|
||||
-DBUILD_PERF_TESTS=OFF
|
||||
-DBUILD_opencv_apps=OFF
|
||||
|
|
@ -115,22 +143,24 @@ else()
|
|||
-DBUILD_TIFF=OFF
|
||||
-DWITH_JASPER=OFF
|
||||
-DBUILD_JASPER=OFF
|
||||
-DCV_TRACE=OFF # cause memory usage increacing
|
||||
-DWITH_LAPACK=OFF
|
||||
-DTIFF_INCLUDE_DIR=${tiff_INC}
|
||||
-DTIFF_LIBRARY=${tiff_LIB})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
include_directories(${opencv_INC})
|
||||
add_library(mindspore::opencv_core ALIAS opencv::opencv_core452.lib)
|
||||
add_library(mindspore::opencv_imgcodecs ALIAS opencv::opencv_imgcodecs452.lib)
|
||||
add_library(mindspore::opencv_imgproc ALIAS opencv::opencv_imgproc452.lib)
|
||||
elseif(WIN32)
|
||||
include_directories(${opencv_INC})
|
||||
add_library(mindspore::opencv_core ALIAS opencv::libopencv_core452.dll.a)
|
||||
add_library(mindspore::opencv_imgcodecs ALIAS opencv::libopencv_imgcodecs452.dll.a)
|
||||
add_library(mindspore::opencv_imgproc ALIAS opencv::libopencv_imgproc452.dll.a)
|
||||
if(WIN32)
|
||||
if(PYTHON_VERSION MATCHES "3.9")
|
||||
include_directories(${opencv_INC})
|
||||
add_library(mindspore::opencv_core ALIAS opencv::libopencv_core451.dll.a)
|
||||
add_library(mindspore::opencv_imgcodecs ALIAS opencv::libopencv_imgcodecs451.dll.a)
|
||||
add_library(mindspore::opencv_imgproc ALIAS opencv::libopencv_imgproc451.dll.a)
|
||||
elseif(PYTHON_VERSION MATCHES "3.8" OR PYTHON_VERSION MATCHES "3.7")
|
||||
include_directories(${opencv_INC})
|
||||
add_library(mindspore::opencv_core ALIAS opencv::libopencv_core420.dll.a)
|
||||
add_library(mindspore::opencv_imgcodecs ALIAS opencv::libopencv_imgcodecs420.dll.a)
|
||||
add_library(mindspore::opencv_imgproc ALIAS opencv::libopencv_imgproc420.dll.a)
|
||||
endif()
|
||||
else()
|
||||
include_directories(${opencv_INC}/opencv4)
|
||||
add_library(mindspore::opencv_core ALIAS opencv::opencv_core)
|
||||
|
|
|
|||
|
|
@ -1,78 +1,18 @@
|
|||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/openssl/repository/archive/OpenSSL_1_1_1k.tar.gz")
|
||||
set(MD5 "bdd51a68ad74618dd2519da8e0bcc759")
|
||||
set(MD5 "d4acbcc4a5e6c31d86ede95b5d22f7a0")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1k.tar.gz")
|
||||
set(MD5 "bdd51a68ad74618dd2519da8e0bcc759")
|
||||
endif()
|
||||
|
||||
if(BUILD_LITE)
|
||||
set(OPENSSL_PATCH_ROOT ${TOP_DIR}/third_party/patch/openssl)
|
||||
else()
|
||||
set(OPENSSL_PATCH_ROOT ${CMAKE_SOURCE_DIR}/third_party/patch/openssl)
|
||||
endif()
|
||||
|
||||
if(BUILD_LITE)
|
||||
if(PLATFORM_ARM64 AND ANDROID_NDK_TOOLCHAIN_INCLUDED)
|
||||
set(openssl_USE_STATIC_LIBS OFF)
|
||||
set(ANDROID_NDK_ROOT $ENV{ANDROID_NDK})
|
||||
set(PATH
|
||||
${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin:
|
||||
${ANDROID_NDK_ROOT}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin:
|
||||
$ENV{PATH})
|
||||
mindspore_add_pkg(openssl
|
||||
VER 1.1.1k
|
||||
LIBS ssl crypto
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CONFIGURE_COMMAND ./Configure android-arm64 -D__ANDROID_API__=29 no-zlib
|
||||
PATCHES ${OPENSSL_PATCH_ROOT}/CVE-2021-3711.patch
|
||||
PATCHES ${OPENSSL_PATCH_ROOT}/CVE-2021-3712.patch
|
||||
)
|
||||
elseif(PLATFORM_ARM32 AND ANDROID_NDK_TOOLCHAIN_INCLUDED)
|
||||
set(ANDROID_NDK_ROOT $ENV{ANDROID_NDK})
|
||||
set(PATH
|
||||
${ANDROID_NDK_ROOT}/toolchains/llvm/prebuilt/linux-x86_64/bin:
|
||||
${ANDROID_NDK_ROOT}/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin:
|
||||
$ENV{PATH})
|
||||
mindspore_add_pkg(openssl
|
||||
VER 1.1.1k
|
||||
LIBS ssl crypto
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CONFIGURE_COMMAND ./Configure android-arm -D__ANDROID_API__=19 no-zlib
|
||||
PATCHES ${OPENSSL_PATCH_ROOT}/CVE-2021-3711.patch
|
||||
PATCHES ${OPENSSL_PATCH_ROOT}/CVE-2021-3712.patch
|
||||
)
|
||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR APPLE)
|
||||
mindspore_add_pkg(openssl
|
||||
VER 1.1.1k
|
||||
LIBS ssl crypto
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CONFIGURE_COMMAND ./config no-zlib
|
||||
PATCHES ${OPENSSL_PATCH_ROOT}/CVE-2021-3711.patch
|
||||
PATCHES ${OPENSSL_PATCH_ROOT}/CVE-2021-3712.patch
|
||||
)
|
||||
else()
|
||||
MESSAGE(FATAL_ERROR "openssl does not support compilation for the current environment.")
|
||||
endif()
|
||||
include_directories(${openssl_INC})
|
||||
add_library(mindspore::ssl ALIAS openssl::ssl)
|
||||
add_library(mindspore::crypto ALIAS openssl::crypto)
|
||||
else()
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR APPLE)
|
||||
mindspore_add_pkg(openssl
|
||||
VER 1.1.1k
|
||||
LIBS ssl crypto
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CONFIGURE_COMMAND ./config no-zlib no-shared
|
||||
PATCHES ${OPENSSL_PATCH_ROOT}/CVE-2021-3711.patch
|
||||
PATCHES ${OPENSSL_PATCH_ROOT}/CVE-2021-3712.patch
|
||||
)
|
||||
include_directories(${openssl_INC})
|
||||
add_library(mindspore::ssl ALIAS openssl::ssl)
|
||||
add_library(mindspore::crypto ALIAS openssl::crypto)
|
||||
endif()
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
mindspore_add_pkg(openssl
|
||||
VER 1.1.0
|
||||
LIBS ssl crypto
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CONFIGURE_COMMAND ./config no-zlib no-shared)
|
||||
include_directories(${openssl_INC})
|
||||
add_library(mindspore::ssl ALIAS openssl::ssl)
|
||||
add_library(mindspore::crypto ALIAS openssl::crypto)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,25 @@
|
|||
set(projectq_CXXFLAGS "-fopenmp -O2 -ffast-mast -mavx -DINTRIN")
|
||||
set(projectq_CFLAGS "-fopenmp -O2 -ffast-mast -mavx -DINTRIN")
|
||||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/ProjectQ/repository/archive/v0.5.1.tar.gz")
|
||||
set(MD5 "d874e93e56d3375f1c54c7dd1b731054")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/ProjectQ-Framework/ProjectQ/archive/v0.5.1.tar.gz ")
|
||||
set(MD5 "13430199c253284df8b3d840f11d3560")
|
||||
endif()
|
||||
|
||||
if(ENABLE_CPU AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux"
|
||||
AND ${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "x86_64")
|
||||
message("Include projectq simulator")
|
||||
mindspore_add_pkg(projectq
|
||||
VER 0.5.1
|
||||
HEAD_ONLY ./
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/projectq/projectq.patch001
|
||||
)
|
||||
include_directories(${projectq_INC})
|
||||
else()
|
||||
message("Quantum simulation only support x86_64 linux platform.")
|
||||
endif()
|
||||
|
|
@ -1,19 +1,7 @@
|
|||
set(protobuf_USE_STATIC_LIBS ON)
|
||||
if(BUILD_LITE)
|
||||
if(MSVC)
|
||||
set(protobuf_CXXFLAGS "${CMAKE_CXX_FLAGS}")
|
||||
set(protobuf_CFLAGS "${CMAKE_C_FLAGS}")
|
||||
set(protobuf_LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
set(_ms_tmp_CMAKE_STATIC_LIBRARY_PREFIX ${CMAKE_STATIC_LIBRARY_PREFIX})
|
||||
set(CMAKE_STATIC_LIBRARY_PREFIX "lib")
|
||||
else()
|
||||
set(protobuf_CXXFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter \
|
||||
-fPIC -fvisibility=hidden -D_FORTIFY_SOURCE=2 -O2")
|
||||
if(NOT ENABLE_GLIBCXX)
|
||||
set(protobuf_CXXFLAGS "${protobuf_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
endif()
|
||||
set(protobuf_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
||||
endif()
|
||||
set(protobuf_CXXFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter \
|
||||
-fPIC -fvisibility=hidden -D_FORTIFY_SOURCE=2 -O2")
|
||||
else()
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(protobuf_CXXFLAGS "-fstack-protector-all -Wno-uninitialized -Wno-unused-parameter -fPIC \
|
||||
|
|
@ -28,9 +16,9 @@ else()
|
|||
set(protobuf_CXXFLAGS "${protobuf_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
endif()
|
||||
endif()
|
||||
set(protobuf_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
||||
endif()
|
||||
|
||||
set(protobuf_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
||||
set(_ms_tmp_CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
||||
set(CMAKE_CXX_FLAGS ${_ms_tmp_CMAKE_CXX_FLAGS})
|
||||
string(REPLACE " -Wall" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
|
|
@ -38,18 +26,12 @@ string(REPLACE " -Werror" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/protobuf_source/repository/archive/v3.13.0.tar.gz")
|
||||
set(MD5 "53ab10736257b3c61749de9800b8ce97")
|
||||
set(MD5 "f4489cb88922ad9c58cbe3308d59cee5")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz")
|
||||
set(MD5 "1a6274bc4a65b55a6fa70e264d796490")
|
||||
endif()
|
||||
|
||||
if(BUILD_LITE)
|
||||
set(PROTOBUF_PATCH_ROOT ${TOP_DIR}/third_party/patch/protobuf)
|
||||
else()
|
||||
set(PROTOBUF_PATCH_ROOT ${CMAKE_SOURCE_DIR}/third_party/patch/protobuf)
|
||||
endif()
|
||||
|
||||
mindspore_add_pkg(protobuf
|
||||
VER 3.13.0
|
||||
LIBS protobuf
|
||||
|
|
@ -57,15 +39,11 @@ mindspore_add_pkg(protobuf
|
|||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CMAKE_PATH cmake/
|
||||
CMAKE_OPTION -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF -DCMAKE_BUILD_TYPE=Release
|
||||
PATCHES ${PROTOBUF_PATCH_ROOT}/CVE-2021-22570.patch)
|
||||
CMAKE_OPTION -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_SHARED_LIBS=OFF)
|
||||
|
||||
include_directories(${protobuf_INC})
|
||||
add_library(mindspore::protobuf ALIAS protobuf::protobuf)
|
||||
set(CMAKE_CXX_FLAGS ${_ms_tmp_CMAKE_CXX_FLAGS})
|
||||
if(MSVC)
|
||||
set(CMAKE_STATIC_LIBRARY_PREFIX, ${_ms_tmp_CMAKE_STATIC_LIBRARY_PREFIX})
|
||||
endif()
|
||||
|
||||
function(common_protobuf_generate path c_var h_var)
|
||||
if(NOT ARGN)
|
||||
|
|
@ -99,11 +77,7 @@ function(common_protobuf_generate path c_var h_var)
|
|||
endfunction()
|
||||
|
||||
function(ms_protobuf_generate c_var h_var)
|
||||
if(NOT ENABLE_CLOUD_AND_LITE)
|
||||
common_protobuf_generate(${CMAKE_BINARY_DIR}/proto ${c_var} ${h_var} ${ARGN})
|
||||
else()
|
||||
common_protobuf_generate(${CMAKE_BINARY_DIR}/proto/lite ${c_var} ${h_var} ${ARGN})
|
||||
endif()
|
||||
common_protobuf_generate(${CMAKE_BINARY_DIR}/proto ${c_var} ${h_var} ${ARGN})
|
||||
set(${c_var} ${${c_var}} PARENT_SCOPE)
|
||||
set(${h_var} ${${h_var}} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
|
@ -139,7 +113,7 @@ function(ms_protobuf_generate_py c_var h_var py_var)
|
|||
COMMAND perl -pi.bak -e "s/import (.+_pb2.*)/from . import \\1/"
|
||||
"${CMAKE_BINARY_DIR}/proto/${file_name}_pb2.py"
|
||||
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_BINARY_DIR}/proto/${file_name}_pb2.py"
|
||||
"${PROJECT_SOURCE_DIR}/mindspore/python/mindspore/train/"
|
||||
"${PROJECT_SOURCE_DIR}/mindspore/train/"
|
||||
DEPENDS protobuf::protoc ${abs_file}
|
||||
COMMENT "Running C++ protocol buffer compiler on ${file}" VERBATIM)
|
||||
else()
|
||||
|
|
@ -154,8 +128,7 @@ function(ms_protobuf_generate_py c_var h_var py_var)
|
|||
COMMAND protobuf::protoc -I${file_dir} --python_out=${CMAKE_BINARY_DIR}/proto ${abs_file}
|
||||
COMMAND perl -pi -e "s/import (.+_pb2.*)/from . import \\1/"
|
||||
"${CMAKE_BINARY_DIR}/proto/${file_name}_pb2.py"
|
||||
COMMAND cp "${CMAKE_BINARY_DIR}/proto/${file_name}_pb2.py"
|
||||
"${PROJECT_SOURCE_DIR}/mindspore/python/mindspore/train/"
|
||||
COMMAND cp "${CMAKE_BINARY_DIR}/proto/${file_name}_pb2.py" "${PROJECT_SOURCE_DIR}/mindspore/train/"
|
||||
DEPENDS protobuf::protoc ${abs_file}
|
||||
COMMENT "Running C++ protocol buffer compiler on ${file}" VERBATIM)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -1,73 +0,0 @@
|
|||
set(protobuf_arm_USE_STATIC_LIBS ON)
|
||||
if(BUILD_LITE)
|
||||
if(MSVC)
|
||||
set(protobuf_arm_CXXFLAGS "${CMAKE_CXX_FLAGS}")
|
||||
set(protobuf_arm_CFLAGS "${CMAKE_C_FLAGS}")
|
||||
set(protobuf_arm_LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
set(_ms_tmp_CMAKE_STATIC_LIBRARY_PREFIX ${CMAKE_STATIC_LIBRARY_PREFIX})
|
||||
set(CMAKE_STATIC_LIBRARY_PREFIX "lib")
|
||||
else()
|
||||
set(protobuf_arm_CXXFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter \
|
||||
-fPIC -fvisibility=hidden -D_FORTIFY_SOURCE=2 -O2")
|
||||
if(NOT ENABLE_GLIBCXX)
|
||||
set(protobuf_arm_CXXFLAGS "${protobuf_arm_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
endif()
|
||||
set(protobuf_arm_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
||||
endif()
|
||||
else()
|
||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
set(protobuf_arm_CXXFLAGS "-fstack-protector-all -Wno-uninitialized -Wno-unused-parameter -fPIC \
|
||||
-fvisibility=hidden -D_FORTIFY_SOURCE=2 -O2")
|
||||
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
|
||||
set(protobuf_arm_CXXFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter \
|
||||
-fPIC -fvisibility=hidden -D_FORTIFY_SOURCE=2 -O2")
|
||||
else()
|
||||
set(protobuf_arm_CXXFLAGS "-fstack-protector-all -Wno-maybe-uninitialized -Wno-unused-parameter \
|
||||
-fPIC -fvisibility=hidden -D_FORTIFY_SOURCE=2 -O2")
|
||||
if(NOT ENABLE_GLIBCXX)
|
||||
set(protobuf_arm_CXXFLAGS "${protobuf_arm_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
endif()
|
||||
endif()
|
||||
set(protobuf_arm_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
||||
endif()
|
||||
|
||||
set(_ms_tmp_CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
|
||||
set(CMAKE_CXX_FLAGS ${_ms_tmp_CMAKE_CXX_FLAGS})
|
||||
string(REPLACE " -Wall" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
string(REPLACE " -Werror" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/protobuf_source/repository/archive/v3.13.0.tar.gz")
|
||||
set(MD5 "53ab10736257b3c61749de9800b8ce97")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/protocolbuffers/protobuf/archive/v3.13.0.tar.gz")
|
||||
set(MD5 "1a6274bc4a65b55a6fa70e264d796490")
|
||||
endif()
|
||||
|
||||
if(BUILD_LITE)
|
||||
set(PROTOBUF_PATCH_ROOT ${TOP_DIR}/third_party/patch/protobuf)
|
||||
else()
|
||||
set(PROTOBUF_PATCH_ROOT ${CMAKE_SOURCE_DIR}/third_party/patch/protobuf)
|
||||
endif()
|
||||
|
||||
mindspore_add_pkg(protobuf_arm
|
||||
VER 3.13.0
|
||||
LIBS protobuf
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CMAKE_PATH cmake/
|
||||
CMAKE_OPTION
|
||||
-Dprotobuf_BUILD_TESTS=OFF
|
||||
-Dprotobuf_BUILD_SHARED_LIBS=OFF
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
|
||||
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
|
||||
-Dprotobuf_WITH_ZLIB=OFF
|
||||
PATCHES ${PROTOBUF_PATCH_ROOT}/CVE-2021-22570.patch)
|
||||
|
||||
include_directories(${protobuf_arm_INC})
|
||||
add_library(mindspore::protobuf_arm ALIAS protobuf_arm::protobuf)
|
||||
set(CMAKE_CXX_FLAGS ${_ms_tmp_CMAKE_CXX_FLAGS})
|
||||
if(MSVC)
|
||||
set(CMAKE_STATIC_LIBRARY_PREFIX, ${_ms_tmp_CMAKE_STATIC_LIBRARY_PREFIX})
|
||||
endif()
|
||||
|
|
@ -3,13 +3,13 @@ set(PYTHON_VERSION ${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR})
|
|||
if(ENABLE_GITEE)
|
||||
if(PYTHON_VERSION MATCHES "3.9")
|
||||
set(REQ_URL "https://gitee.com/mirrors/pybind11/repository/archive/v2.6.1.tar.gz")
|
||||
set(MD5 "cd04f7bd275fedb97e8b583c115769e6")
|
||||
set(MD5 "a9b7642031f35daf33a75fe837b3dd31")
|
||||
elseif(PYTHON_VERSION MATCHES "3.8")
|
||||
set(REQ_URL "https://gitee.com/mirrors/pybind11/repository/archive/v2.6.1.tar.gz")
|
||||
set(MD5 "cd04f7bd275fedb97e8b583c115769e6")
|
||||
set(MD5 "a9b7642031f35daf33a75fe837b3dd31")
|
||||
elseif(PYTHON_VERSION MATCHES "3.7")
|
||||
set(REQ_URL "https://gitee.com/mirrors/pybind11/repository/archive/v2.4.3.tar.gz")
|
||||
set(MD5 "8f69438201bc824c63e5774bf8c1d422")
|
||||
set(MD5 "b473a37987ce456ea8cc7aab3f9486f9")
|
||||
else()
|
||||
message("Could not find 'Python 3.8' or 'Python 3.7' or 'Python 3.9'")
|
||||
return()
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/re2/repository/archive/2019-12-01.tar.gz")
|
||||
set(MD5 "527eab0c75d6a1a0044c6eefd816b2fb")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/google/re2/archive/2019-12-01.tar.gz")
|
||||
set(MD5 "527eab0c75d6a1a0044c6eefd816b2fb")
|
||||
endif()
|
||||
|
||||
if(NOT ENABLE_GLIBCXX)
|
||||
set(re2_CXXFLAGS "${re2_CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
|
||||
endif()
|
||||
|
||||
mindspore_add_pkg(re2
|
||||
VER 20191201
|
||||
LIBS re2
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=TRUE)
|
||||
|
||||
include_directories(${re2_INC})
|
||||
add_library(mindspore::re2 ALIAS re2::re2)
|
||||
|
||||
|
|
@ -1,19 +1,10 @@
|
|||
if(ENABLE_GITEE_EULER)
|
||||
set(GIT_REPOSITORY "https://gitee.com/src-openeuler/sentencepiece.git")
|
||||
set(GIT_TAG "master")
|
||||
set(MD5 "4f88df28544b5f1a351f3dbf6b6413b8")
|
||||
set(SENTENCEPIECE_SRC "${TOP_DIR}/build/mindspore/_deps/sentencepiece-src")
|
||||
__download_pkg_with_git(sentencepiece ${GIT_REPOSITORY} ${GIT_TAG} ${MD5})
|
||||
execute_process(COMMAND tar -xf ${SENTENCEPIECE_SRC}/v0.1.92.tar.gz --strip-components 1 -C ${SENTENCEPIECE_SRC})
|
||||
else()
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/sentencepiece/repository/archive/v0.1.92.tar.gz")
|
||||
set(MD5 "0fc99de9f09b9184398f49647791799f")
|
||||
set(MD5 "618f5590c99884866c01cb773096c523")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/google/sentencepiece/archive/v0.1.92.tar.gz")
|
||||
set(MD5 "5dfd2241914b5598a68b2a8542ed8e91")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
if(WIN32)
|
||||
|
|
@ -36,7 +27,7 @@ else()
|
|||
LIBS sentencepiece sentencepiece_train
|
||||
URL ${REQ_URL}
|
||||
CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -DSPM_USE_BUILTIN_PROTOBUF=OFF -DSPM_ENABLE_SHARED=OFF
|
||||
-DPROTOBUF_INC=${protobuf_INC} -DCMAKE_CXX_STANDARD=11
|
||||
-DPROTOBUF_INC=${protobuf_INC}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/sentencepiece/sentencepiece.patch001_cpu
|
||||
)
|
||||
|
|
@ -48,11 +39,10 @@ else()
|
|||
CMAKE_OPTION -DCMAKE_BUILD_TYPE=Release -DSPM_USE_BUILTIN_PROTOBUF=OFF -DSPM_ENABLE_SHARED=OFF
|
||||
-DPROTOBUF_INC=${protobuf_INC}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${TOP_DIR}/third_party/patch/sentencepiece/sentencepiece.patch001
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/sentencepiece/sentencepiece.patch001
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
include_directories(${sentencepiece_INC})
|
||||
add_library(mindspore::sentencepiece ALIAS sentencepiece::sentencepiece)
|
||||
add_library(mindspore::sentencepiece_train ALIAS sentencepiece::sentencepiece_train)
|
||||
|
||||
add_library(mindspore::sentencepiece_train ALIAS sentencepiece::sentencepiece_train)
|
||||
|
|
@ -1,19 +1,19 @@
|
|||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/sqlite/repository/archive/version-3.36.0.tar.gz")
|
||||
set(MD5 "715df9c2d2ccf6207158d6c087f711cf")
|
||||
set(REQ_URL "https://gitee.com/mirrors/sqlite/repository/archive/version-3.32.2.tar.gz")
|
||||
set(MD5 "7312cad1739d8a73b14abddc850c0afa")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/sqlite/sqlite/archive/version-3.36.0.tar.gz")
|
||||
set(MD5 "715df9c2d2ccf6207158d6c087f711cf")
|
||||
set(REQ_URL "https://github.com/sqlite/sqlite/archive/version-3.32.2.tar.gz")
|
||||
set(MD5 "ea6d3b3289b4ac216fb06081a01ef101")
|
||||
endif()
|
||||
|
||||
|
||||
if(WIN32)
|
||||
mindspore_add_pkg(sqlite
|
||||
VER 3.36.0
|
||||
VER 3.32.2
|
||||
LIBS sqlite3
|
||||
URL https://sqlite.org/2021/sqlite-amalgamation-3360000.zip
|
||||
MD5 c5d360c74111bafae1b704721ff18fe6
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/sqlite/sqlite.windows.patch002
|
||||
URL https://sqlite.org/2020/sqlite-amalgamation-3320200.zip
|
||||
MD5 1eccea18d248eb34c7378b2b3f63f1db
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/sqlite/sqlite.windows.patch001
|
||||
CMAKE_OPTION " "
|
||||
)
|
||||
|
||||
|
|
@ -29,10 +29,11 @@ else()
|
|||
set(sqlite_LDFLAGS "-Wl,-z,relro,-z,now,-z,noexecstack")
|
||||
endif()
|
||||
mindspore_add_pkg(sqlite
|
||||
VER 3.36.0
|
||||
VER 3.32.2
|
||||
LIBS sqlite3
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/sqlite/sqlite.patch001
|
||||
CONFIGURE_COMMAND ./configure --enable-shared=no --disable-tcl --disable-editline --enable-json1)
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ set(tinyxml2_CFLAGS "-fstack-protector -D_FORTIFY_SOURCE=2 -O2")
|
|||
|
||||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/tinyxml2/repository/archive/8.0.0.tar.gz")
|
||||
set(MD5 "5dc535c8b34ee621fe2128f072d275b5")
|
||||
set(MD5 "6a70cea637d0b17179e8bfd77860f811")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/leethomason/tinyxml2/archive/8.0.0.tar.gz")
|
||||
set(MD5 "5dc535c8b34ee621fe2128f072d275b5")
|
||||
|
|
|
|||
|
|
@ -0,0 +1,18 @@
|
|||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/incubator-tvm/repository/archive/v0.6.0.tar.gz")
|
||||
set(MD5 "7b22965745cf1c6208a4e367fb86a585")
|
||||
else()
|
||||
set(REQ_URL
|
||||
"https://github.com/apache/incubator-tvm/release/download/v0.6.0/apache-tvm-src-v0.6.0-incubating.tar.gz")
|
||||
set(MD5 "2d77a005f0046d937b99c67de82f6438")
|
||||
endif()
|
||||
set(incubator_tvm_predict_CXXFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
set(incubator_tvm_predict_CFLAGS "-D_FORTIFY_SOURCE=2 -O2")
|
||||
mindspore_add_pkg(incubator_tvm_predict
|
||||
VER 0.6.0
|
||||
HEAD_ONLY ./
|
||||
URL ${REQ_URL}
|
||||
MD5 ${MD5}
|
||||
PATCHES ${CMAKE_SOURCE_DIR}/third_party/patch/predict/0001-RetBugFix-CustomRuntime_v06.patch)
|
||||
include_directories(${incubator_tvm_predict_INC})
|
||||
add_library(mindspore::incubator_tvm_predict ALIAS incubator_tvm_predict)
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
if(ENABLE_GITEE)
|
||||
set(REQ_URL "https://gitee.com/mirrors/zlib/repository/archive/v1.2.11.tar.gz")
|
||||
set(MD5 "b0ecd8eda7c5d6ed9b4a4187363482fe")
|
||||
set(MD5 "be6d144068d8835e86a81b3f36b66a42")
|
||||
else()
|
||||
set(REQ_URL "https://github.com/madler/zlib/archive/v1.2.11.tar.gz")
|
||||
set(MD5 "0095d2d2d1f3442ce1318336637b695f")
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
|||
endif()
|
||||
set(_ms_tmp_CMAKE_CXX_FLAGS_F ${CMAKE_CXX_FLAGS})
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
|
||||
set(TOP_DIR ${CMAKE_SOURCE_DIR})
|
||||
|
||||
include(cmake/utils.cmake)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/eigen.cmake)
|
||||
|
|
@ -22,7 +21,6 @@ if(MS_BUILD_GRPC)
|
|||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/absl.cmake)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/c-ares.cmake)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/zlib.cmake)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/re2.cmake)
|
||||
# build gRPC
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/grpc.cmake)
|
||||
# build event
|
||||
|
|
@ -47,18 +45,36 @@ if(ENABLE_CPU)
|
|||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/mkl_dnn.cmake)
|
||||
endif()
|
||||
|
||||
if(ENABLE_CPU AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux"
|
||||
AND ${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "x86_64")
|
||||
message("Include projectq")
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/projectq.cmake)
|
||||
endif()
|
||||
|
||||
if(ENABLE_GPU)
|
||||
if(ENABLE_MPI)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/nccl.cmake)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(ENABLE_D OR ENABLE_ACL OR ENABLE_TESTCASES)
|
||||
if(ENABLE_GE)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/third_party/ge/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/third_party/ge/include/external)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/third_party/ge/include/external/graph)
|
||||
link_directories(${CMAKE_SOURCE_DIR}/third_party/ge/lib)
|
||||
elseif(ENABLE_D OR ENABLE_ACL OR ENABLE_TESTCASES)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/inc)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/inc/external)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/metadef/inc)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/metadef/inc/external)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/metadef/inc/external/graph)
|
||||
endif()
|
||||
|
||||
if(ENABLE_GE OR ENABLE_D OR ENABLE_ACL OR ENABLE_TESTCASES)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/inc)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/inc/external)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/inc/framework)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/third_party/fwkacllib/inc)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/third_party/fwkacllib/inc/aicpu)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/third_party/fwkacllib/inc/toolchain)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/metadef/inc)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/graphengine/metadef/inc/external)
|
||||
|
|
@ -79,8 +95,6 @@ if(ENABLE_MINDDATA)
|
|||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/jpeg_turbo.cmake)
|
||||
endif()
|
||||
|
||||
if(ENABLE_TESTCASES OR ENABLE_CPP_ST)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/gtest.cmake)
|
||||
endif()
|
||||
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/gtest.cmake)
|
||||
include(${CMAKE_SOURCE_DIR}/cmake/external_libs/onnx.cmake)
|
||||
set(CMAKE_CXX_FLAGS ${_ms_tmp_CMAKE_CXX_FLAGS_F})
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
option(ENABLE_D "Enable d" OFF)
|
||||
option(ENABLE_GPU "Enable gpu" OFF)
|
||||
option(ENABLE_CPU "Enable cpu" OFF)
|
||||
option(ENABLE_GE "Enable graph engine as backend to execute" OFF)
|
||||
option(ENABLE_MINDDATA "Enable minddata compile" OFF)
|
||||
option(ENABLE_TRAIN "Enable ge train, default off(only infer)" OFF)
|
||||
option(ENABLE_TESTCASES "Run testcases switch, default off" OFF)
|
||||
option(ENABLE_CPP_ST "Run cpp st testcases switch, default off" OFF)
|
||||
option(DEBUG_MODE "Debug mode, default off" OFF)
|
||||
|
|
@ -23,17 +25,8 @@ option(ENABLE_ACL "enable acl" OFF)
|
|||
option(ENABLE_GLIBCXX "enable_glibcxx" OFF)
|
||||
option(MODE_ASCEND_ALL "supports all ascend platform" OFF)
|
||||
option(MODE_ASCEND_ACL "supports ascend acl mode only" OFF)
|
||||
option(ENABLE_SYM_FILE "enable sym file" OFF)
|
||||
option(BUILD_DEV_MODE "MindSpore build nightly dev mode" OFF)
|
||||
option(ENABLE_FAST_HASH_TABLE "Enable use fast hash table instead of std ones" ON)
|
||||
option(USE_LLVM "use llvm" OFF)
|
||||
option(USE_MS_THREADPOOL_FOR_DNNL "use ms threadpool for onednn ops" ON)
|
||||
|
||||
if(NOT CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
set(USE_MS_THREADPOOL_FOR_DNNL OFF)
|
||||
endif()
|
||||
|
||||
if(NOT ENABLE_D AND NOT ENABLE_TESTCASES AND NOT ENABLE_ACL)
|
||||
if(NOT ENABLE_D AND NOT ENABLE_TESTCASES AND NOT ENABLE_ACL AND NOT ENABLE_GE)
|
||||
set(ENABLE_GLIBCXX ON)
|
||||
endif()
|
||||
|
||||
|
|
@ -76,7 +69,7 @@ if(NOT BUILD_PATH)
|
|||
set(BUILD_PATH "${CMAKE_SOURCE_DIR}/build")
|
||||
endif()
|
||||
|
||||
if(ENABLE_D)
|
||||
if(ENABLE_GE OR ENABLE_D)
|
||||
set(ENABLE_TDTQUE ON)
|
||||
endif()
|
||||
|
||||
|
|
@ -89,11 +82,17 @@ if(ENABLE_CPU)
|
|||
add_compile_definitions(ENABLE_CPU)
|
||||
endif()
|
||||
|
||||
if(ENABLE_D)
|
||||
add_compile_definitions(ENABLE_D)
|
||||
if(ENABLE_GE)
|
||||
add_compile_definitions(ENABLE_GE)
|
||||
add_compile_definitions(CUSTOM_OP)
|
||||
endif()
|
||||
|
||||
if(ENABLE_TRAIN)
|
||||
add_compile_definitions(ENABLE_TRAIN=1)
|
||||
else()
|
||||
add_compile_definitions(ENABLE_TRAIN=0)
|
||||
endif()
|
||||
|
||||
if(USE_GLOG)
|
||||
add_compile_definitions(USE_GLOG)
|
||||
endif()
|
||||
|
|
@ -114,11 +113,7 @@ if(ENABLE_LOAD_ANF_IR)
|
|||
add_compile_definitions(ENABLE_LOAD_ANF_IR)
|
||||
endif()
|
||||
|
||||
if(ENABLE_TESTCASES)
|
||||
add_compile_definitions(ENABLE_TEST)
|
||||
endif()
|
||||
|
||||
if(ENABLE_TESTCASES OR (NOT ENABLE_D))
|
||||
if(ENABLE_TESTCASES OR (NOT ENABLE_D AND NOT ENABLE_GE))
|
||||
add_compile_definitions(NO_DLIB=1)
|
||||
endif()
|
||||
|
||||
|
|
@ -155,15 +150,3 @@ endif()
|
|||
if(ENABLE_CPU AND NOT WIN32)
|
||||
add_compile_definitions(ENABLE_ARMOUR)
|
||||
endif()
|
||||
|
||||
if(ENABLE_AKG AND CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
add_compile_definitions(ENABLE_AKG)
|
||||
endif()
|
||||
|
||||
if(USE_LLVM)
|
||||
add_compile_definitions(USE_LLVM)
|
||||
endif()
|
||||
|
||||
if(USE_MS_THREADPOOL_FOR_DNNL)
|
||||
add_compile_definitions(USE_MS_THREADPOOL_FOR_DNNL)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -12,52 +12,30 @@ set(CPACK_TEMPORARY_PACKAGE_FILE_NAME ${BUILD_PATH}/package/mindspore)
|
|||
set(CPACK_TEMPORARY_INSTALL_DIRECTORY ${BUILD_PATH}/package/mindspore)
|
||||
set(CPACK_PACK_ROOT_DIR ${BUILD_PATH}/package/)
|
||||
set(CPACK_CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR})
|
||||
set(CPACK_ENABLE_SYM_FILE ${ENABLE_SYM_FILE})
|
||||
set(CPACK_CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE})
|
||||
set(CPACK_PYTHON_EXE ${Python3_EXECUTABLE})
|
||||
set(CPACK_PYTHON_VERSION ${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR})
|
||||
|
||||
if(ENABLE_GPU)
|
||||
if(ENABLE_GE)
|
||||
set(CPACK_MS_BACKEND "ge")
|
||||
set(CPACK_MS_TARGET "ascend or cpu")
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
elseif(ENABLE_GPU)
|
||||
set(CPACK_MS_BACKEND "ms")
|
||||
set(CPACK_MS_TARGET "gpu or cpu")
|
||||
if(BUILD_DEV_MODE)
|
||||
# providing cuda11 version of dev package only
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-cuda11-dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-gpu")
|
||||
endif()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-gpu")
|
||||
elseif(ENABLE_D)
|
||||
set(CPACK_MS_BACKEND "ms")
|
||||
set(CPACK_MS_TARGET "ascend or cpu")
|
||||
if(BUILD_DEV_MODE)
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-ascend-dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-ascend")
|
||||
endif()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-ascend")
|
||||
elseif(ENABLE_CPU)
|
||||
set(CPACK_MS_BACKEND "ms")
|
||||
set(CPACK_MS_TARGET "cpu")
|
||||
if(BUILD_DEV_MODE)
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
endif()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
elseif(ENABLE_ACL)
|
||||
set(CPACK_MS_BACKEND "debug")
|
||||
set(CPACK_MS_TARGET "ascend or gpu or cpu")
|
||||
if(BUILD_DEV_MODE)
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-ascend-dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-ascend")
|
||||
endif()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-ascend")
|
||||
else()
|
||||
set(CPACK_MS_BACKEND "debug")
|
||||
set(CPACK_MS_TARGET "ascend or gpu or cpu")
|
||||
if(BUILD_DEV_MODE)
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
endif()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
endif()
|
||||
include(CPack)
|
||||
|
||||
|
|
@ -75,13 +53,11 @@ install(
|
|||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
if(ENABLE_DEBUGGER)
|
||||
install(
|
||||
TARGETS _mindspore_offline_debug
|
||||
DESTINATION ${INSTALL_BASE_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
install(
|
||||
TARGETS _mindspore_offline_debug
|
||||
DESTINATION ${INSTALL_BASE_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS mindspore_shared_lib
|
||||
|
|
@ -90,7 +66,7 @@ install(
|
|||
)
|
||||
|
||||
install(
|
||||
TARGETS mindspore_core mindspore_common mindspore_backend
|
||||
TARGETS mindspore_gvar
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
|
@ -125,21 +101,30 @@ if(ENABLE_MINDDATA)
|
|||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_core.so.4.5.2
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_core.so.4.5 COMPONENT mindspore)
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgcodecs.so.4.5.2
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgcodecs.so.4.5 COMPONENT mindspore)
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgproc.so.4.5.2
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgproc.so.4.5 COMPONENT mindspore)
|
||||
if(PYTHON_VERSION MATCHES "3.8" OR PYTHON_VERSION MATCHES "3.7")
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_core.so.4.2.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_core.so.4.2 COMPONENT mindspore)
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgcodecs.so.4.2.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgcodecs.so.4.2 COMPONENT mindspore)
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgproc.so.4.2.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgproc.so.4.2 COMPONENT mindspore)
|
||||
elseif(PYTHON_VERSION MATCHES "3.9")
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_core.so.4.5.1
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_core.so.4.5 COMPONENT mindspore)
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgcodecs.so.4.5.1
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgcodecs.so.4.5 COMPONENT mindspore)
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgproc.so.4.5.1
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgproc.so.4.5 COMPONENT mindspore)
|
||||
endif()
|
||||
install(FILES ${tinyxml2_LIBPATH}/libtinyxml2.so.8.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libtinyxml2.so.8 COMPONENT mindspore)
|
||||
|
||||
install(FILES ${icu4c_LIBPATH}/libicuuc.so.69.1
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libicuuc.so.69 COMPONENT mindspore)
|
||||
install(FILES ${icu4c_LIBPATH}/libicudata.so.69.1
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libicudata.so.69 COMPONENT mindspore)
|
||||
install(FILES ${icu4c_LIBPATH}/libicui18n.so.69.1
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libicui18n.so.69 COMPONENT mindspore)
|
||||
install(FILES ${icu4c_LIBPATH}/libicuuc.so.67.1
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libicuuc.so.67 COMPONENT mindspore)
|
||||
install(FILES ${icu4c_LIBPATH}/libicudata.so.67.1
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libicudata.so.67 COMPONENT mindspore)
|
||||
install(FILES ${icu4c_LIBPATH}/libicui18n.so.67.1
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libicui18n.so.67 COMPONENT mindspore)
|
||||
endif()
|
||||
|
||||
if(ENABLE_CPU)
|
||||
|
|
@ -175,18 +160,6 @@ if(ENABLE_MPI)
|
|||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
install(
|
||||
TARGETS mpi_collective
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
if(ENABLE_D)
|
||||
install(
|
||||
TARGETS _ascend_mpi
|
||||
DESTINATION ${INSTALL_BASE_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
@ -197,36 +170,12 @@ if(ENABLE_GPU)
|
|||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
install(
|
||||
TARGETS nvidia_collective
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
install(FILES ${nccl_LIBPATH}/libnccl.so.2.7.6 DESTINATION ${INSTALL_LIB_DIR}
|
||||
RENAME libnccl.so.2 COMPONENT mindspore)
|
||||
endif()
|
||||
endif()
|
||||
install(
|
||||
TARGETS gpu_queue
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
install(
|
||||
TARGETS cuda_ops
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
|
||||
if(ENABLE_D)
|
||||
if(ENABLE_MPI)
|
||||
install(
|
||||
TARGETS ascend_collective
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(ENABLE_CPU AND NOT WIN32)
|
||||
|
|
@ -237,34 +186,50 @@ if(ENABLE_CPU AND NOT WIN32)
|
|||
)
|
||||
endif()
|
||||
|
||||
if(ENABLE_D OR ENABLE_ACL)
|
||||
if(DEFINED ENV{ASCEND_CUSTOM_PATH})
|
||||
set(ASCEND_PATH $ENV{ASCEND_CUSTOM_PATH})
|
||||
else()
|
||||
set(ASCEND_PATH /usr/local/Ascend)
|
||||
endif()
|
||||
set(ASCEND_DRIVER_PATH ${ASCEND_PATH}/driver/lib64/common)
|
||||
if(NOT ENABLE_GE)
|
||||
if(ENABLE_D OR ENABLE_ACL)
|
||||
if(DEFINED ENV{ASCEND_CUSTOM_PATH})
|
||||
set(ASCEND_PATH $ENV{ASCEND_CUSTOM_PATH})
|
||||
else()
|
||||
set(ASCEND_PATH /usr/local/Ascend)
|
||||
endif()
|
||||
set(ASCEND_DRIVER_PATH ${ASCEND_PATH}/driver/lib64/common)
|
||||
|
||||
if(ENABLE_D)
|
||||
if(ENABLE_D)
|
||||
install(
|
||||
TARGETS ms_profile
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS hccl_plugin
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
elseif(ENABLE_TESTCASES)
|
||||
install(
|
||||
TARGETS hccl_plugin
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
FILES
|
||||
${CMAKE_BINARY_DIR}/graphengine/metadef/graph/libgraph.so
|
||||
${BUILD_PATH}/graphengine/c_sec/lib/libc_sec.so
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(MS_BUILD_GRPC)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc++.so.1.36.1
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc++.so.1.27.3
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_grpc++.so.1 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc.so.15.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_grpc.so.15 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_gpr.so.15.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_gpr.so.15 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_upb.so.15.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_upb.so.15 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_address_sorting.so.15.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_address_sorting.so.15 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc.so.9.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_grpc.so.9 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_gpr.so.9.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_gpr.so.9 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_upb.so.9.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_upb.so.9 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_address_sorting.so.9.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_address_sorting.so.9 COMPONENT mindspore)
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
|
|
@ -283,16 +248,8 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|||
)
|
||||
endif()
|
||||
|
||||
if(ENABLE_CLOUD_AND_LITE)
|
||||
install(
|
||||
TARGETS mindspore-lite mslite_converter_plugin
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
|
||||
# set python files
|
||||
file(GLOB MS_PY_LIST ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/*.py)
|
||||
file(GLOB MS_PY_LIST ${CMAKE_SOURCE_DIR}/mindspore/*.py)
|
||||
install(
|
||||
FILES ${MS_PY_LIST}
|
||||
DESTINATION ${INSTALL_PY_DIR}
|
||||
|
|
@ -301,26 +258,24 @@ install(
|
|||
|
||||
install(
|
||||
DIRECTORY
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/nn
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/_extends
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/parallel
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/mindrecord
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/numpy
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/scipy
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/train
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/boost
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/common
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/ops
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/communication
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/profiler
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/compression
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/rewrite
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/run_check
|
||||
${CMAKE_SOURCE_DIR}/mindspore/nn
|
||||
${CMAKE_SOURCE_DIR}/mindspore/_extends
|
||||
${CMAKE_SOURCE_DIR}/mindspore/parallel
|
||||
${CMAKE_SOURCE_DIR}/mindspore/mindrecord
|
||||
${CMAKE_SOURCE_DIR}/mindspore/numpy
|
||||
${CMAKE_SOURCE_DIR}/mindspore/train
|
||||
${CMAKE_SOURCE_DIR}/mindspore/common
|
||||
${CMAKE_SOURCE_DIR}/mindspore/ops
|
||||
${CMAKE_SOURCE_DIR}/mindspore/communication
|
||||
${CMAKE_SOURCE_DIR}/mindspore/profiler
|
||||
${CMAKE_SOURCE_DIR}/mindspore/explainer
|
||||
${CMAKE_SOURCE_DIR}/mindspore/compression
|
||||
${CMAKE_SOURCE_DIR}/mindspore/run_check
|
||||
DESTINATION ${INSTALL_PY_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
if(ENABLE_AKG AND CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
if((ENABLE_D OR ENABLE_GPU) AND ENABLE_AKG)
|
||||
set (AKG_PATH ${BUILD_PATH}/mindspore/akg)
|
||||
file(REMOVE_RECURSE ${AKG_PATH}/_akg)
|
||||
file(MAKE_DIRECTORY ${AKG_PATH}/_akg)
|
||||
|
|
@ -334,9 +289,9 @@ if(ENABLE_AKG AND CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|||
)
|
||||
endif()
|
||||
|
||||
if(EXISTS ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/dataset)
|
||||
if(EXISTS ${CMAKE_SOURCE_DIR}/mindspore/dataset)
|
||||
install(
|
||||
DIRECTORY ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/dataset
|
||||
DIRECTORY ${CMAKE_SOURCE_DIR}/mindspore/dataset
|
||||
DESTINATION ${INSTALL_PY_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
|
@ -345,9 +300,9 @@ endif()
|
|||
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
message("offline debugger does not support windows system temporarily")
|
||||
else()
|
||||
if(EXISTS ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/offline_debug)
|
||||
if(EXISTS ${CMAKE_SOURCE_DIR}/mindspore/offline_debug)
|
||||
install(
|
||||
DIRECTORY ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/offline_debug
|
||||
DIRECTORY ${CMAKE_SOURCE_DIR}/mindspore/offline_debug
|
||||
DESTINATION ${INSTALL_PY_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
|
@ -375,14 +330,6 @@ install(
|
|||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
install(
|
||||
FILES
|
||||
${CMAKE_SOURCE_DIR}/mindspore/core/mindapi/base/format.h
|
||||
${CMAKE_SOURCE_DIR}/mindspore/core/mindapi/base/type_id.h
|
||||
${CMAKE_SOURCE_DIR}/mindspore/core/mindapi/base/types.h
|
||||
DESTINATION ${INSTALL_BASE_DIR}/include/mindapi/base
|
||||
COMPONENT mindspore)
|
||||
|
||||
## config files
|
||||
install(
|
||||
FILES ${CMAKE_SOURCE_DIR}/config/op_info.config
|
||||
|
|
|
|||
|
|
@ -11,239 +11,21 @@ set(TEST_CASE_DIR ${TOP_DIR}/mindspore/lite/test/build)
|
|||
set(RUNTIME_DIR ${RUNTIME_PKG_NAME}/runtime)
|
||||
set(RUNTIME_INC_DIR ${RUNTIME_PKG_NAME}/runtime/include)
|
||||
set(RUNTIME_LIB_DIR ${RUNTIME_PKG_NAME}/runtime/lib)
|
||||
set(PROVIDERS_LIB_DIR ${RUNTIME_PKG_NAME}/providers)
|
||||
set(MIND_DATA_INC_DIR ${RUNTIME_PKG_NAME}/runtime/include/dataset)
|
||||
set(TURBO_DIR ${RUNTIME_PKG_NAME}/runtime/third_party/libjpeg-turbo)
|
||||
set(GLOG_DIR ${RUNTIME_PKG_NAME}/runtime/third_party/glog)
|
||||
set(SECUREC_DIR ${RUNTIME_PKG_NAME}/runtime/third_party/securec)
|
||||
set(MINDSPORE_LITE_LIB_NAME libmindspore-lite)
|
||||
set(MINDSPORE_CORE_LIB_NAME libmindspore_core)
|
||||
set(BENCHMARK_NAME benchmark)
|
||||
set(MSLITE_NNIE_LIB_NAME libmslite_nnie)
|
||||
set(MSLITE_PROPOSAL_LIB_NAME libmslite_proposal)
|
||||
set(MICRO_NNIE_LIB_NAME libmicro_nnie)
|
||||
set(DPICO_ACL_ADAPTER_LIB_NAME libdpico_acl_adapter)
|
||||
set(BENCHMARK_ROOT_DIR ${RUNTIME_PKG_NAME}/tools/benchmark)
|
||||
set(MICRO_DIR ${TOP_DIR}/mindspore/lite/tools/converter/micro)
|
||||
|
||||
set(MINDSPORE_LITE_TRAIN_LIB_NAME libmindspore-lite-train)
|
||||
set(BENCHMARK_TRAIN_NAME benchmark_train)
|
||||
set(BENCHMARK_TRAIN_ROOT_DIR ${RUNTIME_PKG_NAME}/tools/benchmark_train)
|
||||
file(GLOB JPEGTURBO_LIB_LIST ${jpeg_turbo_LIBPATH}/*.so)
|
||||
|
||||
function(__install_white_list_ops)
|
||||
install(FILES
|
||||
${TOP_DIR}/mindspore/core/ops/abs.h
|
||||
${TOP_DIR}/mindspore/core/ops/adam.h
|
||||
${TOP_DIR}/mindspore/core/ops/addn.h
|
||||
${TOP_DIR}/mindspore/core/ops/all.h
|
||||
${TOP_DIR}/mindspore/core/ops/apply_momentum.h
|
||||
${TOP_DIR}/mindspore/core/ops/assert.h
|
||||
${TOP_DIR}/mindspore/core/ops/assign.h
|
||||
${TOP_DIR}/mindspore/core/ops/assign_add.h
|
||||
${TOP_DIR}/mindspore/core/ops/audio_spectrogram.h
|
||||
${TOP_DIR}/mindspore/core/ops/batch_norm.h
|
||||
${TOP_DIR}/mindspore/core/ops/batch_to_space.h
|
||||
${TOP_DIR}/mindspore/core/ops/batch_to_space_nd.h
|
||||
${TOP_DIR}/mindspore/core/ops/bias_add.h
|
||||
${TOP_DIR}/mindspore/core/ops/binary_cross_entropy.h
|
||||
${TOP_DIR}/mindspore/core/ops/broadcast.h
|
||||
${TOP_DIR}/mindspore/core/ops/cast.h
|
||||
${TOP_DIR}/mindspore/core/ops/ceil.h
|
||||
${TOP_DIR}/mindspore/core/ops/clip.h
|
||||
${TOP_DIR}/mindspore/core/ops/concat.h
|
||||
${TOP_DIR}/mindspore/core/ops/attention.h
|
||||
${TOP_DIR}/mindspore/core/ops/cos.h
|
||||
${TOP_DIR}/mindspore/core/ops/constant_of_shape.h
|
||||
${TOP_DIR}/mindspore/core/ops/crop.h
|
||||
${TOP_DIR}/mindspore/core/ops/custom_extract_features.h
|
||||
${TOP_DIR}/mindspore/core/ops/custom_normalize.h
|
||||
${TOP_DIR}/mindspore/core/ops/custom_predict.h
|
||||
${TOP_DIR}/mindspore/core/ops/depend.h
|
||||
${TOP_DIR}/mindspore/core/ops/depth_to_space.h
|
||||
${TOP_DIR}/mindspore/core/ops/detection_post_process.h
|
||||
${TOP_DIR}/mindspore/core/ops/dropout.h
|
||||
${TOP_DIR}/mindspore/core/ops/elu.h
|
||||
${TOP_DIR}/mindspore/core/ops/eltwise.h
|
||||
${TOP_DIR}/mindspore/core/ops/equal.h
|
||||
${TOP_DIR}/mindspore/core/ops/expand_dims.h
|
||||
${TOP_DIR}/mindspore/core/ops/fake_quant_with_min_max_vars.h
|
||||
${TOP_DIR}/mindspore/core/ops/fake_quant_with_min_max_vars_per_channel.h
|
||||
${TOP_DIR}/mindspore/core/ops/fake_quant_with_min_max_vars.h
|
||||
${TOP_DIR}/mindspore/core/ops/fft_real.h
|
||||
${TOP_DIR}/mindspore/core/ops/fft_imag.h
|
||||
${TOP_DIR}/mindspore/core/ops/flatten.h
|
||||
${TOP_DIR}/mindspore/core/ops/floor.h
|
||||
${TOP_DIR}/mindspore/core/ops/floor_div.h
|
||||
${TOP_DIR}/mindspore/core/ops/floor_mod.h
|
||||
${TOP_DIR}/mindspore/core/ops/fill.h
|
||||
${TOP_DIR}/mindspore/core/ops/fused_batch_norm.h
|
||||
${TOP_DIR}/mindspore/core/ops/gather.h
|
||||
${TOP_DIR}/mindspore/core/ops/gather_nd.h
|
||||
${TOP_DIR}/mindspore/core/ops/greater.h
|
||||
${TOP_DIR}/mindspore/core/ops/greater_equal.h
|
||||
${TOP_DIR}/mindspore/core/ops/hashtable_lookup.h
|
||||
${TOP_DIR}/mindspore/core/ops/instance_norm.h
|
||||
${TOP_DIR}/mindspore/core/ops/leaky_relu.h
|
||||
${TOP_DIR}/mindspore/core/ops/less.h
|
||||
${TOP_DIR}/mindspore/core/ops/less_equal.h
|
||||
${TOP_DIR}/mindspore/core/ops/log.h
|
||||
${TOP_DIR}/mindspore/core/ops/logical_and.h
|
||||
${TOP_DIR}/mindspore/core/ops/logical_not.h
|
||||
${TOP_DIR}/mindspore/core/ops/logical_or.h
|
||||
${TOP_DIR}/mindspore/core/ops/lp_normalization.h
|
||||
${TOP_DIR}/mindspore/core/ops/lrn.h
|
||||
${TOP_DIR}/mindspore/core/ops/lsh_projection.h
|
||||
${TOP_DIR}/mindspore/core/ops/lstm.h
|
||||
${TOP_DIR}/mindspore/core/ops/maximum.h
|
||||
${TOP_DIR}/mindspore/core/ops/switch_layer.h
|
||||
${TOP_DIR}/mindspore/core/ops/mfcc.h
|
||||
${TOP_DIR}/mindspore/core/ops/minimum.h
|
||||
${TOP_DIR}/mindspore/core/ops/mod.h
|
||||
${TOP_DIR}/mindspore/core/ops/neg.h
|
||||
${TOP_DIR}/mindspore/core/ops/not_equal.h
|
||||
${TOP_DIR}/mindspore/core/ops/non_max_suppression.h
|
||||
${TOP_DIR}/mindspore/core/ops/one_hot.h
|
||||
${TOP_DIR}/mindspore/core/ops/ones_like.h
|
||||
${TOP_DIR}/mindspore/core/ops/prior_box.h
|
||||
${TOP_DIR}/mindspore/core/ops/quant_dtype_cast.h
|
||||
${TOP_DIR}/mindspore/core/ops/rank.h
|
||||
${TOP_DIR}/mindspore/core/ops/range.h
|
||||
${TOP_DIR}/mindspore/core/ops/reciprocal.h
|
||||
${TOP_DIR}/mindspore/core/ops/real_div.h
|
||||
${TOP_DIR}/mindspore/core/ops/reshape.h
|
||||
${TOP_DIR}/mindspore/core/ops/resize.h
|
||||
${TOP_DIR}/mindspore/core/ops/reverse_sequence.h
|
||||
${TOP_DIR}/mindspore/core/ops/reverse_v2.h
|
||||
${TOP_DIR}/mindspore/core/ops/rfft.h
|
||||
${TOP_DIR}/mindspore/core/ops/roi_pooling.h
|
||||
${TOP_DIR}/mindspore/core/ops/round.h
|
||||
${TOP_DIR}/mindspore/core/ops/rsqrt.h
|
||||
${TOP_DIR}/mindspore/core/ops/scatter_nd.h
|
||||
${TOP_DIR}/mindspore/core/ops/sgd.h
|
||||
${TOP_DIR}/mindspore/core/ops/shape.h
|
||||
${TOP_DIR}/mindspore/core/ops/sigmoid_cross_entropy_with_logits.h
|
||||
${TOP_DIR}/mindspore/core/ops/sin.h
|
||||
${TOP_DIR}/mindspore/core/ops/skip_gram.h
|
||||
${TOP_DIR}/mindspore/core/ops/smooth_l1_loss.h
|
||||
${TOP_DIR}/mindspore/core/ops/softmax.h
|
||||
${TOP_DIR}/mindspore/core/ops/softmax_cross_entropy_with_logits.h
|
||||
${TOP_DIR}/mindspore/core/ops/space_to_batch.h
|
||||
${TOP_DIR}/mindspore/core/ops/space_to_batch_nd.h
|
||||
${TOP_DIR}/mindspore/core/ops/space_to_depth.h
|
||||
${TOP_DIR}/mindspore/core/ops/sparse_softmax_cross_entropy_with_logits.h
|
||||
${TOP_DIR}/mindspore/core/ops/sparse_to_dense.h
|
||||
${TOP_DIR}/mindspore/core/ops/split.h
|
||||
${TOP_DIR}/mindspore/core/ops/sqrt.h
|
||||
${TOP_DIR}/mindspore/core/ops/squeeze.h
|
||||
${TOP_DIR}/mindspore/core/ops/square.h
|
||||
${TOP_DIR}/mindspore/core/ops/squared_difference.h
|
||||
${TOP_DIR}/mindspore/core/ops/stack.h
|
||||
${TOP_DIR}/mindspore/core/ops/strided_slice.h
|
||||
${TOP_DIR}/mindspore/core/ops/switch.h
|
||||
${TOP_DIR}/mindspore/core/ops/tensor_list_from_tensor.h
|
||||
${TOP_DIR}/mindspore/core/ops/tensor_list_get_item.h
|
||||
${TOP_DIR}/mindspore/core/ops/tensor_list_reserve.h
|
||||
${TOP_DIR}/mindspore/core/ops/tensor_list_set_item.h
|
||||
${TOP_DIR}/mindspore/core/ops/tensor_list_stack.h
|
||||
${TOP_DIR}/mindspore/core/ops/transpose.h
|
||||
${TOP_DIR}/mindspore/core/ops/unique.h
|
||||
${TOP_DIR}/mindspore/core/ops/unsorted_segment_sum.h
|
||||
${TOP_DIR}/mindspore/core/ops/unsqueeze.h
|
||||
${TOP_DIR}/mindspore/core/ops/unstack.h
|
||||
${TOP_DIR}/mindspore/core/ops/where.h
|
||||
${TOP_DIR}/mindspore/core/ops/zeros_like.h
|
||||
${TOP_DIR}/mindspore/core/ops/select.h
|
||||
${TOP_DIR}/mindspore/core/ops/scatter_nd_update.h
|
||||
${TOP_DIR}/mindspore/core/ops/gru.h
|
||||
${TOP_DIR}/mindspore/core/ops/non_zero.h
|
||||
${TOP_DIR}/mindspore/core/ops/invert_permutation.h
|
||||
${TOP_DIR}/mindspore/core/ops/size.h
|
||||
${TOP_DIR}/mindspore/core/ops/random_standard_normal.h
|
||||
${TOP_DIR}/mindspore/core/ops/crop_and_resize.h
|
||||
${TOP_DIR}/mindspore/core/ops/erf.h
|
||||
${TOP_DIR}/mindspore/core/ops/is_finite.h
|
||||
${TOP_DIR}/mindspore/core/ops/lin_space.h
|
||||
${TOP_DIR}/mindspore/core/ops/uniform_real.h
|
||||
${TOP_DIR}/mindspore/core/ops/splice.h
|
||||
${TOP_DIR}/mindspore/core/ops/log_softmax.h
|
||||
${TOP_DIR}/mindspore/core/ops/call.h
|
||||
${TOP_DIR}/mindspore/core/ops/custom.h
|
||||
${TOP_DIR}/mindspore/core/ops/cumsum.h
|
||||
${TOP_DIR}/mindspore/core/ops/split_with_overlap.h
|
||||
${TOP_DIR}/mindspore/core/ops/ragged_range.h
|
||||
${TOP_DIR}/mindspore/core/ops/glu.h
|
||||
${TOP_DIR}/mindspore/core/ops/tensor_array.h
|
||||
${TOP_DIR}/mindspore/core/ops/tensor_array_read.h
|
||||
${TOP_DIR}/mindspore/core/ops/tensor_array_write.h
|
||||
${TOP_DIR}/mindspore/core/ops/affine.h
|
||||
${TOP_DIR}/mindspore/core/ops/all_gather.h
|
||||
${TOP_DIR}/mindspore/core/ops/reduce_scatter.h
|
||||
${TOP_DIR}/mindspore/core/ops/dynamic_quant.h
|
||||
${TOP_DIR}/mindspore/core/ops/random_normal.h
|
||||
${TOP_DIR}/mindspore/core/ops/nllloss.h
|
||||
${TOP_DIR}/mindspore/core/ops/op_name.h
|
||||
${TOP_DIR}/mindspore/core/ops/tuple_get_item.h
|
||||
${TOP_DIR}/mindspore/core/ops/add.h
|
||||
${TOP_DIR}/mindspore/core/ops/div.h
|
||||
${TOP_DIR}/mindspore/core/ops/mul.h
|
||||
${TOP_DIR}/mindspore/core/ops/tuple_get_item.h
|
||||
${TOP_DIR}/mindspore/core/ops/scale.h
|
||||
${TOP_DIR}/mindspore/core/ops/sub.h
|
||||
${TOP_DIR}/mindspore/core/ops/avg_pool.h
|
||||
${TOP_DIR}/mindspore/core/ops/exp.h
|
||||
${TOP_DIR}/mindspore/core/ops/conv2d_transpose.h
|
||||
${TOP_DIR}/mindspore/core/ops/conv2d.h
|
||||
${TOP_DIR}/mindspore/core/ops/pow.h
|
||||
${TOP_DIR}/mindspore/core/ops/topk.h
|
||||
${TOP_DIR}/mindspore/core/ops/reduce.h
|
||||
${TOP_DIR}/mindspore/core/ops/arg_max.h
|
||||
${TOP_DIR}/mindspore/core/ops/max_pool.h
|
||||
${TOP_DIR}/mindspore/core/ops/prelu.h
|
||||
${TOP_DIR}/mindspore/core/ops/tile.h
|
||||
${TOP_DIR}/mindspore/core/ops/make_tuple.h
|
||||
${TOP_DIR}/mindspore/core/ops/base_operator.h
|
||||
${TOP_DIR}/mindspore/core/ops/return.h
|
||||
${TOP_DIR}/mindspore/core/ops/pad.h
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include/core/ops
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME}
|
||||
)
|
||||
install(FILES
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/activation.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/add_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/adder_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/arg_max_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/arg_min_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/avg_pool_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/conv2d_backprop_filter_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/conv2d_backprop_input_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/conv2d_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/conv2d_transpose_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/div_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/embedding_lookup_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/exp_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/full_connection.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/layer_norm_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/l2_normalize_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/mat_mul_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/max_pool_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/mul_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/pad_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/partial_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/pow_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/prelu_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/reduce_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/scale_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/slice_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/sub_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/tile_fusion.h
|
||||
${TOP_DIR}/mindspore/core/ops/fusion/topk_fusion.h
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include/core/ops/fusion
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME}
|
||||
)
|
||||
endfunction()
|
||||
# full mode will also package the files of lite_cv mode.
|
||||
if(MSLITE_MINDDATA_IMPLEMENT STREQUAL "full")
|
||||
if(BUILD_MINDDATA STREQUAL "full")
|
||||
# full header files
|
||||
install(FILES
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/constants.h
|
||||
|
|
@ -290,7 +72,7 @@ if(MSLITE_MINDDATA_IMPLEMENT STREQUAL "full")
|
|||
DESTINATION ${MIND_DATA_INC_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
endif()
|
||||
|
||||
if(MSLITE_MINDDATA_IMPLEMENT STREQUAL "wrapper")
|
||||
if(BUILD_MINDDATA STREQUAL "wrapper")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/ DESTINATION ${MIND_DATA_INC_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "vision.h" EXCLUDE)
|
||||
if(PLATFORM_ARM64)
|
||||
|
|
@ -311,7 +93,7 @@ if(MSLITE_MINDDATA_IMPLEMENT STREQUAL "wrapper")
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(MSLITE_MINDDATA_IMPLEMENT STREQUAL "lite")
|
||||
if(BUILD_MINDDATA STREQUAL "lite")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/ DESTINATION ${MIND_DATA_INC_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
if(PLATFORM_ARM64)
|
||||
|
|
@ -338,7 +120,7 @@ if(MSLITE_MINDDATA_IMPLEMENT STREQUAL "lite")
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(MSLITE_MINDDATA_IMPLEMENT STREQUAL "lite_cv")
|
||||
if(BUILD_MINDDATA STREQUAL "lite_cv")
|
||||
if(PLATFORM_ARM64)
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/ccsrc/minddata/dataset/kernels/image/lite_cv
|
||||
DESTINATION ${MIND_DATA_INC_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
|
|
@ -368,7 +150,7 @@ function(__install_micro_wrapper)
|
|||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${NNACL_DIR}/intrinsics DESTINATION ${CODEGEN_ROOT_DIR}/include/nnacl
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${MICRO_DIR}/coder/wrapper DESTINATION ${CODEGEN_ROOT_DIR}/include
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/micro/coder/wrapper DESTINATION ${CODEGEN_ROOT_DIR}/include
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(TARGETS wrapper ARCHIVE DESTINATION ${CODEGEN_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endfunction()
|
||||
|
|
@ -383,6 +165,7 @@ function(__install_micro_codegen)
|
|||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(TARGETS cmsis_nn ARCHIVE DESTINATION ${CODEGEN_ROOT_DIR}/third_party/lib
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(TARGETS codegen RUNTIME DESTINATION ${CODEGEN_ROOT_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endfunction()
|
||||
|
||||
if(WIN32)
|
||||
|
|
@ -406,12 +189,9 @@ if(PLATFORM_ARM64)
|
|||
DESTINATION ${RUNTIME_DIR}/third_party/hiai_ddk/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/registry/ DESTINATION ${RUNTIME_INC_DIR}/registry
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "register_kernel_interface.h"
|
||||
PATTERN "register_kernel.h")
|
||||
if(SUPPORT_TRAIN)
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "registry*" EXCLUDE)
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "*registry.h" EXCLUDE)
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.so DESTINATION
|
||||
${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.a DESTINATION
|
||||
|
|
@ -419,7 +199,7 @@ if(PLATFORM_ARM64)
|
|||
else()
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "train*" EXCLUDE
|
||||
PATTERN "registry*" EXCLUDE)
|
||||
PATTERN "*registry.h" EXCLUDE)
|
||||
endif()
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/schema/model_generated.h DESTINATION ${RUNTIME_INC_DIR}/schema
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
|
|
@ -437,190 +217,19 @@ if(PLATFORM_ARM64)
|
|||
endif()
|
||||
install(FILES ${TOP_DIR}/mindspore/core/ir/dtype/type_id.h DESTINATION ${RUNTIME_INC_DIR}/ir/dtype
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/format.h
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/type_id.h
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/types.h
|
||||
DESTINATION ${RUNTIME_INC_DIR}/mindapi/base
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${TOP_DIR}/include/api/ DESTINATION ${RUNTIME_INC_DIR}/api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "ops*" EXCLUDE)
|
||||
install(DIRECTORY ${TOP_DIR}/include/c_api/ DESTINATION ${RUNTIME_INC_DIR}/c_api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
if(ANDROID_NDK_TOOLCHAIN_INCLUDED OR MSLITE_ENABLE_CONVERTER)
|
||||
__install_micro_wrapper()
|
||||
endif()
|
||||
if(MSLITE_ENABLE_RUNTIME_GLOG)
|
||||
install(FILES ${glog_LIBPATH}/libglog.so.0.4.0 DESTINATION ${GLOG_DIR} RENAME libglog.so.0
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
__install_micro_wrapper()
|
||||
if(MSLITE_ENABLE_TOOLS)
|
||||
if(NOT MSLITE_COMPILE_TWICE)
|
||||
install(TARGETS ${BENCHMARK_NAME} RUNTIME DESTINATION ${BENCHMARK_ROOT_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(TARGET_HIMIX)
|
||||
if(${MSLITE_REGISTRY_DEVICE} STREQUAL "Hi3559A")
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/benchmark/nnie/${MSLITE_NNIE_LIB_NAME}.so
|
||||
DESTINATION ${PROVIDERS_LIB_DIR}/${MSLITE_REGISTRY_DEVICE}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES
|
||||
${TOP_DIR}/mindspore/lite/build/tools/benchmark/nnie_proposal/${MSLITE_PROPOSAL_LIB_NAME}.so
|
||||
DESTINATION ${PROVIDERS_LIB_DIR}/${MSLITE_REGISTRY_DEVICE}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
elseif(TARGET_MIX210)
|
||||
if(${MSLITE_REGISTRY_DEVICE} STREQUAL "SD3403")
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/benchmark/dpico/${DPICO_ACL_ADAPTER_LIB_NAME}.so
|
||||
DESTINATION ${PROVIDERS_LIB_DIR}/${MSLITE_REGISTRY_DEVICE}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
install(TARGETS ${BENCHMARK_NAME} RUNTIME DESTINATION ${BENCHMARK_ROOT_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(SUPPORT_TRAIN)
|
||||
install(TARGETS ${BENCHMARK_TRAIN_NAME} RUNTIME DESTINATION ${BENCHMARK_TRAIN_ROOT_DIR} COMPONENT
|
||||
${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
if(MSLITE_ENABLE_CONVERTER)
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${CONVERTER_ROOT_DIR}/include
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h"
|
||||
PATTERN "train*" EXCLUDE PATTERN "delegate.h" EXCLUDE PATTERN "lite_session.h" EXCLUDE)
|
||||
install(FILES ${API_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${MINDAPI_BASE_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/mindapi/base
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${MINDAPI_IR_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/mindapi/ir
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${ABSTRACT_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/abstract
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${BASE_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/base
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${IR_DTYPE_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/ir/dtype
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${IR_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/ir
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
__install_white_list_ops()
|
||||
install(FILES ${UTILS_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/utils
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/build/schema/
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include/schema
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME}
|
||||
FILES_MATCHING PATTERN "*.h" PATTERN "schema_generated.h" EXCLUDE)
|
||||
install(DIRECTORY ${flatbuffers_INC}/ DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${glog_LIBPATH}/../include/glog/
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party/glog
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/third_party/securec/include/
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party/securec
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(TARGETS converter_lite RUNTIME DESTINATION ${CONVERTER_ROOT_DIR}/converter
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/converter/registry/libmslite_converter_plugin.so
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${glog_LIBPATH}/libglog.so.0.4.0 DESTINATION ${CONVERTER_ROOT_DIR}/lib RENAME libglog.so.0
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(TARGETS mindspore_core DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_core.so.4.5.2
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib RENAME libopencv_core.so.4.5
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgcodecs.so.4.5.2
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib RENAME libopencv_imgcodecs.so.4.5
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgproc.so.4.5.2
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib RENAME libopencv_imgproc.so.4.5
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
|
||||
if(MSLITE_ENABLE_ACL)
|
||||
set(LITE_ACL_DIR ${TOP_DIR}/mindspore/lite/build/tools/converter/adapter/acl)
|
||||
install(FILES ${LITE_ACL_DIR}/mindspore_shared_lib/libmindspore_shared_lib.so
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(MSLITE_ENABLE_RUNTIME_CONVERT)
|
||||
install(FILES ${LITE_ACL_DIR}/mindspore_shared_lib/libmindspore_shared_lib.so
|
||||
DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${glog_LIBPATH}/libglog.so.0.4.0 DESTINATION ${RUNTIME_LIB_DIR} RENAME libglog.so.0
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(TARGETS mindspore_core DESTINATION ${CONVERTER_ROOT_DIR}/lib
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
if(MSLITE_MINDDATA_IMPLEMENT STREQUAL "cloud" AND MSLITE_ENABLE_RUNTIME_CONVERT)
|
||||
file(GLOB DATA_ENGINE_LIB_LIST ${LITE_ACL_DIR}/_c_dataengine/*.so)
|
||||
file(GLOB DATA_RECORD_LIB_LIST ${LITE_ACL_DIR}/_c_mindrecord/*.so)
|
||||
install(FILES ${DATA_ENGINE_LIB_LIST}
|
||||
DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${DATA_RECORD_LIB_LIST}
|
||||
DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${jpeg_turbo_LIBPATH}/libjpeg.so.62.3.0
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libjpeg.so.62 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${jpeg_turbo_LIBPATH}/libturbojpeg.so.0.2.0
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libturbojpeg.so.0 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${tinyxml2_LIBPATH}/libtinyxml2.so.8.0.0
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libtinyxml2.so.8 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${icu4c_LIBPATH}/libicuuc.so.69.1
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libicuuc.so.69 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${icu4c_LIBPATH}/libicudata.so.69.1
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libicudata.so.69 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${icu4c_LIBPATH}/libicui18n.so.69.1
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libicui18n.so.69 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc++.so.1.36.1 DESTINATION ${RUNTIME_LIB_DIR}
|
||||
RENAME libmindspore_grpc++.so.1 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc.so.15.0.0 DESTINATION
|
||||
${RUNTIME_LIB_DIR} RENAME libmindspore_grpc.so.15 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_gpr.so.15.0.0 DESTINATION
|
||||
${RUNTIME_LIB_DIR} RENAME libmindspore_gpr.so.15 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_upb.so.15.0.0 DESTINATION
|
||||
${RUNTIME_LIB_DIR} RENAME libmindspore_upb.so.15 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_address_sorting.so.15.0.0 DESTINATION ${RUNTIME_LIB_DIR}
|
||||
RENAME libmindspore_address_sorting.so.15 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
## Public header files for minddata
|
||||
install(
|
||||
FILES ${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/config.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/constants.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/execute.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/text.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/transforms.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/vision.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/vision_lite.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/vision_ascend.h
|
||||
DESTINATION ${RUNTIME_INC_DIR}/dataset COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(MSLITE_ENABLE_DPICO_ATC_ADAPTER)
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/converter/adapter/dpico/libdpico_atc_adapter.so
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/providers/SD3403 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(MSLITE_ENABLE_TOOLS)
|
||||
install(TARGETS ${BECHCHMARK_NAME} RUNTIME DESTINATION ${BENCHMARK_ROOT_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(MSLITE_ENABLE_RUNTIME_GLOG)
|
||||
install(DIRECTORY ${glog_LIBPATH}/../include/glog/ DESTINATION ${RUNTIME_INC_DIR}/third_party/glog
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(FILES ${glog_LIBPATH}/libglog.so.0.4.0 DESTINATION ${GLOG_DIR} RENAME libglog.so.0
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
if(MSLITE_ENABLE_RUNTIME_CONVERT)
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/converter/registry/libmslite_converter_plugin.so
|
||||
DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_core.so.4.5.2
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libopencv_core.so.4.5
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgcodecs.so.4.5.2
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libopencv_imgcodecs.so.4.5
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgproc.so.4.5.2
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libopencv_imgproc.so.4.5
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
if(MSLITE_ENABLE_TESTCASES)
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/test/lite-test DESTINATION ${TEST_CASE_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/build/src/ DESTINATION ${TEST_CASE_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.so")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/build/minddata/ DESTINATION ${TEST_CASE_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.so")
|
||||
install(FILES ${JPEGTURBO_LIB_LIST} DESTINATION ${TEST_CASE_DIR})
|
||||
|
|
@ -650,12 +259,9 @@ elseif(PLATFORM_ARM32)
|
|||
DESTINATION ${RUNTIME_DIR}/third_party/hiai_ddk/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/registry/ DESTINATION ${RUNTIME_INC_DIR}/registry
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "register_kernel_interface.h"
|
||||
PATTERN "register_kernel.h")
|
||||
if(SUPPORT_TRAIN)
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "registry*" EXCLUDE)
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "*registry.h" EXCLUDE)
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.so DESTINATION
|
||||
${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.a DESTINATION
|
||||
|
|
@ -663,7 +269,7 @@ elseif(PLATFORM_ARM32)
|
|||
else()
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "train*" EXCLUDE
|
||||
PATTERN "registry*" EXCLUDE)
|
||||
PATTERN "*registry.h" EXCLUDE)
|
||||
endif()
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/schema/model_generated.h DESTINATION ${RUNTIME_INC_DIR}/schema
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
|
|
@ -681,41 +287,11 @@ elseif(PLATFORM_ARM32)
|
|||
endif()
|
||||
install(FILES ${TOP_DIR}/mindspore/core/ir/dtype/type_id.h DESTINATION ${RUNTIME_INC_DIR}/ir/dtype
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/format.h
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/type_id.h
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/types.h
|
||||
DESTINATION ${RUNTIME_INC_DIR}/mindapi/base
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${TOP_DIR}/include/api/ DESTINATION ${RUNTIME_INC_DIR}/api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "ops*" EXCLUDE)
|
||||
install(DIRECTORY ${TOP_DIR}/include/c_api/ DESTINATION ${RUNTIME_INC_DIR}/c_api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
if(ANDROID_NDK_TOOLCHAIN_INCLUDED OR MSLITE_ENABLE_CONVERTER)
|
||||
__install_micro_wrapper()
|
||||
endif()
|
||||
__install_micro_wrapper()
|
||||
if(MSLITE_ENABLE_TOOLS AND NOT TARGET_OHOS_LITE)
|
||||
if(NOT MSLITE_COMPILE_TWICE)
|
||||
install(TARGETS ${BENCHMARK_NAME} RUNTIME
|
||||
DESTINATION ${BENCHMARK_ROOT_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(TARGET_HIMIX)
|
||||
if(${MSLITE_REGISTRY_DEVICE} STREQUAL "Hi3516D" OR ${MSLITE_REGISTRY_DEVICE} STREQUAL "Hi3519A")
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/benchmark/nnie/${MSLITE_NNIE_LIB_NAME}.so
|
||||
DESTINATION ${PROVIDERS_LIB_DIR}/${MSLITE_REGISTRY_DEVICE}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES
|
||||
${TOP_DIR}/mindspore/lite/build/tools/benchmark/nnie_proposal/${MSLITE_PROPOSAL_LIB_NAME}.so
|
||||
DESTINATION ${PROVIDERS_LIB_DIR}/${MSLITE_REGISTRY_DEVICE}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(${MSLITE_REGISTRY_DEVICE} STREQUAL "Hi3516D")
|
||||
install(FILES
|
||||
${TOP_DIR}/mindspore/lite/providers/nnie/third_patry/${MICRO_NNIE_LIB_NAME}.so
|
||||
DESTINATION ${PROVIDERS_LIB_DIR}/${MSLITE_REGISTRY_DEVICE}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
install(TARGETS ${BENCHMARK_NAME} RUNTIME DESTINATION ${BENCHMARK_ROOT_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(SUPPORT_TRAIN)
|
||||
install(TARGETS ${BENCHMARK_TRAIN_NAME} RUNTIME DESTINATION ${BENCHMARK_TRAIN_ROOT_DIR} COMPONENT
|
||||
${RUNTIME_COMPONENT_NAME})
|
||||
|
|
@ -726,24 +302,61 @@ elseif(WIN32)
|
|||
file(GLOB LIB_LIST ${CXX_DIR}/libstdc++-6.dll ${CXX_DIR}/libwinpthread-1.dll
|
||||
${CXX_DIR}/libssp-0.dll ${CXX_DIR}/libgcc_s_*-1.dll)
|
||||
if(MSLITE_ENABLE_CONVERTER)
|
||||
install(FILES ${TOP_DIR}/build/mindspore/tools/converter/converter_lite.exe
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/converter COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(TARGETS converter_lite RUNTIME DESTINATION ${CONVERTER_ROOT_DIR}/converter
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${CONVERTER_ROOT_DIR}/include
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h"
|
||||
PATTERN "train*" EXCLUDE PATTERN "delegate.h" EXCLUDE PATTERN "lite_session.h" EXCLUDE)
|
||||
install(FILES ${LIB_LIST} DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/build/mindspore/tools/converter/registry/libmslite_converter_plugin.dll
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${glog_LIBPATH}/../bin/libglog.dll DESTINATION ${CONVERTER_ROOT_DIR}/lib
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(TARGETS mindspore_core DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
file(GLOB_RECURSE OPENCV_LIB_LIST
|
||||
${opencv_LIBPATH}/../bin/libopencv_core*
|
||||
${opencv_LIBPATH}/../bin/libopencv_imgcodecs*
|
||||
${opencv_LIBPATH}/../bin/libopencv_imgproc*
|
||||
)
|
||||
install(FILES ${OPENCV_LIB_LIST} DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(NOT MSVC)
|
||||
__install_micro_wrapper()
|
||||
__install_micro_codegen()
|
||||
endif()
|
||||
install(DIRECTORY ${TOP_DIR}/include/api/ DESTINATION ${CONVERTER_ROOT_DIR}/include/api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "ops*" EXCLUDE)
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/api/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/abstract/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/abstract
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/base/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/base
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/ir/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/ir
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/ops/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/ops
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/utils/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/utils
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(FILES ${TOP_DIR}/mindspore/ccsrc/backend/optimizer/common/pass.h
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/tools/converter/model_parser.h
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/tools/converter/dump_graph.h
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/tools/converter/ops/ops_def.h
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${TOP_DIR}/build/mindspore/schema/ DESTINATION ${CONVERTER_ROOT_DIR}/include/schema
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${flatbuffers_INC}/ DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${glog_LIBPATH}/../include/glog/ DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party/glog
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/third_party/securec/include/
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party/securec
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${protobuf_INC}/google DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${eigen3_INC}/eigen3 DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/build/mindspore/tools/converter/mindspore_core/${MINDSPORE_CORE_LIB_NAME}.a
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/build/mindspore/tools/converter/mindspore_core/gvar/libmindspore_gvar.a
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/build/mindspore/securec/src/libsecurec.a DESTINATION ${CONVERTER_ROOT_DIR}/lib
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${protobuf_LIBPATH}/libprotobuf.a DESTINATION ${CONVERTER_ROOT_DIR}/lib
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
__install_micro_wrapper()
|
||||
__install_micro_codegen()
|
||||
endif()
|
||||
if(MSLITE_ENABLE_TOOLS)
|
||||
if(MSVC)
|
||||
|
|
@ -758,16 +371,13 @@ elseif(WIN32)
|
|||
${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/registry/ DESTINATION ${RUNTIME_INC_DIR}/registry
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "register_kernel_interface.h"
|
||||
PATTERN "register_kernel.h")
|
||||
if(SUPPORT_TRAIN)
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "registry*" EXCLUDE)
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "*registry.h" EXCLUDE)
|
||||
else()
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "train*" EXCLUDE
|
||||
PATTERN "registry*" EXCLUDE)
|
||||
PATTERN "*registry.h" EXCLUDE)
|
||||
endif()
|
||||
install(FILES ${TOP_DIR}/build/mindspore/schema/model_generated.h DESTINATION ${RUNTIME_INC_DIR}/schema
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
|
|
@ -777,16 +387,8 @@ elseif(WIN32)
|
|||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/core/ir/dtype/type_id.h DESTINATION ${RUNTIME_INC_DIR}/ir/dtype
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/format.h
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/type_id.h
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/types.h
|
||||
DESTINATION ${RUNTIME_INC_DIR}/mindapi/base
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${TOP_DIR}/include/api/ DESTINATION ${RUNTIME_INC_DIR}/api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "ops*" EXCLUDE)
|
||||
install(DIRECTORY ${TOP_DIR}/include/c_api/ DESTINATION ${RUNTIME_INC_DIR}/c_api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
if(MSVC)
|
||||
install(FILES ${TOP_DIR}/build/mindspore/src/${MINDSPORE_LITE_LIB_NAME}.lib DESTINATION ${RUNTIME_LIB_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
|
|
@ -804,12 +406,10 @@ elseif(WIN32)
|
|||
install(FILES ${LIB_LIST} DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
else()
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/registry/ DESTINATION ${RUNTIME_INC_DIR}/registry
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "register_kernel_interface.h"
|
||||
PATTERN "register_kernel.h")
|
||||
if(SUPPORT_TRAIN)
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "registry*" EXCLUDE)
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "*registry.h" EXCLUDE
|
||||
PATTERN "framework.h" EXCLUDE)
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.so DESTINATION
|
||||
${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.a DESTINATION
|
||||
|
|
@ -817,7 +417,7 @@ else()
|
|||
else()
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "train*" EXCLUDE
|
||||
PATTERN "registry*" EXCLUDE)
|
||||
PATTERN "*registry.h" EXCLUDE PATTERN "framework.h" EXCLUDE)
|
||||
endif()
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/schema/model_generated.h DESTINATION ${RUNTIME_INC_DIR}/schema
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
|
|
@ -827,16 +427,8 @@ else()
|
|||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/core/ir/dtype/type_id.h DESTINATION ${RUNTIME_INC_DIR}/ir/dtype
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/format.h
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/type_id.h
|
||||
${TOP_DIR}/mindspore/core/mindapi/base/types.h
|
||||
DESTINATION ${RUNTIME_INC_DIR}/mindapi/base
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${TOP_DIR}/include/api/ DESTINATION ${RUNTIME_INC_DIR}/api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "ops*" EXCLUDE)
|
||||
install(DIRECTORY ${TOP_DIR}/include/c_api/ DESTINATION ${RUNTIME_INC_DIR}/c_api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_LIB_NAME}.so DESTINATION ${RUNTIME_LIB_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_LIB_NAME}.a DESTINATION ${RUNTIME_LIB_DIR}
|
||||
|
|
@ -848,33 +440,34 @@ else()
|
|||
install(FILES ${TOP_DIR}/mindspore/lite/tools/obfuscator/lib/linux-x64/libmsdeobfuscator-lite.so
|
||||
DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
if(MSLITE_ENABLE_RUNTIME_GLOG)
|
||||
install(FILES ${glog_LIBPATH}/libglog.so.0.4.0 DESTINATION ${GLOG_DIR} RENAME libglog.so.0
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
if(MSLITE_ENABLE_CONVERTER)
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${CONVERTER_ROOT_DIR}/include
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h"
|
||||
PATTERN "train*" EXCLUDE PATTERN "delegate.h" EXCLUDE PATTERN "lite_session.h" EXCLUDE)
|
||||
install(FILES ${API_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${MINDAPI_BASE_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/mindapi/base
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${MINDAPI_IR_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/mindapi/ir
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${ABSTRACT_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/abstract
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${BASE_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/base
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${IR_DTYPE_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/ir/dtype
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${IR_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/ir
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
__install_white_list_ops()
|
||||
install(FILES ${UTILS_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/utils
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${TOP_DIR}/include/api/ DESTINATION ${CONVERTER_ROOT_DIR}/include/api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "ops*" EXCLUDE)
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/api/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/api
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/abstract/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/abstract
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/base/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/base
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/ir/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/ir
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/ops/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/ops
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/core/utils/ DESTINATION ${CONVERTER_ROOT_DIR}/include/core/utils
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(FILES ${TOP_DIR}/mindspore/ccsrc/backend/optimizer/common/pass.h
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/tools/converter/model_parser.h
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/tools/converter/dump_graph.h
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/tools/converter/ops/ops_def.h
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${TOP_DIR}/mindspore/lite/build/schema/ DESTINATION ${CONVERTER_ROOT_DIR}/include/schema
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "schema_generated.h" EXCLUDE)
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${flatbuffers_INC}/ DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${glog_LIBPATH}/../include/glog/ DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party/glog
|
||||
|
|
@ -882,114 +475,37 @@ else()
|
|||
install(DIRECTORY ${TOP_DIR}/third_party/securec/include/
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party/securec
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(DIRECTORY ${protobuf_INC}/google DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${openssl_INC}/openssl DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(DIRECTORY ${eigen3_INC}/eigen3 DESTINATION ${CONVERTER_ROOT_DIR}/include/third_party
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/converter/mindspore_core/${MINDSPORE_CORE_LIB_NAME}.a
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/converter/mindspore_core/gvar/libmindspore_gvar.a
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/securec/src/libsecurec.a DESTINATION ${CONVERTER_ROOT_DIR}/lib
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${protobuf_LIBPATH}/libprotobuf.a DESTINATION ${CONVERTER_ROOT_DIR}/lib
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${openssl_LIBPATH}/libcrypto.a DESTINATION ${CONVERTER_ROOT_DIR}/lib
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(TARGETS converter_lite RUNTIME DESTINATION ${CONVERTER_ROOT_DIR}/converter
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/converter/registry/libmslite_converter_plugin.so
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${glog_LIBPATH}/libglog.so.0.4.0 DESTINATION ${CONVERTER_ROOT_DIR}/lib RENAME libglog.so.0
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(TARGETS mindspore_core DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_core.so.4.5.2
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib RENAME libopencv_core.so.4.5
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgcodecs.so.4.5.2
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib RENAME libopencv_imgcodecs.so.4.5
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgproc.so.4.5.2
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib RENAME libopencv_imgproc.so.4.5
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
|
||||
if(MSLITE_ENABLE_ACL)
|
||||
set(LITE_ACL_DIR ${TOP_DIR}/mindspore/lite/build/tools/converter/adapter/acl)
|
||||
install(FILES ${LITE_ACL_DIR}/mindspore_shared_lib/libmindspore_shared_lib.so
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(MSLITE_ENABLE_RUNTIME_CONVERT)
|
||||
install(FILES ${LITE_ACL_DIR}/mindspore_shared_lib/libmindspore_shared_lib.so
|
||||
DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${glog_LIBPATH}/libglog.so.0.4.0 DESTINATION ${RUNTIME_LIB_DIR} RENAME libglog.so.0
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(TARGETS mindspore_core DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
if(MSLITE_MINDDATA_IMPLEMENT STREQUAL "cloud" AND MSLITE_ENABLE_RUNTIME_CONVERT)
|
||||
file(GLOB DATA_ENGINE_LIB_LIST ${LITE_ACL_DIR}/_c_dataengine/*.so)
|
||||
file(GLOB DATA_RECORD_LIB_LIST ${LITE_ACL_DIR}/_c_mindrecord/*.so)
|
||||
install(FILES ${DATA_ENGINE_LIB_LIST}
|
||||
DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${DATA_RECORD_LIB_LIST}
|
||||
DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${jpeg_turbo_LIBPATH}/libjpeg.so.62.3.0
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libjpeg.so.62 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${jpeg_turbo_LIBPATH}/libturbojpeg.so.0.2.0
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libturbojpeg.so.0 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${tinyxml2_LIBPATH}/libtinyxml2.so.8.0.0
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libtinyxml2.so.8 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${icu4c_LIBPATH}/libicuuc.so.69.1
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libicuuc.so.69 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${icu4c_LIBPATH}/libicudata.so.69.1
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libicudata.so.69 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${icu4c_LIBPATH}/libicui18n.so.69.1
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libicui18n.so.69 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc++.so.1.36.1 DESTINATION ${RUNTIME_LIB_DIR}
|
||||
RENAME libmindspore_grpc++.so.1 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc.so.15.0.0 DESTINATION
|
||||
${RUNTIME_LIB_DIR} RENAME libmindspore_grpc.so.15 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_gpr.so.15.0.0 DESTINATION
|
||||
${RUNTIME_LIB_DIR} RENAME libmindspore_gpr.so.15 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_upb.so.15.0.0 DESTINATION
|
||||
${RUNTIME_LIB_DIR} RENAME libmindspore_upb.so.15 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_address_sorting.so.15.0.0 DESTINATION ${RUNTIME_LIB_DIR}
|
||||
RENAME libmindspore_address_sorting.so.15 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
## Public header files for minddata
|
||||
install(
|
||||
FILES ${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/config.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/constants.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/execute.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/text.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/transforms.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/vision.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/vision_lite.h
|
||||
${TOP_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/vision_ascend.h
|
||||
DESTINATION ${RUNTIME_INC_DIR}/dataset COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(MSLITE_ENABLE_DPICO_ATC_ADAPTER)
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/converter/adapter/dpico/libdpico_atc_adapter.so
|
||||
DESTINATION ${CONVERTER_ROOT_DIR}/providers/SD3403 COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(MSLITE_ENABLE_TOOLS)
|
||||
install(TARGETS ${BECHCHMARK_NAME} RUNTIME DESTINATION ${BENCHMARK_ROOT_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(MSLITE_ENABLE_RUNTIME_GLOG)
|
||||
install(DIRECTORY ${glog_LIBPATH}/../include/glog/ DESTINATION ${RUNTIME_INC_DIR}/third_party/glog
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h")
|
||||
install(FILES ${glog_LIBPATH}/libglog.so.0.4.0 DESTINATION ${GLOG_DIR} RENAME libglog.so.0
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
if(MSLITE_ENABLE_RUNTIME_CONVERT)
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/converter/registry/libmslite_converter_plugin.so
|
||||
DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_core.so.4.5.2
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libopencv_core.so.4.5
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgcodecs.so.4.5.2
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libopencv_imgcodecs.so.4.5
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgproc.so.4.5.2
|
||||
DESTINATION ${RUNTIME_LIB_DIR} RENAME libopencv_imgproc.so.4.5
|
||||
if(MSLITE_ENABLE_NNIE)
|
||||
install(FILES ${glog_LIBPATH}/libglog.so.0.4.0 DESTINATION ${CONVERTER_ROOT_DIR}/lib RENAME libglog.so
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
__install_micro_wrapper()
|
||||
__install_micro_codegen()
|
||||
endif()
|
||||
if(MSLITE_ENABLE_TOOLS)
|
||||
if(NOT MSLITE_COMPILE_TWICE)
|
||||
install(TARGETS ${BENCHMARK_NAME} RUNTIME DESTINATION ${BENCHMARK_ROOT_DIR}
|
||||
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
install(TARGETS ${BENCHMARK_NAME} RUNTIME DESTINATION ${BENCHMARK_ROOT_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(SUPPORT_TRAIN)
|
||||
install(TARGETS ${BENCHMARK_TRAIN_NAME} RUNTIME DESTINATION ${BENCHMARK_TRAIN_ROOT_DIR} COMPONENT
|
||||
${RUNTIME_COMPONENT_NAME})
|
||||
|
|
@ -1001,10 +517,6 @@ else()
|
|||
DESTINATION ${CROPPER_ROOT_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/cropper/cropper_mapping_npu.cfg
|
||||
DESTINATION ${CROPPER_ROOT_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
if(SUPPORT_TRAIN)
|
||||
install(FILES ${TOP_DIR}/mindspore/lite/build/tools/cropper/cropper_mapping_cpu_train.cfg
|
||||
DESTINATION ${CROPPER_ROOT_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
|
|||
|
|
@ -1,249 +0,0 @@
|
|||
# include dependency
|
||||
include(CMakePackageConfigHelpers)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
# set package information
|
||||
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
|
||||
set(CPACK_GENERATOR "External")
|
||||
set(CPACK_CMAKE_GENERATOR "Ninja")
|
||||
set(CPACK_EXTERNAL_PACKAGE_SCRIPT ${CMAKE_SOURCE_DIR}/cmake/package_script.cmake)
|
||||
set(CPACK_EXTERNAL_ENABLE_STAGING true)
|
||||
set(CPACK_TEMPORARY_PACKAGE_FILE_NAME ${BUILD_PATH}/package/mindspore)
|
||||
set(CPACK_TEMPORARY_INSTALL_DIRECTORY ${BUILD_PATH}/package/mindspore)
|
||||
set(CPACK_PACK_ROOT_DIR ${BUILD_PATH}/package/)
|
||||
set(CPACK_CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR})
|
||||
set(CPACK_ENABLE_SYM_FILE ${ENABLE_SYM_FILE})
|
||||
set(CPACK_CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE})
|
||||
set(CPACK_PYTHON_EXE ${Python3_EXECUTABLE})
|
||||
set(CPACK_PYTHON_VERSION ${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR})
|
||||
set(CPACK_OSX_DEPLOYMENT_TARGET ${CMAKE_OSX_DEPLOYMENT_TARGET})
|
||||
|
||||
|
||||
if(ENABLE_CPU)
|
||||
set(CPACK_MS_BACKEND "ms")
|
||||
set(CPACK_MS_TARGET "cpu")
|
||||
if(BUILD_DEV_MODE)
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
endif()
|
||||
else()
|
||||
set(CPACK_MS_BACKEND "debug")
|
||||
set(CPACK_MS_TARGET "ascend or gpu or cpu")
|
||||
if(BUILD_DEV_MODE)
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
endif()
|
||||
endif()
|
||||
include(CPack)
|
||||
|
||||
# set install path
|
||||
set(INSTALL_LIB_DIR ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Installation directory for libraries")
|
||||
set(INSTALL_PY_DIR ".")
|
||||
set(INSTALL_BASE_DIR ".")
|
||||
set(INSTALL_BIN_DIR "bin")
|
||||
set(INSTALL_CFG_DIR "config")
|
||||
set(INSTALL_LIB_DIR "lib")
|
||||
# set package files
|
||||
install(
|
||||
TARGETS _c_expression
|
||||
DESTINATION ${INSTALL_BASE_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
if(ENABLE_DEBUGGER)
|
||||
install(
|
||||
TARGETS _mindspore_offline_debug
|
||||
DESTINATION ${INSTALL_BASE_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
|
||||
install(
|
||||
TARGETS mindspore_shared_lib
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
install(
|
||||
TARGETS mindspore_core mindspore_common mindspore_backend
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
if(USE_GLOG)
|
||||
install(FILES ${glog_LIBPATH}/libmindspore_glog.0.4.0.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_glog.0.dylib COMPONENT mindspore)
|
||||
endif()
|
||||
|
||||
install(FILES ${libevent_LIBPATH}/libevent-2.1.7.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} COMPONENT mindspore)
|
||||
install(FILES ${libevent_LIBPATH}/libevent_core-2.1.7.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} COMPONENT mindspore)
|
||||
install(FILES ${libevent_LIBPATH}/libevent_extra-2.1.7.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} COMPONENT mindspore)
|
||||
install(FILES ${libevent_LIBPATH}/libevent_openssl-2.1.7.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} COMPONENT mindspore)
|
||||
install(FILES ${libevent_LIBPATH}/libevent_pthreads-2.1.7.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} COMPONENT mindspore)
|
||||
|
||||
if(ENABLE_CPU AND NOT WIN32)
|
||||
install(
|
||||
TARGETS ps_cache
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
|
||||
if(MS_BUILD_GRPC)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc++.1.36.1.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_grpc++.1.dylib COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc.15.0.0.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_grpc.15.dylib COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_gpr.15.0.0.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_gpr.15.dylib COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_upb.15.0.0.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_upb.15.dylib COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_address_sorting.15.0.0.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_address_sorting.15.dylib COMPONENT mindspore)
|
||||
endif()
|
||||
|
||||
if(ENABLE_MINDDATA)
|
||||
install(
|
||||
TARGETS _c_dataengine _c_mindrecord
|
||||
DESTINATION ${INSTALL_BASE_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_core.4.5.2.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_core.4.5.dylib COMPONENT mindspore)
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgcodecs.4.5.2.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgcodecs.4.5.dylib COMPONENT mindspore)
|
||||
install(FILES ${opencv_LIBPATH}/libopencv_imgproc.4.5.2.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgproc.4.5.dylib COMPONENT mindspore)
|
||||
install(FILES ${tinyxml2_LIBPATH}/libtinyxml2.8.0.0.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libtinyxml2.8.dylib COMPONENT mindspore)
|
||||
|
||||
install(FILES ${icu4c_LIBPATH}/libicuuc.69.1.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libicuuc.69.dylib COMPONENT mindspore)
|
||||
install(FILES ${icu4c_LIBPATH}/libicudata.69.1.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libicudata.69.dylib COMPONENT mindspore)
|
||||
install(FILES ${icu4c_LIBPATH}/libicui18n.69.1.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libicui18n.69.dylib COMPONENT mindspore)
|
||||
endif()
|
||||
|
||||
if(ENABLE_CPU)
|
||||
install(FILES ${onednn_LIBPATH}/libdnnl.2.2.dylib
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libdnnl.2.dylib COMPONENT mindspore)
|
||||
install(
|
||||
TARGETS nnacl
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
|
||||
if(ENABLE_MPI)
|
||||
if(ENABLE_GPU)
|
||||
install(
|
||||
TARGETS _ms_mpi
|
||||
DESTINATION ${INSTALL_BASE_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
if(ENABLE_CPU)
|
||||
install(
|
||||
TARGETS mpi_adapter
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(ENABLE_GPU)
|
||||
if(ENABLE_MPI)
|
||||
install(
|
||||
TARGETS gpu_collective
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
install(
|
||||
TARGETS gpu_queue
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
|
||||
# set python files
|
||||
file(GLOB MS_PY_LIST ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/*.py)
|
||||
install(
|
||||
FILES ${MS_PY_LIST}
|
||||
DESTINATION ${INSTALL_PY_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
install(
|
||||
DIRECTORY
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/nn
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/_extends
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/parallel
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/mindrecord
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/numpy
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/scipy
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/train
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/boost
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/common
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/ops
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/communication
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/profiler
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/compression
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/rewrite
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/run_check
|
||||
DESTINATION ${INSTALL_PY_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
if(EXISTS ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/dataset)
|
||||
install(
|
||||
DIRECTORY ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/dataset
|
||||
DESTINATION ${INSTALL_PY_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
|
||||
if(EXISTS ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/offline_debug)
|
||||
install(
|
||||
DIRECTORY ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/offline_debug
|
||||
DESTINATION ${INSTALL_PY_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
|
||||
## Public header files
|
||||
install(
|
||||
DIRECTORY ${CMAKE_SOURCE_DIR}/include
|
||||
DESTINATION ${INSTALL_BASE_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
## Public header files for minddata
|
||||
install(
|
||||
FILES ${CMAKE_SOURCE_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/config.h
|
||||
${CMAKE_SOURCE_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/constants.h
|
||||
${CMAKE_SOURCE_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/execute.h
|
||||
${CMAKE_SOURCE_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/text.h
|
||||
${CMAKE_SOURCE_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/transforms.h
|
||||
${CMAKE_SOURCE_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/vision.h
|
||||
${CMAKE_SOURCE_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/vision_lite.h
|
||||
${CMAKE_SOURCE_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/vision_ascend.h
|
||||
DESTINATION ${INSTALL_BASE_DIR}/include/dataset
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
## config files
|
||||
install(
|
||||
FILES ${CMAKE_SOURCE_DIR}/config/op_info.config
|
||||
DESTINATION ${INSTALL_CFG_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
|
@ -1,4 +1,16 @@
|
|||
# find exec
|
||||
find_package(Python3 COMPONENTS Interpreter)
|
||||
if(NOT Python3_FOUND)
|
||||
message(FATAL_ERROR "No python3 found.")
|
||||
endif()
|
||||
|
||||
set(PYTHON ${Python3_EXECUTABLE})
|
||||
set(PYTHON_VERSION ${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR})
|
||||
|
||||
if(NOT (PYTHON_VERSION MATCHES "3.9" OR PYTHON_VERSION MATCHES "3.8" OR PYTHON_VERSION MATCHES "3.7"))
|
||||
message(FATAL_ERROR "FIND PYTHON VERSION ${PYTHON_VERSION} BUT CAN NOT MATCH PYTHON VERSION 3.9 OR 3.8 OR 3.7")
|
||||
endif()
|
||||
|
||||
find_package(Git)
|
||||
if(NOT GIT_FOUND)
|
||||
message("No git found.")
|
||||
|
|
@ -10,13 +22,6 @@ set(GIT ${GIT_EXECUTABLE})
|
|||
set(MS_ROOT_DIR ${CPACK_CMAKE_SOURCE_DIR})
|
||||
set(MS_PACK_ROOT_DIR ${CPACK_PACK_ROOT_DIR})
|
||||
|
||||
set(PYTHON ${CPACK_PYTHON_EXE})
|
||||
set(PYTHON_VERSION ${CPACK_PYTHON_VERSION})
|
||||
|
||||
if(NOT (PYTHON_VERSION MATCHES "3.9" OR PYTHON_VERSION MATCHES "3.8" OR PYTHON_VERSION MATCHES "3.7"))
|
||||
message(FATAL_ERROR "FIND PYTHON VERSION ${PYTHON_VERSION} BUT CAN NOT MATCH PYTHON VERSION 3.9 OR 3.8 OR 3.7")
|
||||
endif()
|
||||
|
||||
# set package file name
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||
if(PYTHON_VERSION MATCHES "3.9")
|
||||
|
|
@ -32,18 +37,16 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|||
string(TOLOWER linux_${CMAKE_HOST_SYSTEM_PROCESSOR} PLATFORM_TAG)
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
if(PYTHON_VERSION MATCHES "3.9")
|
||||
set(PY_TAGS "cp39-cp39")
|
||||
set(PY_TAGS "py39-none")
|
||||
elseif(PYTHON_VERSION MATCHES "3.8")
|
||||
set(PY_TAGS "cp38-cp38")
|
||||
set(PY_TAGS "py38-none")
|
||||
elseif(PYTHON_VERSION MATCHES "3.7")
|
||||
set(PY_TAGS "cp37-cp37m")
|
||||
set(PY_TAGS "py37-none")
|
||||
else()
|
||||
message("Could not find 'Python 3.9' OR 'Python 3.8' or 'Python 3.7'")
|
||||
return()
|
||||
endif()
|
||||
string(REGEX MATCH "[0-9]+.[0-9]+" MACOSX_SDK_VERSION "${CPACK_OSX_DEPLOYMENT_TARGET}")
|
||||
string(REPLACE "." "_" MACOSX_PACKAGE_VERSION "${MACOSX_SDK_VERSION}")
|
||||
string(TOLOWER macosx_${MACOSX_PACKAGE_VERSION}_${CMAKE_HOST_SYSTEM_PROCESSOR} PLATFORM_TAG)
|
||||
set(PLATFORM_TAG "any")
|
||||
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
||||
if(PYTHON_VERSION MATCHES "3.9")
|
||||
set(PY_TAGS "cp39-cp39")
|
||||
|
|
@ -74,54 +77,6 @@ set(ENV{BACKEND_TARGET} ${CPACK_MS_TARGET})
|
|||
set(ENV{MS_PACKAGE_NAME} ${CPACK_MS_PACKAGE_NAME})
|
||||
set(ENV{COMMIT_ID} ${GIT_COMMIT_ID})
|
||||
|
||||
file(GLOB DEBUG_SYM
|
||||
${MS_PACK_ROOT_DIR}/mindspore/*.so
|
||||
${MS_PACK_ROOT_DIR}/mindspore/lib/*.so
|
||||
)
|
||||
|
||||
file(GLOB DEBUG_STRIP_SYM
|
||||
${MS_PACK_ROOT_DIR}/mindspore/*.so
|
||||
${MS_PACK_ROOT_DIR}/mindspore/lib/*.so*
|
||||
)
|
||||
list(REMOVE_ITEM DEBUG_STRIP_SYM ${MS_PACK_ROOT_DIR}/mindspore/lib/libmindspore_aicpu_kernels.so)
|
||||
|
||||
set(CMAKE_OBJCOPY $ENV{CROSS_COMPILE}objcopy)
|
||||
set(CMAKE_STRIP $ENV{CROSS_COMPILE}strip)
|
||||
|
||||
if(CPACK_ENABLE_SYM_FILE)
|
||||
foreach(schema ${DEBUG_SYM})
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_OBJCOPY} "--only-keep-debug" ${schema} ${schema}.sym
|
||||
WORKING_DIRECTORY ${MS_PACK_ROOT_DIR}
|
||||
)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
if("${CPACK_CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
||||
set(CMAKE_STRIP_ARGS "-x")
|
||||
else()
|
||||
set(CMAKE_STRIP_ARGS "")
|
||||
endif()
|
||||
foreach(schema ${DEBUG_STRIP_SYM})
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_STRIP} ${CMAKE_STRIP_ARGS} ${schema}
|
||||
WORKING_DIRECTORY ${MS_PACK_ROOT_DIR}
|
||||
)
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
file(GLOB DEBUG_SYM_FILE
|
||||
${MS_PACK_ROOT_DIR}/mindspore/*.sym
|
||||
${MS_PACK_ROOT_DIR}/mindspore/lib/*.sym
|
||||
)
|
||||
|
||||
if(CPACK_ENABLE_SYM_FILE)
|
||||
file(MAKE_DIRECTORY ${MS_ROOT_DIR}/debug_info)
|
||||
file(COPY ${DEBUG_SYM_FILE} DESTINATION ${MS_ROOT_DIR}/debug_info/)
|
||||
file(REMOVE_RECURSE ${DEBUG_SYM_FILE})
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND ${PYTHON} ${MS_ROOT_DIR}/setup.py "bdist_wheel"
|
||||
WORKING_DIRECTORY ${MS_PACK_ROOT_DIR}
|
||||
|
|
@ -149,16 +104,3 @@ file(COPY ${MS_PACK_ROOT_DIR}/${NEW_FILE_NAME} DESTINATION ${MS_ROOT_DIR}/output
|
|||
|
||||
file(SHA256 ${MS_ROOT_DIR}/output/${NEW_FILE_NAME} SHA256_VAR)
|
||||
file(WRITE ${MS_ROOT_DIR}/output/${NEW_FILE_NAME}.sha256 ${SHA256_VAR} " " ${NEW_FILE_NAME})
|
||||
set(CMAKE_TAR $ENV{CROSS_COMPILE}tar)
|
||||
if(CPACK_ENABLE_SYM_FILE)
|
||||
file(MAKE_DIRECTORY ${MS_ROOT_DIR}/output/${PACKAGE_NAME}-${VERSION}-${PY_TAGS}-${PLATFORM_TAG})
|
||||
file(COPY ${MS_ROOT_DIR}/debug_info/ DESTINATION
|
||||
${MS_ROOT_DIR}/output/${PACKAGE_NAME}-${VERSION}-${PY_TAGS}-${PLATFORM_TAG}/)
|
||||
execute_process(COMMAND
|
||||
${CMAKE_COMMAND} -E ${CMAKE_TAR} cfv
|
||||
${MS_ROOT_DIR}/output/${PACKAGE_NAME}-${VERSION}-${PY_TAGS}-${PLATFORM_TAG}.zip
|
||||
${MS_ROOT_DIR}/output/${PACKAGE_NAME}-${VERSION}-${PY_TAGS}-${PLATFORM_TAG}/ --format=zip
|
||||
WORKING_DIRECTORY ${MS_ROOT_DIR})
|
||||
file(REMOVE_RECURSE ${MS_ROOT_DIR}/debug_info)
|
||||
file(REMOVE_RECURSE ${MS_ROOT_DIR}/output/${PACKAGE_NAME}-${VERSION}-${PY_TAGS}-${PLATFORM_TAG})
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/output)
|
|||
file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/output)
|
||||
|
||||
# cpack variables
|
||||
file(READ ${CMAKE_SOURCE_DIR}/version.txt VERSION_NUMBER)
|
||||
string(TOLOWER linux_${CMAKE_HOST_SYSTEM_PROCESSOR} PLATFORM_NAME)
|
||||
set(CPACK_PACKAGE_FILE_NAME mindspore_ascend-${VERSION_NUMBER}-${PLATFORM_NAME})
|
||||
set(CPACK_GENERATOR "TGZ")
|
||||
|
|
@ -27,7 +28,7 @@ install(
|
|||
)
|
||||
|
||||
install(
|
||||
TARGETS mindspore_core mindspore_common mindspore_backend
|
||||
TARGETS mindspore_gvar
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
|
@ -122,16 +123,16 @@ if(ENABLE_CPU)
|
|||
endif()
|
||||
|
||||
if(MS_BUILD_GRPC)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc++.so.1.36.1
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc++.so.1.27.3
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_grpc++.so.1 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc.so.15.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_grpc.so.15 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_gpr.so.15.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_gpr.so.15 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_upb.so.15.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_upb.so.15 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_address_sorting.so.15.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_address_sorting.so.15 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_grpc.so.9.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_grpc.so.9 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_gpr.so.9.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_gpr.so.9 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_upb.so.9.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_upb.so.9 COMPONENT mindspore)
|
||||
install(FILES ${grpc_LIBPATH}/libmindspore_address_sorting.so.9.0.0
|
||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libmindspore_address_sorting.so.9 COMPONENT mindspore)
|
||||
endif()
|
||||
|
||||
## Public header files
|
||||
|
|
@ -141,14 +142,6 @@ install(
|
|||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
## Public header files for mindapi
|
||||
install(
|
||||
DIRECTORY ${CMAKE_SOURCE_DIR}/mindspore/core/mindapi/base
|
||||
${CMAKE_SOURCE_DIR}/mindspore/core/mindapi/ir
|
||||
DESTINATION ${INSTALL_BASE_DIR}/include/mindapi
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
## Public header files for minddata
|
||||
install(
|
||||
FILES ${CMAKE_SOURCE_DIR}/mindspore/ccsrc/minddata/dataset/include/dataset/config.h
|
||||
|
|
|
|||
|
|
@ -12,34 +12,19 @@ set(CPACK_TEMPORARY_PACKAGE_FILE_NAME ${CMAKE_SOURCE_DIR}/build/package/mindspor
|
|||
set(CPACK_TEMPORARY_INSTALL_DIRECTORY ${CMAKE_SOURCE_DIR}/build/package/mindspore)
|
||||
set(CPACK_PACK_ROOT_DIR ${BUILD_PATH}/package/)
|
||||
set(CPACK_CMAKE_SOURCE_DIR ${CMAKE_SOURCE_DIR})
|
||||
set(CPACK_PYTHON_EXE ${Python3_EXECUTABLE})
|
||||
set(CPACK_PYTHON_VERSION ${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR})
|
||||
|
||||
if(ENABLE_GPU)
|
||||
set(CPACK_MS_BACKEND "ms")
|
||||
set(CPACK_MS_TARGET "gpu or cpu")
|
||||
if(BUILD_DEV_MODE)
|
||||
# providing cuda11 version of dev package only
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore_cuda11_dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore_gpu")
|
||||
endif()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore-gpu")
|
||||
elseif(ENABLE_CPU)
|
||||
set(CPACK_MS_BACKEND "ms")
|
||||
set(CPACK_MS_TARGET "cpu")
|
||||
if(BUILD_DEV_MODE)
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore_dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
endif()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
else()
|
||||
set(CPACK_MS_BACKEND "debug")
|
||||
set(CPACK_MS_TARGET "ascend or gpu or cpu")
|
||||
if(BUILD_DEV_MODE)
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore_dev")
|
||||
else()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
endif()
|
||||
set(CPACK_MS_PACKAGE_NAME "mindspore")
|
||||
endif()
|
||||
include(CPack)
|
||||
|
||||
|
|
@ -74,7 +59,7 @@ install(
|
|||
)
|
||||
|
||||
install(
|
||||
TARGETS mindspore_core mindspore_common mindspore_backend
|
||||
TARGETS mindspore_gvar
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
|
@ -142,11 +127,6 @@ if(ENABLE_MPI)
|
|||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
install(
|
||||
TARGETS mpi_collective
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
|
@ -157,11 +137,6 @@ if(ENABLE_GPU)
|
|||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
install(
|
||||
TARGETS nvidia_collective
|
||||
DESTINATION ${INSTALL_LIB_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
install(
|
||||
TARGETS gpu_queue
|
||||
|
|
@ -185,7 +160,7 @@ install(
|
|||
)
|
||||
|
||||
# set python files
|
||||
file(GLOB MS_PY_LIST ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/*.py)
|
||||
file(GLOB MS_PY_LIST ${CMAKE_SOURCE_DIR}/mindspore/*.py)
|
||||
install(
|
||||
FILES ${MS_PY_LIST}
|
||||
DESTINATION ${INSTALL_PY_DIR}
|
||||
|
|
@ -194,26 +169,40 @@ install(
|
|||
|
||||
install(
|
||||
DIRECTORY
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/nn
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/_extends
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/parallel
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/mindrecord
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/numpy
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/train
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/boost
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/common
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/ops
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/communication
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/profiler
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/compression
|
||||
${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/run_check
|
||||
${CMAKE_SOURCE_DIR}/mindspore/nn
|
||||
${CMAKE_SOURCE_DIR}/mindspore/_extends
|
||||
${CMAKE_SOURCE_DIR}/mindspore/parallel
|
||||
${CMAKE_SOURCE_DIR}/mindspore/mindrecord
|
||||
${CMAKE_SOURCE_DIR}/mindspore/numpy
|
||||
${CMAKE_SOURCE_DIR}/mindspore/train
|
||||
${CMAKE_SOURCE_DIR}/mindspore/common
|
||||
${CMAKE_SOURCE_DIR}/mindspore/ops
|
||||
${CMAKE_SOURCE_DIR}/mindspore/communication
|
||||
${CMAKE_SOURCE_DIR}/mindspore/profiler
|
||||
${CMAKE_SOURCE_DIR}/mindspore/explainer
|
||||
${CMAKE_SOURCE_DIR}/mindspore/compression
|
||||
${CMAKE_SOURCE_DIR}/mindspore/run_check
|
||||
DESTINATION ${INSTALL_PY_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
||||
if(EXISTS ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/dataset)
|
||||
if((ENABLE_D OR ENABLE_GPU) AND ENABLE_AKG)
|
||||
set (AKG_PATH ${CMAKE_SOURCE_DIR}/build/mindspore/akg)
|
||||
file(REMOVE_RECURSE ${AKG_PATH}/_akg)
|
||||
file(MAKE_DIRECTORY ${AKG_PATH}/_akg)
|
||||
file(TOUCH ${AKG_PATH}/_akg/__init__.py)
|
||||
install(DIRECTORY "${AKG_PATH}/akg" DESTINATION "${AKG_PATH}/_akg")
|
||||
install(
|
||||
DIRECTORY ${CMAKE_SOURCE_DIR}/mindspore/python/mindspore/dataset
|
||||
DIRECTORY
|
||||
${AKG_PATH}/_akg
|
||||
DESTINATION ${INSTALL_PY_DIR}/
|
||||
COMPONENT mindspore
|
||||
)
|
||||
endif()
|
||||
|
||||
if(EXISTS ${CMAKE_SOURCE_DIR}/mindspore/dataset)
|
||||
install(
|
||||
DIRECTORY ${CMAKE_SOURCE_DIR}/mindspore/dataset
|
||||
DESTINATION ${INSTALL_PY_DIR}
|
||||
COMPONENT mindspore
|
||||
)
|
||||
|
|
|
|||
|
|
@ -133,13 +133,7 @@ function(__find_pkg_then_add_target pkg_name pkg_exe lib_path)
|
|||
set(_LIB_TYPE STATIC)
|
||||
endif()
|
||||
set(${_LIB_NAME}_LIB ${_LIB_NAME}_LIB-NOTFOUND)
|
||||
if(APPLE)
|
||||
find_library(${_LIB_NAME}_LIB ${_LIB_SEARCH_NAME} PATHS ${${pkg_name}_BASE_DIR}/${lib_path}
|
||||
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
|
||||
else()
|
||||
find_library(${_LIB_NAME}_LIB ${_LIB_SEARCH_NAME} PATHS ${${pkg_name}_BASE_DIR}/${lib_path}
|
||||
NO_DEFAULT_PATH)
|
||||
endif()
|
||||
find_library(${_LIB_NAME}_LIB ${_LIB_SEARCH_NAME} PATHS ${${pkg_name}_BASE_DIR}/${lib_path} NO_DEFAULT_PATH)
|
||||
if(NOT ${_LIB_NAME}_LIB)
|
||||
return()
|
||||
endif()
|
||||
|
|
@ -244,7 +238,7 @@ function(mindspore_add_pkg pkg_name)
|
|||
|
||||
message("${pkg_name} config hash: ${${pkg_name}_CONFIG_HASH}")
|
||||
|
||||
set(${pkg_name}_BASE_DIR ${_MS_LIB_CACHE}/${pkg_name}_${PKG_VER}_${${pkg_name}_CONFIG_HASH})
|
||||
set(${pkg_name}_BASE_DIR ${_MS_LIB_CACHE}/${pkg_name}_${${pkg_name}_CONFIG_HASH})
|
||||
set(${pkg_name}_DIRPATH ${${pkg_name}_BASE_DIR} CACHE STRING INTERNAL)
|
||||
|
||||
if(EXISTS ${${pkg_name}_BASE_DIR}/options.txt AND PKG_HEAD_ONLY)
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,2 @@
|
|||
reviewers:
|
||||
- HW_KK
|
||||
|
|
@ -0,0 +1,78 @@
|
|||
FROM ubuntu:18.04
|
||||
|
||||
MAINTAINER leonwanghui <leon.wanghui@huawei.com>
|
||||
|
||||
# Set env
|
||||
ENV PYTHON_ROOT_PATH /usr/local/python-3.7.5
|
||||
ENV CMAKE_ROOT_PATH /usr/local/cmake-3.14.1
|
||||
ENV PATH ${PYTHON_ROOT_PATH}/bin:${CMAKE_ROOT_PATH}/bin:/usr/local/bin:$PATH
|
||||
ENV LD_LIBRARY_PATH ${PYTHON_ROOT_PATH}/lib
|
||||
|
||||
# Install base tools
|
||||
RUN apt update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
vim \
|
||||
wget \
|
||||
curl \
|
||||
xz-utils \
|
||||
net-tools \
|
||||
openssh-client \
|
||||
git \
|
||||
ntpdate \
|
||||
tzdata \
|
||||
tcl \
|
||||
sudo \
|
||||
bash-completion
|
||||
|
||||
# Install compile tools
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
gcc \
|
||||
g++ \
|
||||
zlibc \
|
||||
make \
|
||||
libgmp-dev \
|
||||
patch \
|
||||
autoconf \
|
||||
libtool \
|
||||
automake \
|
||||
flex
|
||||
|
||||
# Install the rest dependent tools
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
libnuma-dev
|
||||
|
||||
# Set bash
|
||||
RUN echo "dash dash/sh boolean false" | debconf-set-selections
|
||||
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
|
||||
|
||||
# Install python (v3.7.5)
|
||||
RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
|
||||
libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libsqlite3-dev \
|
||||
&& cd /tmp \
|
||||
&& wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \
|
||||
&& tar -xvf v3.7.5.tar.gz \
|
||||
&& cd /tmp/cpython-3.7.5 \
|
||||
&& mkdir -p ${PYTHON_ROOT_PATH} \
|
||||
&& ./configure --prefix=${PYTHON_ROOT_PATH} --enable-shared \
|
||||
&& make -j4 \
|
||||
&& make install -j4 \
|
||||
&& rm -f /usr/local/bin/python \
|
||||
&& rm -f /usr/local/bin/pip \
|
||||
&& ln -s ${PYTHON_ROOT_PATH}/bin/python3.7 /usr/local/bin/python \
|
||||
&& ln -s ${PYTHON_ROOT_PATH}/bin/pip3.7 /usr/local/bin/pip \
|
||||
&& rm -rf /tmp/cpython-3.7.5 \
|
||||
&& rm -f /tmp/v3.7.5.tar.gz
|
||||
|
||||
# Set pip source
|
||||
RUN mkdir -pv /root/.pip \
|
||||
&& echo "[global]" > /root/.pip/pip.conf \
|
||||
&& echo "trusted-host=mirrors.aliyun.com" >> /root/.pip/pip.conf \
|
||||
&& echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf \
|
||||
&& pip install --no-cache-dir wheel
|
||||
|
||||
# Install cmake (v3.14.1)
|
||||
RUN cd /tmp \
|
||||
&& wget https://github.com/Kitware/CMake/releases/download/v3.14.1/cmake-3.14.1-Linux-x86_64.sh \
|
||||
&& mkdir -p ${CMAKE_ROOT_PATH} \
|
||||
&& bash ./cmake-3.14.1-Linux-x86_64.sh --prefix=${CMAKE_ROOT_PATH} --exclude-subdir --skip-license \
|
||||
&& rm -f /tmp/cmake-3.14.1-Linux-x86_64.sh
|
||||
|
|
@ -0,0 +1,68 @@
|
|||
FROM ubuntu:18.04
|
||||
|
||||
MAINTAINER leonwanghui <leon.wanghui@huawei.com>
|
||||
|
||||
# Set env
|
||||
ENV PYTHON_ROOT_PATH /usr/local/python-3.7.5
|
||||
ENV PATH /usr/local/bin:$PATH
|
||||
|
||||
# Install base tools
|
||||
RUN apt update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
vim \
|
||||
wget \
|
||||
curl \
|
||||
xz-utils \
|
||||
net-tools \
|
||||
openssh-client \
|
||||
git \
|
||||
ntpdate \
|
||||
tzdata \
|
||||
tcl \
|
||||
sudo \
|
||||
bash-completion
|
||||
|
||||
# Install compile tools
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
gcc \
|
||||
g++ \
|
||||
zlibc \
|
||||
make \
|
||||
libgmp-dev \
|
||||
patch \
|
||||
autoconf \
|
||||
libtool \
|
||||
automake \
|
||||
flex
|
||||
|
||||
# Install the rest dependent tools
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
libnuma-dev
|
||||
|
||||
# Set bash
|
||||
RUN echo "dash dash/sh boolean false" | debconf-set-selections
|
||||
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
|
||||
|
||||
# Install python (v3.7.5)
|
||||
RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
|
||||
libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libsqlite3-dev \
|
||||
&& cd /tmp \
|
||||
&& wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \
|
||||
&& tar -xvf v3.7.5.tar.gz \
|
||||
&& cd /tmp/cpython-3.7.5 \
|
||||
&& mkdir -p ${PYTHON_ROOT_PATH} \
|
||||
&& ./configure --prefix=${PYTHON_ROOT_PATH} \
|
||||
&& make -j4 \
|
||||
&& make install -j4 \
|
||||
&& rm -f /usr/local/bin/python \
|
||||
&& rm -f /usr/local/bin/pip \
|
||||
&& ln -s ${PYTHON_ROOT_PATH}/bin/python3.7 /usr/local/bin/python \
|
||||
&& ln -s ${PYTHON_ROOT_PATH}/bin/pip3.7 /usr/local/bin/pip \
|
||||
&& rm -rf /tmp/cpython-3.7.5 \
|
||||
&& rm -f /tmp/v3.7.5.tar.gz
|
||||
|
||||
# Set pip source
|
||||
RUN mkdir -pv /root/.pip \
|
||||
&& echo "[global]" > /root/.pip/pip.conf \
|
||||
&& echo "trusted-host=mirrors.aliyun.com" >> /root/.pip/pip.conf \
|
||||
&& echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf
|
||||
|
|
@ -0,0 +1,107 @@
|
|||
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
|
||||
|
||||
MAINTAINER leonwanghui <leon.wanghui@huawei.com>
|
||||
|
||||
# Set env
|
||||
ENV PYTHON_ROOT_PATH /usr/local/python-3.7.5
|
||||
ENV CMAKE_ROOT_PATH /usr/local/cmake-3.14.1
|
||||
ENV OMPI_ROOT_PATH /usr/local/openmpi-4.0.3
|
||||
ENV PATH ${OMPI_ROOT_PATH}/bin:${PYTHON_ROOT_PATH}/bin:${CMAKE_ROOT_PATH}/bin:/usr/local/bin:$PATH
|
||||
ENV LD_LIBRARY_PATH ${OMPI_ROOT_PATH}/lib::${PYTHON_ROOT_PATH}/lib
|
||||
|
||||
# Install base tools
|
||||
RUN apt update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
vim \
|
||||
wget \
|
||||
curl \
|
||||
xz-utils \
|
||||
net-tools \
|
||||
openssh-client \
|
||||
git \
|
||||
ntpdate \
|
||||
tzdata \
|
||||
tcl \
|
||||
sudo \
|
||||
bash-completion
|
||||
|
||||
# Install compile tools
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
gcc \
|
||||
g++ \
|
||||
zlibc \
|
||||
make \
|
||||
libgmp-dev \
|
||||
patch \
|
||||
autoconf \
|
||||
libtool \
|
||||
automake \
|
||||
flex
|
||||
|
||||
# Install the rest dependent tools
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
libnuma-dev
|
||||
|
||||
# Configure cuDNN (v7.6.5)
|
||||
RUN ln -s /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5 /usr/local/cuda/lib64/libcudnn.so
|
||||
|
||||
# Set bash
|
||||
RUN echo "dash dash/sh boolean false" | debconf-set-selections
|
||||
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
|
||||
|
||||
# Install python (v3.7.5)
|
||||
RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
|
||||
libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libsqlite3-dev \
|
||||
&& cd /tmp \
|
||||
&& wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \
|
||||
&& tar -xvf v3.7.5.tar.gz \
|
||||
&& cd /tmp/cpython-3.7.5 \
|
||||
&& mkdir -p ${PYTHON_ROOT_PATH} \
|
||||
&& ./configure --prefix=${PYTHON_ROOT_PATH} --enable-shared \
|
||||
&& make -j4 \
|
||||
&& make install -j4 \
|
||||
&& rm -f /usr/local/bin/python \
|
||||
&& rm -f /usr/local/bin/pip \
|
||||
&& ln -s ${PYTHON_ROOT_PATH}/bin/python3.7 /usr/local/bin/python \
|
||||
&& ln -s ${PYTHON_ROOT_PATH}/bin/pip3.7 /usr/local/bin/pip \
|
||||
&& rm -rf /tmp/cpython-3.7.5 \
|
||||
&& rm -f /tmp/v3.7.5.tar.gz
|
||||
|
||||
# Set pip source
|
||||
RUN mkdir -pv /root/.pip \
|
||||
&& echo "[global]" > /root/.pip/pip.conf \
|
||||
&& echo "trusted-host=mirrors.aliyun.com" >> /root/.pip/pip.conf \
|
||||
&& echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf \
|
||||
&& pip install --no-cache-dir wheel
|
||||
|
||||
# Install cmake (v3.14.1)
|
||||
RUN cd /tmp \
|
||||
&& wget https://github.com/Kitware/CMake/releases/download/v3.14.1/cmake-3.14.1-Linux-x86_64.sh \
|
||||
&& mkdir -p ${CMAKE_ROOT_PATH} \
|
||||
&& bash ./cmake-3.14.1-Linux-x86_64.sh --prefix=${CMAKE_ROOT_PATH} --exclude-subdir --skip-license \
|
||||
&& rm -f /tmp/cmake-3.14.1-Linux-x86_64.sh
|
||||
|
||||
# Install openmpi (v4.0.3)
|
||||
RUN cd /tmp \
|
||||
&& wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.3.tar.gz \
|
||||
&& tar -xvf openmpi-4.0.3.tar.gz \
|
||||
&& cd /tmp/openmpi-4.0.3 \
|
||||
&& mkdir -p ${OMPI_ROOT_PATH} \
|
||||
&& ./configure --prefix=${OMPI_ROOT_PATH} \
|
||||
&& make -j4 \
|
||||
&& make install -j4 \
|
||||
&& rm -rf /tmp/openmpi-4.0.3 \
|
||||
&& rm -f /tmp/openmpi-4.0.3.tar.gz
|
||||
|
||||
# Install nodejs
|
||||
RUN cd /tmp \
|
||||
&& wget https://mirrors.huaweicloud.com/nodejs/v12.18.4/node-v12.18.4-linux-x64.tar.gz \
|
||||
&& tar -zxf node-v12.18.4-linux-x64.tar.gz \
|
||||
&& rm -rf /usr/local/nodejs \
|
||||
&& mkdir -p /usr/local/nodejs \
|
||||
&& mv /tmp/node-v12.18.4-linux-x64 /usr/local/nodejs/ \
|
||||
&& chmod 755 -R /usr/local/nodejs \
|
||||
&& ln -sf /usr/local/nodejs/node-v12.18.4-linux-x64/bin/node /usr/bin/node \
|
||||
&& ln -sf /usr/local/nodejs/node-v12.18.4-linux-x64/bin/npm /usr/bin/npm \
|
||||
&& npm config set registry https://registry.npm.taobao.org/ \
|
||||
&& rm -f /tmp/node-v12.18.4-linux-x64.tar.gz
|
||||
|
|
@ -0,0 +1,82 @@
|
|||
FROM nvidia/cuda:10.1-cudnn7-devel-ubuntu18.04
|
||||
|
||||
MAINTAINER leonwanghui <leon.wanghui@huawei.com>
|
||||
|
||||
# Set env
|
||||
ENV PYTHON_ROOT_PATH /usr/local/python-3.7.5
|
||||
ENV OMPI_ROOT_PATH /usr/local/openmpi-4.0.3
|
||||
ENV PATH ${OMPI_ROOT_PATH}/bin:/usr/local/bin:$PATH
|
||||
ENV LD_LIBRARY_PATH ${OMPI_ROOT_PATH}/lib:$LD_LIBRARY_PATH
|
||||
|
||||
# Install base tools
|
||||
RUN apt update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
vim \
|
||||
wget \
|
||||
curl \
|
||||
xz-utils \
|
||||
net-tools \
|
||||
openssh-client \
|
||||
git \
|
||||
ntpdate \
|
||||
tzdata \
|
||||
tcl \
|
||||
sudo \
|
||||
bash-completion
|
||||
|
||||
# Install compile tools
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
gcc \
|
||||
g++ \
|
||||
zlibc \
|
||||
make \
|
||||
libgmp-dev \
|
||||
patch \
|
||||
autoconf \
|
||||
libtool \
|
||||
automake \
|
||||
flex
|
||||
|
||||
# Install the rest dependent tools
|
||||
RUN DEBIAN_FRONTEND=noninteractive apt install -y \
|
||||
libnuma-dev
|
||||
|
||||
# Set bash
|
||||
RUN echo "dash dash/sh boolean false" | debconf-set-selections
|
||||
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
|
||||
|
||||
# Install python (v3.7.5)
|
||||
RUN apt install -y libffi-dev libssl-dev zlib1g-dev libbz2-dev libncurses5-dev \
|
||||
libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libsqlite3-dev \
|
||||
&& cd /tmp \
|
||||
&& wget https://github.com/python/cpython/archive/v3.7.5.tar.gz \
|
||||
&& tar -xvf v3.7.5.tar.gz \
|
||||
&& cd /tmp/cpython-3.7.5 \
|
||||
&& mkdir -p ${PYTHON_ROOT_PATH} \
|
||||
&& ./configure --prefix=${PYTHON_ROOT_PATH} \
|
||||
&& make -j4 \
|
||||
&& make install -j4 \
|
||||
&& rm -f /usr/local/bin/python \
|
||||
&& rm -f /usr/local/bin/pip \
|
||||
&& ln -s ${PYTHON_ROOT_PATH}/bin/python3.7 /usr/local/bin/python \
|
||||
&& ln -s ${PYTHON_ROOT_PATH}/bin/pip3.7 /usr/local/bin/pip \
|
||||
&& rm -rf /tmp/cpython-3.7.5 \
|
||||
&& rm -f /tmp/v3.7.5.tar.gz
|
||||
|
||||
# Set pip source
|
||||
RUN mkdir -pv /root/.pip \
|
||||
&& echo "[global]" > /root/.pip/pip.conf \
|
||||
&& echo "trusted-host=mirrors.aliyun.com" >> /root/.pip/pip.conf \
|
||||
&& echo "index-url=http://mirrors.aliyun.com/pypi/simple/" >> /root/.pip/pip.conf
|
||||
|
||||
# Install openmpi (v4.0.3)
|
||||
RUN cd /tmp \
|
||||
&& wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.3.tar.gz \
|
||||
&& tar -xvf openmpi-4.0.3.tar.gz \
|
||||
&& cd /tmp/openmpi-4.0.3 \
|
||||
&& mkdir -p ${OMPI_ROOT_PATH} \
|
||||
&& ./configure --prefix=${OMPI_ROOT_PATH} \
|
||||
&& make -j4 \
|
||||
&& make install -j4 \
|
||||
&& rm -rf /tmp/openmpi-4.0.3 \
|
||||
&& rm -f /tmp/openmpi-4.0.3.tar.gz
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 36 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 59 KiB |
|
|
@ -1,9 +0,0 @@
|
|||
approvers:
|
||||
- gemini524
|
||||
- Hanshize
|
||||
- rudy_tan
|
||||
- jonyguo
|
||||
- lvyufenghw
|
||||
- zh_qh
|
||||
- liangchenghui
|
||||
- tiancixiao
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 860 KiB |
|
|
@ -1,15 +0,0 @@
|
|||
mindspore.dataset.BatchInfo
|
||||
===========================
|
||||
|
||||
.. py:class:: mindspore.dataset.BatchInfo
|
||||
|
||||
此类提供了两种方法获取数据集的批处理数量(batch size)和迭代数(epoch)属性。
|
||||
这些属性可以用于 `batch` 操作中的输入参数 `batch_size` 和 `per_batch_map`。
|
||||
|
||||
.. py:method:: get_batch_num()
|
||||
|
||||
返回数据集的批处理数量(batch size)。
|
||||
|
||||
.. py:method:: get_epoch_num()
|
||||
|
||||
返回数据集的迭代数(epoch)。
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
|
||||
.. py:method:: get_num_samples()
|
||||
|
||||
返回采样器采集样本数量,如果存在子采样器,则子采样器计数可以是数值或None。这些条件会影响最终的采样结果。
|
||||
|
||||
下表显示了调用此函数的可能结果。
|
||||
|
||||
.. list-table::
|
||||
:widths: 25 25 25 25
|
||||
:header-rows: 1
|
||||
|
||||
* - 子采样器
|
||||
- num_samples
|
||||
- child_samples
|
||||
- 结果
|
||||
* - T
|
||||
- x
|
||||
- y
|
||||
- min(x, y)
|
||||
* - T
|
||||
- x
|
||||
- None
|
||||
- x
|
||||
* - T
|
||||
- None
|
||||
- y
|
||||
- y
|
||||
* - T
|
||||
- None
|
||||
- None
|
||||
- None
|
||||
* - None
|
||||
- x
|
||||
- n/a
|
||||
- x
|
||||
* - None
|
||||
- None
|
||||
- n/a
|
||||
- None
|
||||
|
||||
**返回:**
|
||||
|
||||
int,样本数,可为None。
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
.. py:method:: add_child(sampler)
|
||||
|
||||
为给定采样器添加子采样器。子采样器接收父采样器输出数据作为输入,并应用其采样逻辑返回新的采样结果。
|
||||
|
||||
**参数:**
|
||||
|
||||
- **sampler** (Sampler) - 用于从数据集中选择样本的对象。仅支持内置采样器(DistributedSampler、PKSampler、RandomSampler、SequentialSampler、SubsetRandomSampler、WeightedRandomSampler)。
|
||||
|
||||
.. py:method:: get_child()
|
||||
|
||||
获取给定采样器的子采样器。
|
||||
|
|
@ -1,217 +0,0 @@
|
|||
mindspore.dataset.CLUEDataset
|
||||
=============================
|
||||
|
||||
.. py:class:: mindspore.dataset.CLUEDataset(dataset_files, task='AFQMC', usage='train', num_samples=None, num_parallel_workers=None, shuffle=Shuffle.GLOBAL, num_shards=None, shard_id=None, cache=None)
|
||||
|
||||
读取和解析CLUE数据集的源文件构建数据集。
|
||||
|
||||
目前支持的CLUE分类任务包括:'AFQMC'、'TNEWS 、'IFLYTEK'、'CMNLI'、'WSC'和'CSL'。更多CLUE数据集的说明详见 `CLUE GitHub <https://github.com/CLUEbenchmark/CLUE>`_ 。
|
||||
|
||||
**参数:**
|
||||
|
||||
- **dataset_files** (Union[str, list[str]]) - 数据集文件路径,支持单文件路径字符串、多文件路径字符串列表或可被glob库模式匹配的字符串,文件列表将在内部进行字典排序。
|
||||
- **task** (str, 可选) - 任务类型,可取值为 'AFQMC' 、'TNEWS'、'IFLYTEK'、'CMNLI'、'WSC' 或 'CSL'。默认值:'AFQMC'。
|
||||
- **usage** (str, 可选) - 指定数据集的子集,可取值为'train','test'或'eval',默认值:'train'。
|
||||
- **num_samples** (int, 可选) - 指定从数据集中读取的样本数。默认值:None,读取所有样本。
|
||||
- **num_parallel_workers** (int, 可选) - 指定读取数据的工作线程数。默认值:None,使用mindspore.dataset.config中配置的线程数。
|
||||
- **shuffle** (Union[bool, Shuffle], 可选) - 每个epoch中数据混洗的模式,支持传入bool类型与枚举类型进行指定,默认值:mindspore.dataset.Shuffle.GLOBAL。
|
||||
如果 `shuffle` 为False,则不混洗,如果 `shuffle` 为True,等同于将 `shuffle` 设置为mindspore.dataset.Shuffle.GLOBAL。
|
||||
通过传入枚举变量设置数据混洗的模式:
|
||||
|
||||
- **Shuffle.GLOBAL**:混洗文件和样本。
|
||||
- **Shuffle.FILES**:仅混洗文件。
|
||||
|
||||
- **num_shards** (int, 可选) - 指定分布式训练时将数据集进行划分的分片数,默认值:None。指定此参数后, `num_samples` 表示每个分片的最大样本数。
|
||||
- **shard_id** (int, 可选) - 指定分布式训练时使用的分片ID号,默认值:None。只有当指定了 `num_shards` 时才能指定此参数。
|
||||
- **cache** (DatasetCache, 可选) - 单节点数据缓存服务,用于加快数据集处理,详情请阅读 `单节点数据缓存 <https://www.mindspore.cn/docs/programming_guide/zh-CN/master/cache.html>`_ 。默认值:None,不使用缓存。
|
||||
|
||||
根据给定的 `task` 参数 和 `usage` 配置,数据集会生成不同的输出列:
|
||||
|
||||
+-------------------------+------------------------------+-----------------------------+
|
||||
| `task` | `usage` | 输出列 |
|
||||
+=========================+==============================+=============================+
|
||||
| AFQMC | train | [sentence1, dtype=string] |
|
||||
| | | |
|
||||
| | | [sentence2, dtype=string] |
|
||||
| | | |
|
||||
| | | [label, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | test | [id, dtype=uint32] |
|
||||
| | | |
|
||||
| | | [sentence1, dtype=string] |
|
||||
| | | |
|
||||
| | | [sentence2, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | eval | [sentence1, dtype=string] |
|
||||
| | | |
|
||||
| | | [sentence2, dtype=string] |
|
||||
| | | |
|
||||
| | | [label, dtype=string] |
|
||||
+-------------------------+------------------------------+-----------------------------+
|
||||
| TNEWS | train | [label, dtype=string] |
|
||||
| | | |
|
||||
| | | [label_des, dtype=string] |
|
||||
| | | |
|
||||
| | | [sentence, dtype=string] |
|
||||
| | | |
|
||||
| | | [keywords, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | test | [label, dtype=uint32] |
|
||||
| | | |
|
||||
| | | [keywords, dtype=string] |
|
||||
| | | |
|
||||
| | | [sentence, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | eval | [label, dtype=string] |
|
||||
| | | |
|
||||
| | | [label_des, dtype=string] |
|
||||
| | | |
|
||||
| | | [sentence, dtype=string] |
|
||||
| | | |
|
||||
| | | [keywords, dtype=string] |
|
||||
+-------------------------+------------------------------+-----------------------------+
|
||||
| IFLYTEK | train | [label, dtype=string] |
|
||||
| | | |
|
||||
| | | [label_des, dtype=string] |
|
||||
| | | |
|
||||
| | | [sentence, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | test | [id, dtype=uint32] |
|
||||
| | | |
|
||||
| | | [sentence, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | eval | [label, dtype=string] |
|
||||
| | | |
|
||||
| | | [label_des, dtype=string] |
|
||||
| | | |
|
||||
| | | [sentence, dtype=string] |
|
||||
+-------------------------+------------------------------+-----------------------------+
|
||||
| CMNLI | train | [sentence1, dtype=string] |
|
||||
| | | |
|
||||
| | | [sentence2, dtype=string] |
|
||||
| | | |
|
||||
| | | [label, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | test | [id, dtype=uint32] |
|
||||
| | | |
|
||||
| | | [sentence1, dtype=string] |
|
||||
| | | |
|
||||
| | | [sentence2, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | eval | [sentence1, dtype=string] |
|
||||
| | | |
|
||||
| | | [sentence2, dtype=string] |
|
||||
| | | |
|
||||
| | | [label, dtype=string] |
|
||||
+-------------------------+------------------------------+-----------------------------+
|
||||
| WSC | train | [span1_index, dtype=uint32]|
|
||||
| | | |
|
||||
| | | [span2_index, dtype=uint32]|
|
||||
| | | |
|
||||
| | | [span1_text, dtype=string] |
|
||||
| | | |
|
||||
| | | [span2_text, dtype=string] |
|
||||
| | | |
|
||||
| | | [idx, dtype=uint32] |
|
||||
| | | |
|
||||
| | | [text, dtype=string] |
|
||||
| | | |
|
||||
| | | [label, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | test | [span1_index, dtype=uint32]|
|
||||
| | | |
|
||||
| | | [span2_index, dtype=uint32]|
|
||||
| | | |
|
||||
| | | [span1_text, dtype=string] |
|
||||
| | | |
|
||||
| | | [span2_text, dtype=string] |
|
||||
| | | |
|
||||
| | | [idx, dtype=uint32] |
|
||||
| | | |
|
||||
| | | [text, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | eval | [span1_index, dtype=uint32]|
|
||||
| | | |
|
||||
| | | [span2_index, dtype=uint32]|
|
||||
| | | |
|
||||
| | | [span1_text, dtype=string] |
|
||||
| | | |
|
||||
| | | [span2_text, dtype=string] |
|
||||
| | | |
|
||||
| | | [idx, dtype=uint32] |
|
||||
| | | |
|
||||
| | | [text, dtype=string] |
|
||||
| | | |
|
||||
| | | [label, dtype=string] |
|
||||
+-------------------------+------------------------------+-----------------------------+
|
||||
| CSL | train | [id, dtype=uint32] |
|
||||
| | | |
|
||||
| | | [abst, dtype=string] |
|
||||
| | | |
|
||||
| | | [keyword, dtype=string] |
|
||||
| | | |
|
||||
| | | [label, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | test | [id, dtype=uint32] |
|
||||
| | | |
|
||||
| | | [abst, dtype=string] |
|
||||
| | | |
|
||||
| | | [keyword, dtype=string] |
|
||||
| +------------------------------+-----------------------------+
|
||||
| | eval | [id, dtype=uint32] |
|
||||
| | | |
|
||||
| | | [abst, dtype=string] |
|
||||
| | | |
|
||||
| | | [keyword, dtype=string] |
|
||||
| | | |
|
||||
| | | [label, dtype=string] |
|
||||
+-------------------------+------------------------------+-----------------------------+
|
||||
|
||||
**异常:**
|
||||
|
||||
- **ValueError** - `dataset_files` 参数所指向的文件无效或不存在。
|
||||
- **ValueError** - `task` 参数不为 'AFQMC'、'TNEWS'、'IFLYTEK'、'CMNLI'、'WSC' 或 'CSL'。
|
||||
- **ValueError** - `usage` 参数不为 'train'、'test' 或 'eval'。
|
||||
- **ValueError** - `num_parallel_workers` 参数超过系统最大线程数。
|
||||
- **RuntimeError** - 指定了 `num_shards` 参数,但是未指定 `shard_id` 参数。
|
||||
- **RuntimeError** - 指定了 `shard_id` 参数,但是未指定 `num_shards` 参数。
|
||||
- **ValueError** - `shard_id` 参数错误(小于0或者大于等于 `num_shards` )。
|
||||
|
||||
**关于CLUE数据集:**
|
||||
|
||||
CLUE,又名中文语言理解测评基准,包含许多有代表性的数据集,涵盖单句分类、句对分类和机器阅读理解等任务。
|
||||
|
||||
您可以将数据集解压成如下的文件结构,并通过MindSpore的API进行读取,以 'afqmc' 数据集为例:
|
||||
|
||||
.. code-block::
|
||||
|
||||
.
|
||||
└── afqmc_public
|
||||
├── train.json
|
||||
├── test.json
|
||||
└── dev.json
|
||||
|
||||
**引用:**
|
||||
|
||||
.. code-block::
|
||||
|
||||
@article{CLUEbenchmark,
|
||||
title = {CLUE: A Chinese Language Understanding Evaluation Benchmark},
|
||||
author = {Liang Xu, Xuanwei Zhang, Lu Li, Hai Hu, Chenjie Cao, Weitang Liu, Junyi Li, Yudong Li,
|
||||
Kai Sun, Yechen Xu, Yiming Cui, Cong Yu, Qianqian Dong, Yin Tian, Dian Yu, Bo Shi, Jun Zeng,
|
||||
Rongzhao Wang, Weijian Xie, Yanting Li, Yina Patterson, Zuoyu Tian, Yiwen Zhang, He Zhou,
|
||||
Shaoweihua Liu, Qipeng Zhao, Cong Yue, Xinrui Zhang, Zhengliang Yang, Zhenzhong Lan},
|
||||
journal = {arXiv preprint arXiv:2004.05986},
|
||||
year = {2020},
|
||||
howpublished = {https://github.com/CLUEbenchmark/CLUE}
|
||||
}
|
||||
|
||||
.. include:: mindspore.dataset.Dataset.rst
|
||||
|
||||
.. include:: mindspore.dataset.Dataset.b.rst
|
||||
|
||||
.. include:: mindspore.dataset.Dataset.c.rst
|
||||
|
||||
.. include:: mindspore.dataset.Dataset.d.rst
|
||||
|
||||
.. include:: mindspore.dataset.Dataset.zip.rst
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue