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
592c375e
Unverified
Commit
592c375e
authored
Dec 05, 2018
by
Robert Kimball
Committed by
GitHub
Dec 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Bug fix for invalid memory access to Constant (GPU backend) (#2162)" (#2172)
This reverts commit
1c4aa225
.
parent
1c4aa225
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
gpu_external_function.cpp
src/ngraph/runtime/gpu/gpu_external_function.cpp
+2
-1
No files found.
src/ngraph/runtime/gpu/gpu_external_function.cpp
View file @
592c375e
...
...
@@ -309,7 +309,8 @@ void runtime::gpu::GPU_ExternalFunction::emit_constant_declarations()
// get an allocator for transient per kernel gpu memory
runtime
::
gpu
::
GPUAllocator
allocator
=
m_shared_context
->
m_primitive_emitter
->
get_memory_allocator
();
size_t
idx
=
allocator
.
reserve_argspace
(
c
->
get_data_ptr
(),
tv
->
size
());
size_t
idx
=
allocator
.
reserve_argspace
(
c
->
get_data_ptr
(),
tv
->
size
()
*
tv
->
get_element_type
().
size
());
m_writer
<<
"static size_t "
<<
tv
->
get_name
()
<<
"_idx = "
<<
idx
<<
";
\n
"
;
m_writer
<<
"static "
<<
tv
->
get_element_type
().
c_type_string
()
<<
"* "
<<
tv
->
get_name
()
<<
" = nullptr;
\n
"
;
...
...
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