Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
7a2f9603
Unverified
Commit
7a2f9603
authored
Jul 02, 2019
by
Louis Feng
Committed by
GitHub
Jul 02, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into louisfeng/NGCORE-456_fusion-type
parents
d9b6a0f1
05535a35
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
160 additions
and
34 deletions
+160
-34
Jenkinsfile
.ci/onnx/onnxruntime/Jenkinsfile
+133
-0
proxy.patch
.ci/onnx/onnxruntime/proxy.patch
+23
-0
cpu_call_frame.cpp
src/ngraph/runtime/cpu/cpu_call_frame.cpp
+0
-2
CMakeLists.txt
src/ngraph/runtime/plaidml/CMakeLists.txt
+1
-0
plaidml_builder.hpp
src/ngraph/runtime/plaidml/plaidml_builder.hpp
+2
-1
plaidml_ops_quantize.cpp
src/ngraph/runtime/plaidml/plaidml_ops_quantize.cpp
+0
-0
unit_test.manifest
src/ngraph/runtime/plaidml/unit_test.manifest
+1
-31
No files found.
.ci/onnx/onnxruntime/Jenkinsfile
0 → 100644
View file @
7a2f9603
// ******************************************************************************
// Copyright 2018-2019 Intel Corporation
//
// 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.
// ******************************************************************************
try
{
if
(
LABEL
.
trim
()
==
""
)
{
throw
new
Exception
();}
}
catch
(
Exception
e
){
LABEL
=
"onnx && ci"
};
echo
"${LABEL}"
NGRPAH_REPOSITORY
=
"https://github.com/NervanaSystems/ngraph.git"
NGRAPH_COMMIT_HASH
=
"${ghprbActualCommit}"
// particular nGraph PR commit hash
ONNX_REPOSITORY
=
"https://github.com/NervanaSystems/onnxruntime.git"
ONNX_RUNTIME_BRANCH
=
"release"
def
main
(){
timeout
(
activity:
true
,
time:
15
)
{
try
{
stage
(
"CloneRepos"
){
CloneRepos
()
}
stage
(
"Apply Patch"
){
ApplyPatch
()
}
stage
(
"Onnx Models"
){
BuildAndTest
()
}
}
catch
(
e
)
{
// Set result to ABORTED if exception contains exit code of a process interrupted by SIGTERM
if
(
"$e"
.
contains
(
"143"
))
{
currentBuild
.
result
=
"ABORTED"
}
else
{
currentBuild
.
result
=
"FAILURE"
}
}
stage
(
"Clean"
){
Clean
()
}
}
}
def
CloneRepos
()
{
dir
(
"ngraph"
){
checkout
([
$class
:
'GitSCM'
,
branches:
[[
name:
"${NGRAPH_COMMIT_HASH}"
]],
doGenerateSubmoduleConfigurations:
false
,
extensions:
[[
$class
:
'SubmoduleOption'
,
disableSubmodules:
false
,
parentCredentials:
true
,
recursiveSubmodules:
true
,
reference:
''
,
trackingSubmodules:
false
,
timeout:
15
]],
submoduleCfg:
[],
userRemoteConfigs:
[[
refspec:
'+refs/pull/*:refs/remotes/origin/pr/*'
,
url:
"${NGRPAH_REPOSITORY}"
]]
])
}
dir
(
"onnxruntime"
)
{
checkout
([
$class
:
'GitSCM'
,
branches:
[[
name:
"${ONNX_RUNTIME_BRANCH}"
]],
doGenerateSubmoduleConfigurations:
false
,
extensions:
[[
$class
:
'SubmoduleOption'
,
disableSubmodules:
false
,
parentCredentials:
true
,
recursiveSubmodules:
true
,
reference:
''
,
trackingSubmodules:
false
,
timeout:
15
]],
submoduleCfg:
[],
userRemoteConfigs:
[[
url:
"${ONNX_REPOSITORY}"
]]
])
}
}
def
ApplyPatch
(){
dir
(
"onnxruntime"
){
echo
"Update cmake/external/ngraph.cmake with ${NGRAPH_COMMIT_HASH}"
sh
"""
sed -i 's/set(ngraph_TAG ".*")/set(ngraph_TAG "${NGRAPH_COMMIT_HASH}")/g' cmake/external/ngraph.cmake
grep -q "${NGRAPH_COMMIT_HASH}" cmake/external/ngraph.cmake
"""
echo
"Add proxy to tools/ci_build/github/linux/docker/Dockerfile.ubuntu"
sh
"""
sed -i 's|{HTTP_PROXY}|${env.http_proxy}|g' ../ngraph/.ci/onnx/onnxruntime/proxy.patch
sed -i 's|{SOCKS_PROXY}|${env.socks_proxy}|g' ../ngraph/.ci/onnx/onnxruntime/proxy.patch
grep -q "${env.http_proxy}" ../ngraph/.ci/onnx/onnxruntime/proxy.patch
git apply ../ngraph/.ci/onnx/onnxruntime/proxy.patch
"""
}
}
def
BuildAndTest
(){
dir
(
"onnxruntime"
){
sh
"mkdir -p `pwd`/build/models && chmod 777 `pwd`/build/models"
sh
"""
//!/bin/bash
./tools/ci_build/github/linux/run_dockerbuild.sh \
-o ubuntu16.04 \
-d ngraph \
-r `pwd`/build -x '--use_ngraph --use_full_protobuf --test_data_url https://onnxruntimetestdata.blob.core.windows.net/models/20190327.zip --test_data_checksum 45166d81c021c8aae212b53c92101792'
"""
}
}
def
Clean
(){
deleteDir
()
}
node
(
LABEL
)
{
main
()
}
.ci/onnx/onnxruntime/proxy.patch
0 → 100644
View file @
7a2f9603
diff --git a/tools/ci_build/github/linux/docker/Dockerfile.ubuntu b/tools/ci_build/github/linux/docker/Dockerfile.ubuntu
index bdff95e1..cd9c0008 100644
--- a/tools/ci_build/github/linux/docker/Dockerfile.ubuntu
+++ b/tools/ci_build/github/linux/docker/Dockerfile.ubuntu
@@ -3,6 +3,18 @@ FROM ubuntu:${OS_VERSION}
ARG PYTHON_VERSION=3.5
+ENV http_proxy={HTTP_PROXY}
+ENV socks_proxy={SOCKS_PROXY}
+ENV https_proxy={HTTP_PROXY}
+ENV ftp_proxy={HTTP_PROXY}
+ENV rsync_proxy={HTTP_PROXY}
+ENV no_proxy=intel.com,.intel.com,localhost
+ENV HTTP_PROXY={HTTP_PROXY}
+ENV HTTPS_PROXY={HTTP_PROXY}
+ENV FTP_PROXY={HTTP_PROXY}
+ENV SOCKS_PROXY={SOCKS_PROXY}
+ENV NO_PROXY=intel.com,.intel.com,localhost
+
ADD scripts /tmp/scripts
RUN /tmp/scripts/install_ubuntu.sh -p ${PYTHON_VERSION} && /tmp/scripts/install_deps.sh && rm -rf /tmp/scripts
src/ngraph/runtime/cpu/cpu_call_frame.cpp
View file @
7a2f9603
...
...
@@ -216,8 +216,6 @@ void runtime::cpu::CPU_CallFrame::setup_runtime_context()
{
// single thread for codegen
NGRAPH_CHECK
(
m_num_ctx
==
1
);
ctx
->
mkldnn_primitives
.
swap
(
mkldnn_emitter
->
get_mkldnn_primitives
());
ctx
->
mkldnn_workspaces
=
mkldnn_emitter
->
get_mkldnn_workspaces
();
}
ctx
->
states
=
m_external_function
->
m_states
.
data
();
...
...
src/ngraph/runtime/plaidml/CMakeLists.txt
View file @
7a2f9603
...
...
@@ -41,6 +41,7 @@ set(SRC
plaidml_ops_one_hot.cpp
plaidml_ops_passthrough.cpp
plaidml_ops_pool.cpp
plaidml_ops_quantize.cpp
plaidml_ops_reduce.cpp
plaidml_ops_replace_slice.cpp
plaidml_ops_replicate.cpp
...
...
src/ngraph/runtime/plaidml/plaidml_builder.hpp
View file @
7a2f9603
...
...
@@ -188,7 +188,8 @@ class ngraph::runtime::plaidml::builder::Elementwise final : public Statement
{
public
:
Elementwise
(
std
::
string
lhs
,
std
::
string
rhs
);
void
set_lhs
(
const
std
::
string
&
lhs
)
{
m_lhs
=
lhs
;
}
void
set_rhs
(
const
std
::
string
&
rhs
)
{
m_rhs
=
rhs
;
}
private
:
friend
class
Function
;
...
...
src/ngraph/runtime/plaidml/plaidml_ops_quantize.cpp
0 → 100644
View file @
7a2f9603
This diff is collapsed.
Click to expand it.
src/ngraph/runtime/plaidml/unit_test.manifest
View file @
7a2f9603
...
...
@@ -60,37 +60,7 @@ generate_mask
generate_mask2
avg_pool_3d
avg_pool_3d_uneven_strided_padded_include_in_computation
quantize_dynamic_offset # Quantization/Dequantization is unimplemented
dequantize_dynamic_offset # Quantization/Dequantization is unimplemented
dequantize_int8_zero_offset # Quantization/Dequantization is unimplemented
dequantize_int32 # Quantization/Dequantization is unimplemented
dequantize_int32_zero_offset # Quantization/Dequantization is unimplemented
dequantize_zero_offset # Quantization/Dequantization is unimplemented
quantize_ROUND_NEAREST_TOWARD_ZERO # Quantization/Dequantization is unimplemented
quantize_ROUND_NEAREST_UPWARD # Quantization/Dequantization is unimplemented
quantize_ROUND_NEAREST_DOWNWARD # Quantization/Dequantization is unimplemented
quantize_ROUND_NEAREST_TOWARD_EVEN # Quantization/Dequantization is unimplemented
quantize_ROUND_NEAREST_TOWARD_INFINITY # Quantization/Dequantization is unimplemented
quantize_ROUND_TOWARD_INFINITY # Quantization/Dequantization is unimplemented
quantize_ROUND_TOWARD_ZERO # Quantization/Dequantization is unimplemented
quantize_ROUND_UP # Quantization/Dequantization is unimplemented
quantize_ROUND_DOWN # Quantization/Dequantization is unimplemented
quantize # Quantization/Dequantization is unimplemented
quantize_zero_offset # Quantization/Dequantization is unimplemented
quantize_axes # Quantization/Dequantization is unimplemented
quantize_dynamic_offset # Quantization/Dequantization is unimplemented
quantize_int8 # Quantization/Dequantization is unimplemented
quantize_int8_zero_offset # Quantization/Dequantization is unimplemented
quantize_int32 # Quantization/Dequantization is unimplemented
quantize_int32_zero_offset # Quantization/Dequantization is unimplemented
quantize_clamp # Quantization/Dequantization is unimplemented
quantize_clamp_int8 # Quantization/Dequantization is unimplemented
quantize_clamp_int32 # Quantization/Dequantization is unimplemented
quantize_clamp_int32_zero_offset # Quantization/Dequantization is unimplemented
quantize_clamp_uint8 # Quantization/Dequantization is unimplemented
dequantize # Quantization/Dequantization is unimplemented
dequantize_axes # Quantization/Dequantization is unimplemented
dequantize_int8 # Quantization/Dequantization is unimplemented
quantize_clamp_int32 # Requires fp64 inputs, which won't work on GPUs
numeric_float_nan
numeric_double_nan
shape_of_scalar
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment