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
9854cf7b
Commit
9854cf7b
authored
3 years ago
by
Hashim Sharif
Browse files
Options
Downloads
Patches
Plain Diff
Adding missing dummy tensor utilities needed for NVDLA compilation
parent
87dcf884
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hpvm/include/nvdla/tensor.h
+3
-0
3 additions, 0 deletions
hpvm/include/nvdla/tensor.h
hpvm/include/nvdla/tensorUtils.h
+36
-0
36 additions, 0 deletions
hpvm/include/nvdla/tensorUtils.h
with
39 additions
and
0 deletions
hpvm/include/nvdla/tensor.h
+
3
−
0
View file @
9854cf7b
...
...
@@ -23,5 +23,8 @@ struct Tensor {
struct
Dimension
dims
;
};
// NOTE: Currently only NCHW is supported due to limited cuDNN support
enum
Tensor_format_t
{
nchw
,
nhwc
};
#endif
This diff is collapsed.
Click to expand it.
hpvm/include/nvdla/tensorUtils.h
+
36
−
0
View file @
9854cf7b
...
...
@@ -48,4 +48,40 @@ float computeAccuracy3(uint32_t *labels, void *result_ptr) {
}
// tensor_runtime.h empty definitions - for NVDLA-based compilation to work (functions not actually used)
void
*
create4DTensor
(
int
data_type
,
int
data_format
,
size_t
dim1_size
,
size_t
dim2_size
,
size_t
dim3_size
,
size_t
dim4_size
){
}
void
startMemTracking
(){
}
void
freeBatchMemory
(){
}
void
hpvm_request_tensor
(
void
*
tensor
,
int
destination
){
}
void
llvm_hpvm_initializeRuntimeController
(
const
char
*
){
}
void
llvm_hpvm_invokeRtControl
(
void
*
result
,
const
char
*
str
,
int
start
,
int
end
){
}
#endif
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