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
24054d8e
Commit
24054d8e
authored
Feb 14, 2018
by
fenglei.tian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clang-format-3.9
parent
938329f0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
10 deletions
+12
-10
gpu_call_frame.cpp
src/ngraph/runtime/gpu/gpu_call_frame.cpp
+1
-1
gpu_call_frame.hpp
src/ngraph/runtime/gpu/gpu_call_frame.hpp
+1
-1
gpu_emitter.cpp
src/ngraph/runtime/gpu/gpu_emitter.cpp
+0
-0
gpu_external_function.cpp
src/ngraph/runtime/gpu/gpu_external_function.cpp
+9
-7
gpu_tensor_view.cpp
src/ngraph/runtime/gpu/gpu_tensor_view.cpp
+1
-1
No files found.
src/ngraph/runtime/gpu/gpu_call_frame.cpp
View file @
24054d8e
...
...
@@ -30,7 +30,7 @@ runtime::gpu::GPU_CallFrame::GPU_CallFrame(std::shared_ptr<GPU_ExternalFunction>
:
m_external_function
(
external_function
)
,
m_compiled_function
(
compiled_function
)
{
cublasStatus_t
cublasStatus
=
cublasCreate
(
&
m_cublas_handle
);
cublasStatus_t
cublasStatus
=
cublasCreate
(
&
m_cublas_handle
);
if
(
cublasStatus
!=
CUBLAS_STATUS_SUCCESS
)
{
std
::
cout
<<
"error : "
<<
(
int
)
cublasStatus
<<
std
::
endl
;
...
...
src/ngraph/runtime/gpu/gpu_call_frame.hpp
View file @
24054d8e
...
...
@@ -21,8 +21,8 @@
#include <vector>
#include <cuda_runtime.h>
#include "cublas_v2.h"
#include <cudnn.h>
#include "cublas_v2.h"
#include "ngraph/function.hpp"
#include "ngraph/runtime/call_frame.hpp"
...
...
src/ngraph/runtime/gpu/gpu_emitter.cpp
View file @
24054d8e
This diff is collapsed.
Click to expand it.
src/ngraph/runtime/gpu/gpu_external_function.cpp
View file @
24054d8e
...
...
@@ -23,10 +23,10 @@
#include <typeinfo>
#include <unordered_map>
#include <cuda_runtime.h>
#include <cudnn_v7.h>
#include "cublas_v2.h"
#include "cuda.h"
#include <cuda_runtime.h>
#include <cudnn_v7.h>
#include "cublas_v2.h"
#include "cuda.h"
#include "ngraph/codegen/code_writer.hpp"
#include "ngraph/codegen/compiler.hpp"
...
...
@@ -359,8 +359,9 @@ void runtime::gpu::GPU_ExternalFunction::compile()
writer
<<
"// Declare all functions
\n
"
;
for
(
shared_ptr
<
Function
>
f
:
pass_manager
.
get_state
().
get_functions
())
{
writer
<<
"extern
\"
C
\"
void "
<<
f
->
get_name
()
<<
"(void** inputs, void** outputs, cublasHandle_t& cublas_handle, cudnnHandle_t& cudnn_handle);
\n
"
;
writer
<<
"extern
\"
C
\"
void "
<<
f
->
get_name
()
<<
"(void** inputs, void** outputs, "
"cublasHandle_t& cublas_handle, "
"cudnnHandle_t& cudnn_handle);
\n
"
;
}
writer
<<
"
\n
"
;
...
...
@@ -478,7 +479,8 @@ void runtime::gpu::GPU_ExternalFunction::compile()
}
writer
<<
"extern
\"
C
\"
void "
<<
current_function
->
get_name
();
writer
<<
"(void** inputs, void** outputs, cublasHandle_t& cublas_handle, cudnnHandle_t& cudnn_handle)
\n
"
;
writer
<<
"(void** inputs, void** outputs, cublasHandle_t& cublas_handle, cudnnHandle_t& "
"cudnn_handle)
\n
"
;
writer
<<
"{
\n
"
;
writer
.
indent
++
;
...
...
src/ngraph/runtime/gpu/gpu_tensor_view.cpp
View file @
24054d8e
...
...
@@ -41,7 +41,7 @@ runtime::gpu::GPU_TensorView::GPU_TensorView(const ngraph::element::Type& elemen
m_buffer_size
=
m_descriptor
->
get_tensor_view_layout
()
->
get_size
()
*
element_type
.
size
();
if
(
m_buffer_size
>
0
)
{
cudaMalloc
((
void
**
)
&
m_allocated_buffer_pool
,
m_buffer_size
);
cudaMalloc
((
void
**
)
&
m_allocated_buffer_pool
,
m_buffer_size
);
}
}
...
...
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