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
d172456c
Commit
d172456c
authored
Mar 07, 2018
by
fenglei.tian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using temple
parent
8db26428
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
16 deletions
+17
-16
gpu_emitter.cpp
src/ngraph/runtime/gpu/gpu_emitter.cpp
+15
-15
gpu_external_function.cpp
src/ngraph/runtime/gpu/gpu_external_function.cpp
+0
-0
gpu_external_function.hpp
src/ngraph/runtime/gpu/gpu_external_function.hpp
+2
-1
No files found.
src/ngraph/runtime/gpu/gpu_emitter.cpp
View file @
d172456c
...
...
@@ -105,7 +105,7 @@ namespace ngraph
namespace
gpu
{
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Abs
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Abs
)
{
writer
<<
"{ // "
<<
node
->
get_name
()
<<
"
\n
"
;
writer
.
indent
++
;
...
...
@@ -118,7 +118,7 @@ template <>
}
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Add
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Add
)
{
writer
<<
"{ // "
<<
node
->
get_name
()
<<
"
\n
"
;
writer
.
indent
++
;
...
...
@@ -157,9 +157,9 @@ cudnnSetOpTensorDescriptor(opTensorDesc,
}
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Dot
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Dot
)
{
const
ngraph
::
op
::
Dot
*
dot
=
static_cast
<
const
ngraph
::
op
::
Dot
*>
(
n
);
const
ngraph
::
op
::
Dot
*
dot
=
static_cast
<
const
ngraph
::
op
::
Dot
*>
(
n
ode
);
const
Shape
&
arg0_shape
=
args
[
0
].
get_shape
();
const
Shape
&
arg1_shape
=
args
[
1
].
get_shape
();
if
(
arg0_shape
.
empty
()
||
arg1_shape
.
empty
())
...
...
@@ -279,7 +279,7 @@ template <>
}
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Maximum
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Maximum
)
{
writer
<<
"{ // "
<<
node
->
get_name
()
<<
"
\n
"
;
writer
.
indent
++
;
...
...
@@ -318,7 +318,7 @@ cudnnSetOpTensorDescriptor(opTensorDesc,
}
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Minimum
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Minimum
)
{
writer
<<
"{ // "
<<
node
->
get_name
()
<<
"
\n
"
;
writer
.
indent
++
;
...
...
@@ -357,7 +357,7 @@ cudnnSetOpTensorDescriptor(opTensorDesc,
}
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Negative
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Negative
)
{
writer
<<
"{ // "
<<
node
->
get_name
()
<<
"
\n
"
;
writer
.
indent
++
;
...
...
@@ -396,9 +396,9 @@ cudnnSetOpTensorDescriptor(opTensorDesc,
}
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Broadcast
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Broadcast
)
{
auto
broadcast
=
static_cast
<
const
ngraph
::
op
::
Broadcast
*>
(
n
);
auto
broadcast
=
static_cast
<
const
ngraph
::
op
::
Broadcast
*>
(
n
ode
);
auto
arg_shape
=
args
[
0
].
get_shape
();
auto
result_shape
=
out
[
0
].
get_shape
();
...
...
@@ -460,14 +460,14 @@ template <>
}
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Constant
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Constant
)
{
}
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Reshape
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Reshape
)
{
auto
reshape
=
static_cast
<
const
op
::
Reshape
*>
(
n
);
auto
reshape
=
static_cast
<
const
op
::
Reshape
*>
(
n
ode
);
writer
<<
"{ // "
<<
node
->
get_name
()
<<
"
\n
"
;
writer
.
indent
++
;
auto
arg_shape
=
args
[
0
].
get_shape
();
...
...
@@ -529,12 +529,12 @@ template <>
}
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
FunctionCall
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
FunctionCall
)
{
}
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Multiply
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Multiply
)
{
writer
<<
"{ // "
<<
node
->
get_name
()
<<
"
\n
"
;
writer
.
indent
++
;
...
...
@@ -573,7 +573,7 @@ cudnnSetOpTensorDescriptor(opTensorDesc,
}
template
<>
void
C
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Sqrt
)
void
G
PU_Emitter
::
EMITTER_DECL
(
ngraph
::
op
::
Sqrt
)
{
writer
<<
"{ // "
<<
node
->
get_name
()
<<
"
\n
"
;
writer
.
indent
++
;
...
...
src/ngraph/runtime/gpu/gpu_external_function.cpp
View file @
d172456c
This diff is collapsed.
Click to expand it.
src/ngraph/runtime/gpu/gpu_external_function.hpp
View file @
d172456c
...
...
@@ -41,7 +41,8 @@ namespace ngraph
class
GPU_CallFrame
;
using
OpFunction
=
std
::
function
<
void
(
codegen
::
CodeWriter
&
,
std
::
function
<
void
(
GPU_ExternalFunction
*
external_function
,
codegen
::
CodeWriter
&
,
const
ngraph
::
Node
*
,
const
std
::
vector
<
GPU_TensorViewWrapper
>&
inputs
,
const
std
::
vector
<
GPU_TensorViewWrapper
>&
outputs
)
>
;
...
...
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