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
92ec76b1
Commit
92ec76b1
authored
Sep 28, 2018
by
Fenglei
Committed by
Robert Kimball
Sep 28, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set context current during each call (#1707)
parent
35082ab6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
gpu_backend.cpp
src/ngraph/runtime/gpu/gpu_backend.cpp
+2
-0
No files found.
src/ngraph/runtime/gpu/gpu_backend.cpp
View file @
92ec76b1
...
...
@@ -82,6 +82,8 @@ runtime::gpu::GPU_Backend::BackendContext::BackendContext()
void
runtime
::
gpu
::
GPU_Backend
::
BackendContext
::
prepare_runtime_context
()
{
//set context current each time in case thread changed
m_cuda_manager
->
SetContextCurrent
();
// add pointers to gpu primitives into the gpu runtime context
m_runtime_context
->
gpu_primitives
=
m_primitive_emitter
->
get_primitives
().
data
();
m_runtime_context
->
gpu_memory_primitives
=
m_primitive_emitter
->
get_memory_primitives
().
data
();
...
...
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