Commit Graph

18 Commits

Author SHA1 Message Date
gongdaguo 487dd3ebed fix benchmark build 2021-12-28 12:01:11 +08:00
zhengyuanhua 889a613327 online infer 2021-12-22 21:42:47 +08:00
zhaodezan e77b4b3c2f 3403 compile ci 2021-12-18 15:58:13 +08:00
gongdaguo bbfd0dbdce add 35xx build 2021-12-18 09:34:52 +08:00
zhaodezan e436604c2a add dpico benchmark core code 2021-12-09 09:07:59 +08:00
gongdaguo 4ddf64944f del glog patch 2021-12-06 15:50:23 +08:00
He Wei d2bb6303b7 Provide new mindspore core API classes
1. namespace is mindspore::api;
2. API header files located in mindspore/core/mindapi;
3. We use pimpl pattern to provide a wrapper layer for api;
4. Check mindapi_test.cc for usage examples.
2021-12-03 11:03:22 +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
gongdaguo a7461c2156 fix glog 2021-11-18 20:03:06 +08:00
sunsuodong 83875cf9b8 fix vs build 2021-11-13 18:46:12 -08:00
gongdaguo e027ff7dd7 add himix100 build 2021-10-10 20:57:59 +08:00
xuanyue aa9620b15d delete plugin and windows do not support extension 2021-09-21 21:00:10 +08:00
chaijun db8f339d94 fix parser build 2021-09-15 15:06:18 +08:00
sunsuodong d1807cc8c0 debug_rpath 2021-08-18 00:44:58 +08:00
sunsuodong 67814c90ae secure option 2021-08-17 08:58:42 +08:00
sunsuodong ea93087683 :support vs build 2021-08-01 22:11:21 +08:00
zhanyuan 5720ae8392 [MSLITE] support compiling micro runtime for openharmony lite 2021-07-27 11:22:56 +08:00
jianghui58 7fe35c04de fix nnie ci 2021-07-21 10:21:54 +08:00