Commit Graph

53 Commits

Author SHA1 Message Date
xulei b179355489 fix mindspore mac package name 2021-11-30 19:27:08 +08:00
xulei 78b37afc30 fix mindspore mac compile
fix debugger, mindarmour, audio, gnn, grpc, ps/fl.
2021-11-29 09:29:02 +08:00
He Wei 41dcac9c49 Replace std::unordered_map/set with robin-hood-hashing
Robin-hood-hashing (https://github.com/martinus/robin-hood-hashing)
is considered faster then std::unordered_map/set,
so we use it to improve mindspore performance.

1. robin_hood head file in `third_party/robin_hood/include`;
2. In `utils/hash_map.h` and `utils/hash_set.h`, we define:
 - mindspore::HashMap as an alias of robin_hood::unordered_map;
 - mindspore::HashSet as an alias of robin_hood::unordered_set;
3. Replace:
 - `#include <unordered_map>` --> `#include "utils/hash_map.h"`;
 - `#include <unordered_set>` --> `#include "utils/hash_set.h"`;
 - `std::unordered_map` --> `mindspore::HashMap`;
 - `std::unordered_set` --> `mindspore::HashSet`;
 - `map.insert(std::pair(key, value))` --> `map.emplace(key, value)`;
 - `[] (const std::pair<K, V> &p) {..} ` --> `[] (const auto &p) {..} `;
4. Fix issues found by switch to robin_hood:
 - AnfNodeConfig hash and equal;
 - Fix a bug in `Slice::operator==()`;
 - Fix a bug in `CNode::HasPrimalAttr()`;
 - Fix map.erase() usage bugs: `map.erase(iter++)` --> `iter = map.erase(iter)`;
 - Fix some iterator invalidated problem;
5. Some std::unordered_map/set can not replace by robin_hood:
 - As parameter of functions that exposed to python by pybind11;
 - Use bad hash that cause robin_hood::map over_flow, such as AbstractBasePtrListHasher;
6. Update cpp unit tests;
7. Add build option '-F' to enable robin_hood, default on.
2021-11-24 10:47:40 +08:00
xiefangqi 24ac2382ff mac compile 2021-11-18 14:20:08 +08:00
yanghaoran 17ce1f5004 add nightly/weekly dev version number 2021-11-06 16:56:44 +08:00
dayschan 32ecd8ee79 GraphKernel supports CPU
only Linux system is supported now.

change the default value of `ENABLE_AKG` to off, and controlled by option `-K`.
the `ENABLE_AKG` is auto enabled when `ENABLE_GPU` or `ENABLE_D` is on.
since now, we can use `ENABLE_AKG` to control the compilation of graphkernel
and akg codes.

fix usage description for option "-K", it should be "[-K on|off]".

LLVM is required by akg for cpu kernels, so AKG for cpu is default disabled now.
2021-09-29 23:34:16 +08:00
djc b077aa1cab [feat] [assistant] [I3T96T] add new Dataset operator CMUARCTICDataset 2021-08-22 16:26:45 +08:00
djc 4e6f7dc97d [feat] [assistant] [I3T96X] add new Dataset operator LibriSpeechDataset 2021-08-22 13:39:37 +08:00
dingpeifei 02878c2378 release debug master 0730 2021-08-05 19:08:30 +08:00
zhoufeng f28c1f963a split package script
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2021-06-26 13:30:10 +08:00
zhoufeng 3a7a4d9a98 add te version check warning countdown
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2021-06-22 17:15:25 +08:00
yanghaoran 8b4ff8708f ascend 310/910 joint compile, and ascend 310 pacakge lose weight 2021-05-28 12:11:20 +08:00
yepei6 4f16b2542e update python3.9 2021-03-23 22:38:58 +08:00
yepei6 0cb6adce9e add ENABLE_GLIBCXX param 2021-03-22 20:40:01 +08:00
He Wei 7d9a783993 [auto-monad] Support side-effects by auto-monad
The basic idea is: exploits data dependency to control the execution order
of side-effect operations, and keep the semantics of ANF unchanged.

The ControlDepend primitive is removed and there are two primitives added:

1. UpdateState:
```
  a = Assign(para, value)
```
became:
```
  a = Assign(para, value, u)
  u = UpdateState(u, a)
```

2. Load:
```
  x = Add(para, value)
```
became:
```
  p = Load(para, u)
  x = Add(p, value)
  u = UpdateState(u, p)
```
2021-02-08 09:01:15 +08:00
xsmq 73b7154e55 fix cmakelint error 2021-01-23 21:04:29 +08:00
mindspore-ci-bot db741b2fb7 !10826 cpp st framework and script
From: @zhoufeng54
Reviewed-by: @kisnwang,@xsmq
Signed-off-by:
2021-01-08 21:11:18 +08:00
zhoufeng a5b2b08035 cpp st fwk and script
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2021-01-07 17:58:38 +08:00
yanghaoran 4e9c606d7d remove deprecated cmake functions 2021-01-07 16:47:53 +08:00
xuyongfei c9b072b94d remove serving in mindspore repo 2020-12-10 18:50:30 +08:00
yanghaoran 306bbe0e65 Synchronize latest Ascend software suite 09 Dec 2020, with refactored GraphEngine 2020-12-09 18:29:29 +08:00
xiaoyisd 424999267a mac build 2020-12-08 19:13:47 +08:00
jonyguo 663f121a11 update run 20201128 2020-11-30 16:10:11 +08:00
zhoufeng 183742009f mindspore cxx api for 310 inference
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2020-11-04 13:59:33 +08:00
liubuyu d914f617ed fix compile warning 2020-09-16 19:20:47 +08:00
yanghaoran 0bd4c218d4 cmake check if required packages exist 2020-09-11 15:07:17 +08:00
gukecai 264a556654 ascend profling 2020-09-01 10:27:13 +08:00
zhoufeng 22ec976ef7 fix compilation warnings
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
2020-08-21 09:44:04 +08:00
xuyongfei 3554cad325 update serving cpp_client compiler; update serving acl build option 2020-08-13 11:32:27 +08:00
liubuyu 195f04e50e compile the core directory into a separate static library 2020-08-08 21:31:41 +08:00
mindspore-ci-bot c68b92e081 !4026 fix cmakelist while compiling with debug mode
Merge pull request !4026 from 34bunny/CMake-debug-mode-fix
2020-08-06 22:42:43 +08:00
TFbunny ca8de06d18 fix build with debug mode 2020-08-05 14:19:42 -04:00
lingyunli63 b38d8ee837 use akg.ms instead of _akg 2020-08-03 10:48:11 +08:00
xsmq 5087945479 回退 'Pull Request !3236 : use akg to compile gpu ops rather than _akg' 2020-07-28 22:41:33 +08:00
mindspore-ci-bot d469a347f8 !3236 use akg to compile gpu ops rather than _akg
Merge pull request !3236 from lingyunli63/use_full_akg_to_support_gpu
2020-07-28 15:29:26 +08:00
lingyunli63 42017a19e6 enable compile gpu in akg 2020-07-27 19:20:29 +08:00
hexia ba5fa502cc restructure 2020-07-23 14:37:33 +08:00
xuyongfei 314208633b serving add acl support, extract common inference interface 2020-07-21 17:16:38 +08:00
ervinzhang bd5a777f81 introducing new C++ API 2020-07-10 16:32:38 -04:00
ZPaC a057639abc Add pslite dependency 2020-07-01 16:26:24 +08:00
Shida He 4c056855e0 Implementation for mindspore debugger 2020-06-22 17:15:30 -04:00
dinghao 8d76c708df init serving 2020-06-21 18:36:53 +08:00
gong chen a6dfa281ea Init GraphKernel.
- It provides a unified style to express graph and kernel for user.
- It provides a unified IR to represent graph and kernel for developer.
- It breaks the boundary between graph and kernel.
- It provides more opportunities to do compile optimization.
2020-06-20 22:31:54 +08:00
yanghaoran 8da4c1a763 synchronize latest ascend software 04 Jun 2020 2020-06-09 23:34:13 +08:00
zhoufeng e0c3ec6c79 check gcc version, check patch is found or not 2020-04-26 11:02:20 +08:00
dengwentao 08968c2744 modify tvm build 2020-04-21 20:54:40 +08:00
zhoufeng 638b119099 windows sqlite patch 2020-04-18 15:10:16 +08:00
chenjianping 1286767d0e support building on windows 2020-04-15 09:36:48 +00:00
zhoufeng 2dd60b4ce3 pack via cpack 2020-04-14 20:56:36 +08:00
chenzomi 65a49a21e5 fix complite error while using .so with clang on macos 2020-04-13 21:23:12 +08:00