Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
hpvm-release
Commits
dff48c32
Commit
dff48c32
authored
5 years ago
by
Yifan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
Added pipeline output in cava
parent
d2b212ef
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hpvm/test/parboil/benchmarks/hpvm-cava/src/main.c
+11
-1
11 additions, 1 deletion
hpvm/test/parboil/benchmarks/hpvm-cava/src/main.c
with
11 additions
and
1 deletion
hpvm/test/parboil/benchmarks/hpvm-cava/src/main.c
+
11
−
1
View file @
dff48c32
...
...
@@ -17,6 +17,11 @@ int NUM_CLASSES;
int
INPUT_DIM
;
int
NUM_WORKER_THREADS
;
// Type of struct holding the return value from the last node.
struct
RetStruct
{
size_t
bytesRet
;
};
// Type of struct that is used to pass arguments to the HPVM dataflow graph
// using the hpvm launch operation
typedef
struct
__attribute__
((
__packed__
))
{
...
...
@@ -34,7 +39,8 @@ typedef struct __attribute__((__packed__)) {
float
*
coefs
;
size_t
bytes_coefs
;
float
*
l2_dist
;
size_t
bytes_l2_dist
;
float
*
tone_map
;
size_t
bytes_tone_map
;
size_t
row_size
;
size_t
col_size
;
int
row_size
;
int
col_size
;
struct
RetStruct
ret
;
// Instance of RetStruct holding the return value.
}
RootIn
;
...
...
@@ -807,6 +813,10 @@ int main(int argc, char* argv[]) {
__visc__wait
(
camPipeDFG
);
printf
(
"
\n\n
Pipeline execution completed!
\n
"
);
printf
(
"Pipeline final stage returned %lu; should be %lu
\n
"
,
rootArgs
->
ret
.
bytesRet
,
bytes_image
);
printf
(
"
\n\n
Requesting memory!
\n
"
);
// Request data from graph.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment