Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
684f2d7b
Unverified
Commit
684f2d7b
authored
Apr 30, 2020
by
ZHANG Hao
Committed by
GitHub
Apr 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[VTA][Runtime] clear sram index in reset (#5470)
Co-authored-by: Zhang Hao <zhanghao@4paradigm.com>
parent
046b0d98
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
vta/runtime/runtime.cc
+10
-0
No files found.
vta/runtime/runtime.cc
View file @
684f2d7b
...
@@ -351,6 +351,9 @@ class BaseQueue {
...
@@ -351,6 +351,9 @@ class BaseQueue {
*/
*/
virtual
void
Reset
()
{
virtual
void
Reset
()
{
dram_buffer_
.
clear
();
dram_buffer_
.
clear
();
// reset to 0 as we always copy data to area starting from fpga_buff base
// we do mem copy for every DeviceRun
sram_end_
=
0
;
sram_begin_
=
sram_end_
;
sram_begin_
=
sram_end_
;
}
}
...
@@ -446,6 +449,13 @@ class UopQueue : public BaseQueue<VTAUop> {
...
@@ -446,6 +449,13 @@ class UopQueue : public BaseQueue<VTAUop> {
}
}
/*! \brief clear cache and reset base queue buffer.*/
/*! \brief clear cache and reset base queue buffer.*/
void
Reset
()
{
void
Reset
()
{
// unmark "cached" status
// as we cannot assume it is still in SRAM across DeviceRun
for
(
UopKernel
*
kernel
:
cache_
)
{
kernel
->
sram_begin_
=
0
;
kernel
->
sram_end_
=
0
;
}
cache_
.
clear
();
cache_
.
clear
();
cache_idx_
=
0
;
cache_idx_
=
0
;
BaseQueue
<
VTAUop
>::
Reset
();
BaseQueue
<
VTAUop
>::
Reset
();
...
...
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