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
e1769a75
Commit
e1769a75
authored
Feb 21, 2018
by
fenglei.tian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix void pointer cast bug
parent
40e64c21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
gpu_external_function.cpp
src/ngraph/runtime/gpu/gpu_external_function.cpp
+1
-1
gpu_util.hpp
src/ngraph/runtime/gpu/gpu_util.hpp
+1
-1
No files found.
src/ngraph/runtime/gpu/gpu_external_function.cpp
View file @
e1769a75
...
...
@@ -511,7 +511,7 @@ void runtime::gpu::GPU_ExternalFunction::compile()
{
stringstream
ss
;
ss
<<
"(("
<<
tensor
->
get_element_type
().
c_type_string
()
<<
"*)(pool_base_ptr + "
<<
tensor
->
get_pool_offset
()
<<
"))"
;
<<
"*)(
(char *)
pool_base_ptr + "
<<
tensor
->
get_pool_offset
()
<<
"))"
;
m_variable_name_map
[
tensor
->
get_name
()]
=
ss
.
str
();
}
}
...
...
src/ngraph/runtime/gpu/gpu_util.hpp
View file @
e1769a75
...
...
@@ -24,7 +24,7 @@ namespace ngraph
{
void
print_gpu_f32_tensor
(
void
*
p
,
size_t
element_count
,
size_t
element_size
);
void
check_cuda_errors
(
CUresult
err
);
void
*
*
create_gpu_buffer
(
size_t
buffer_size
);
void
*
create_gpu_buffer
(
size_t
buffer_size
);
void
cuda_memcpyDtD
(
void
*
d
,
void
*
s
,
size_t
element_count
,
size_t
element_size
);
void
cuda_memcpyHtD
(
void
*
d
,
void
*
s
,
size_t
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