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
589a1c0e
Commit
589a1c0e
authored
Nov 02, 2018
by
Robert Kimball
Committed by
Scott Cyphers
Nov 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix centos gpu build (#1950)
parent
f9fd9d4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
28 deletions
+18
-28
cuda_emitter.cpp
src/ngraph/runtime/gpu/cuda_emitter.cpp
+5
-7
cudnn_emitter.cpp
src/ngraph/runtime/gpu/cudnn_emitter.cpp
+13
-21
No files found.
src/ngraph/runtime/gpu/cuda_emitter.cpp
View file @
589a1c0e
...
...
@@ -1520,11 +1520,9 @@ size_t runtime::gpu::CUDAEmitter::build_primitive(const op::MaxPool* node)
padded_size
*
args
[
0
].
get_element_type
().
size
());
auto
&
cuda_emitter
=
m_primitive_emitter
->
get_cuda_emitter
();
pad_index
=
cuda_emitter
->
build_pad
({{
input_type
,
output_type
}},
input_shape
,
input_shape_padded
,
padding_below
,
padding_interior
);
std
::
vector
<
std
::
string
>
dtypes
=
{
input_type
,
output_type
};
pad_index
=
cuda_emitter
->
build_pad
(
dtypes
,
input_shape
,
input_shape_padded
,
padding_below
,
padding_interior
);
// asymetric padding has been applied, zero out padding vectors to
// ensure cuDNN does not assume padding during pooling
...
...
@@ -2573,8 +2571,8 @@ size_t runtime::gpu::CUDAEmitter::build_primitive(const op::ReplaceSlice* node,
Shape
input_strides
=
row_major_strides
(
input_shape
);
Shape
replace_strides
=
row_major_strides
(
replace_shape
);
s
ize_t
pad_index
=
build_pad
(
{{
input_type
,
output_type
}}
,
replace_shape
,
input_shape
,
lower_bounds
,
slice_strides
);
s
td
::
vector
<
std
::
string
>
dtypes
=
{
input_type
,
output_type
};
size_t
pad_index
=
build_pad
(
dtypes
,
replace_shape
,
input_shape
,
lower_bounds
,
slice_strides
);
if
(
in_place_op
)
{
...
...
src/ngraph/runtime/gpu/cudnn_emitter.cpp
View file @
589a1c0e
...
...
@@ -529,12 +529,10 @@ size_t runtime::gpu::CUDNNEmitter::build_primitive(const op::Convolution* node)
idx_workspace
=
allocator
.
reserve_workspace
(
temp_size
,
true
);
auto
&
cuda_emitter
=
m_primitive_emitter
->
get_cuda_emitter
();
pad_index
=
cuda_emitter
->
build_pad
({{
args
[
0
].
get_element_type
().
c_type_string
(),
out
[
0
].
get_element_type
().
c_type_string
()}},
input_shape
,
input_shape_padded
,
padding_below
,
padding_interior
);
std
::
vector
<
std
::
string
>
dtypes
=
{
args
[
0
].
get_element_type
().
c_type_string
(),
out
[
0
].
get_element_type
().
c_type_string
()};
pad_index
=
cuda_emitter
->
build_pad
(
dtypes
,
input_shape
,
input_shape_padded
,
padding_below
,
padding_interior
);
// asymetric padding has been applied, zero out padding vectors to
// ensure cudnn does not assume padding
...
...
@@ -653,11 +651,9 @@ size_t runtime::gpu::CUDNNEmitter::build_primitive(const op::ConvolutionBackprop
idx_workspace
=
allocator
.
reserve_workspace
(
temp_size
,
true
);
auto
&
cuda_emitter
=
m_primitive_emitter
->
get_cuda_emitter
();
pad_index
=
cuda_emitter
->
build_pad
({{
input_type
,
output_type
}},
output_shape
,
output_shape_padded
,
padding_below
,
padding_interior
);
std
::
vector
<
std
::
string
>
dtypes
=
{
input_type
,
output_type
};
pad_index
=
cuda_emitter
->
build_pad
(
dtypes
,
output_shape
,
output_shape_padded
,
padding_below
,
padding_interior
);
slice_index
=
cuda_emitter
->
build_slice
({{
input_type
,
output_type
}},
output_shape_padded
,
...
...
@@ -772,11 +768,9 @@ size_t runtime::gpu::CUDNNEmitter::build_primitive(const op::ConvolutionBackprop
idx_workspace
=
allocator
.
reserve_workspace
(
temp_size
,
true
);
auto
&
cuda_emitter
=
m_primitive_emitter
->
get_cuda_emitter
();
pad_index
=
cuda_emitter
->
build_pad
({{
input_type
,
output_type
}},
input_shape_0
,
input_shape_padded
,
padding_below
,
padding_interior
);
std
::
vector
<
std
::
string
>
dtypes
=
{
input_type
,
output_type
};
pad_index
=
cuda_emitter
->
build_pad
(
dtypes
,
input_shape_0
,
input_shape_padded
,
padding_below
,
padding_interior
);
// asymetric padding has been applied, zero out padding vectors to
// ensure cudnn does not assume padding
...
...
@@ -865,11 +859,9 @@ size_t runtime::gpu::CUDNNEmitter::build_primitive(const op::MaxPool* node)
padded_size
*
args
[
0
].
get_element_type
().
size
());
auto
&
cuda_emitter
=
m_primitive_emitter
->
get_cuda_emitter
();
pad_index
=
cuda_emitter
->
build_pad
({{
input_type
,
output_type
}},
input_shape
,
input_shape_padded
,
padding_below
,
padding_interior
);
std
::
vector
<
std
::
string
>
dtypes
=
{
input_type
,
output_type
};
pad_index
=
cuda_emitter
->
build_pad
(
dtypes
,
input_shape
,
input_shape_padded
,
padding_below
,
padding_interior
);
// asymetric padding has been applied, zero out padding vectors to
// ensure cuDNN does not assume padding during pooling
...
...
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