-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Update nGraph to v0.22.1 #1582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update nGraph to v0.22.1 #1582
Changes from all commits
24ad4ff
a7534e4
7ff787c
2b496ae
c1b12e0
257b42a
94cc391
75387ac
8a004fb
5954729
873bc4a
3fb2fc7
b47380f
cba9e61
e63f1f5
80bf46b
26d5a7c
098dd6f
4892dd2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ set(ngraph_SRC ${CMAKE_CURRENT_BINARY_DIR}/ngraph/src/project_ngraph) | |
| set(prebuilt_ONNX_SOURCE_DIR "${PROJECT_SOURCE_DIR}/external/onnx") | ||
| set(prebuilt_ONNX_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/onnx") | ||
| set(ngraph_URL "https://github.com/NervanaSystems/ngraph.git") | ||
| set(ngraph_TAG "v0.18.1") | ||
| set(ngraph_TAG "v0.22.1") | ||
|
|
||
| # Libraries for python package. | ||
| if (WIN32) | ||
|
|
@@ -42,7 +42,7 @@ else() | |
| endif() | ||
|
|
||
| # discard prior changes due to unblock incremental builds. | ||
| set(NGRAPH_PATCH_DISCARD_COMMAND cd ${ngraph_SRC} && git checkout -- .) | ||
| set(NGRAPH_PATCH_DISCARD_COMMAND cd ${ngraph_SRC} && git reset HEAD --hard && git clean -fx) | ||
|
|
||
| if (MSVC) | ||
| set(prebuilt_ONNX_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/onnx/${CMAKE_BUILD_TYPE}") | ||
|
|
@@ -54,12 +54,12 @@ if (MSVC) | |
| PREFIX ngraph | ||
| GIT_REPOSITORY ${ngraph_URL} | ||
| GIT_TAG ${ngraph_TAG} | ||
| GIT_CONFIG core.autocrlf=input | ||
| PATCH_COMMAND ${NGRAPH_PATCH_DISCARD_COMMAND} | ||
| COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/patches/ngraph/ngraph_onnx.cmake ${ngraph_SRC}/cmake/external_onnx.cmake | ||
| COMMAND git apply --ignore-space-change --ignore-whitespace ${PROJECT_SOURCE_DIR}/patches/ngraph/ngraph_protobuf.patch | ||
| COMMAND git apply --ignore-space-change --ignore-whitespace ${PROJECT_SOURCE_DIR}/patches/ngraph/ngraph_fix_install_error.patch | ||
| COMMAND git apply --ignore-space-change --ignore-whitespace ${PROJECT_SOURCE_DIR}/patches/ngraph/ngraph_fix_library_path.patch | ||
| COMMAND git apply --ignore-space-change --ignore-whitespace ${PROJECT_SOURCE_DIR}/patches/ngraph/ngraph_fix_memory.patch | ||
| COMMAND git apply --ignore-space-change --ignore-whitespace ${PROJECT_SOURCE_DIR}/patches/ngraph/ngraph_fix_mkldnn_missing_symbol.patch | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. similar comment to above. which version of ngraph will contain the fix for mkldnn missing symbol so we won't need to patch anymore?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| CMAKE_ARGS | ||
| -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} | ||
| -DNGRAPH_DEX_ONLY=ON | ||
|
|
||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| cmake/external_mkldnn.cmake | 1 + | ||
| cmake/mkldnn_fix_missing_symbol.patch | 99 +++++++++++++++++++++++++++++++++++ | ||
| 2 files changed, 100 insertions(+) | ||
| create mode 100644 cmake/mkldnn_fix_missing_symbol.patch | ||
|
|
||
| diff --git a/cmake/external_mkldnn.cmake b/cmake/external_mkldnn.cmake | ||
| index 7874aca76..bbae6d1a4 100644 | ||
| --- a/cmake/external_mkldnn.cmake | ||
| +++ b/cmake/external_mkldnn.cmake | ||
| @@ -194,7 +194,8 @@ if (WIN32) | ||
| CONFIGURE_COMMAND | ||
| PATCH_COMMAND ${MKLDNN_PATCH_REVERT_COMMAND} | ||
| COMMAND git apply --ignore-space-change --ignore-whitespace ${CMAKE_SOURCE_DIR}/cmake/${MKLDNN_PATCH_FILE} | ||
| COMMAND git apply --ignore-space-change --ignore-whitespace ${CMAKE_SOURCE_DIR}/cmake/mkldnn_fix_memory.patch | ||
| + COMMAND git apply --ignore-space-change --ignore-whitespace ${CMAKE_SOURCE_DIR}/cmake/mkldnn_fix_missing_symbol.patch | ||
| CMAKE_GENERATOR ${CMAKE_GENERATOR} | ||
| CMAKE_GENERATOR_PLATFORM ${CMAKE_GENERATOR_PLATFORM} | ||
| CMAKE_GENERATOR_TOOLSET ${CMAKE_GENERATOR_TOOLSET} | ||
| diff --git a/cmake/mkldnn_fix_missing_symbol.patch b/cmake/mkldnn_fix_missing_symbol.patch | ||
| new file mode 100644 | ||
| index 000000000..ea1a3bd61 | ||
| --- /dev/null | ||
| +++ b/cmake/mkldnn_fix_missing_symbol.patch | ||
| @@ -0,0 +1,40 @@ | ||
| +commit d485a54ac2b07b7349dabd833961415315a18fea | ||
| +Author: Denis Samoilov <denis.samoylov@intel.com> | ||
| +Date: Sun Apr 14 20:11:33 2019 -0700 | ||
| + | ||
| + cpu: gemv: fix unresolved symbol | ||
| + | ||
| + Fixes #456 | ||
| + | ||
| +diff --git a/src/cpu/gemm/gemm_driver.cpp b/src/cpu/gemm/gemm_driver.cpp | ||
| +index 0773b212..df7bc44d 100644 | ||
| +--- a/src/cpu/gemm/gemm_driver.cpp | ||
| ++++ b/src/cpu/gemm/gemm_driver.cpp | ||
| +@@ -1304,10 +1304,8 @@ static mkldnn_status_t gemm_threading_driver( | ||
| + (float *) arg->co); | ||
| + } | ||
| + | ||
| +- if (data_traits<a_type>::data_type == data_type::s8) { | ||
| +- if (gemm_s8u8s32_jump_to_gemv_s8u8s32(arg)) { | ||
| +- return mkldnn_success; | ||
| +- } | ||
| ++ if (gemm_s8u8s32_jump_to_gemv_s8u8s32(arg)) { | ||
| ++ return mkldnn_success; | ||
| + } | ||
| + | ||
| + int nthr = (mkldnn_in_parallel()) ? 1 : mkldnn_get_max_threads(); | ||
| +diff --git a/src/cpu/gemm/s8x8s32/jit_avx512_core_gemv_s8u8s32.cpp b/src/cpu/gemm/s8x8s32/jit_avx512_core_gemv_s8u8s32.cpp | ||
| +index 73d50e40..81646a43 100644 | ||
| +--- a/src/cpu/gemm/s8x8s32/jit_avx512_core_gemv_s8u8s32.cpp | ||
| ++++ b/src/cpu/gemm/s8x8s32/jit_avx512_core_gemv_s8u8s32.cpp | ||
| +@@ -29,6 +29,10 @@ namespace cpu { | ||
| + template <typename T> | ||
| + int gemm_s8u8s32_jump_to_gemv_s8u8s32(T *arg); | ||
| + | ||
| ++template <> | ||
| ++int gemm_s8u8s32_jump_to_gemv_s8u8s32( | ||
| ++ gemm_info_t<float, float, float> *arg) { return 0; } | ||
| ++ | ||
| + template <> | ||
| + int gemm_s8u8s32_jump_to_gemv_s8u8s32( | ||
| + gemm_info_t<int8_t, uint8_t, int32_t> *arg) { |
Uh oh!
There was an error while loading. Please reload this page.