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
ec0f8d0f
Commit
ec0f8d0f
authored
4 years ago
by
hsharif3
Browse files
Options
Downloads
Patches
Plain Diff
Update TensorRT README.md
parent
545b7b35
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/projects/hpvm-tensor-rt/README.md
+28
-11
28 additions, 11 deletions
hpvm/projects/hpvm-tensor-rt/README.md
with
28 additions
and
11 deletions
hpvm/projects/hpvm-tensor-rt/README.md
+
28
−
11
View file @
ec0f8d0f
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
## Building Tensor Runtime
## Building Tensor Runtime
Tensor Runtime and the DNN sources using the Tensor runtime are built with the unified HPVM build system. These
Tensor Runtime and the DNN sources using the Tensor runtime are built with the unified HPVM build system. These
can also be separately built. HPVM Tensor Runtime can be built as:
can also be separately built. HPVM Tensor Runtime can be built
under the
`build`
directory
as:
```
```
make -j ${NUM_THREADS} tensor_runtime
make -j ${NUM_THREADS} tensor_runtime
...
@@ -18,17 +18,34 @@ make -j ${NUM_THREADS} tensor_runtime
...
@@ -18,17 +18,34 @@ make -j ${NUM_THREADS} tensor_runtime
The tensor runtime is built as a static library under
`build/lib/liibtensor_runtime.a`
The tensor runtime is built as a static library under
`build/lib/liibtensor_runtime.a`
### TensorRT DNN Benchmarks
## Tensor Runtime APIs
To assist development of tensor-based programs using only the tensor runtime, we include
sources under
`dnn_sources`
that directly invoke the HPVM Tensor Runtime API calls for tensor operations, e.g., convolution, matrix multiplication,
add, relu, among others.
Each benchmark can be build under your
`build`
directory as:
-
For examples of using
`tensor_runtime`
functions, see
`dnn_sources/src/alexnet_cifar10.cc`
.
```
-
Also, try running
`build/alexnet_cifar10`
which is compiled from that file and runnable out of the box.
make -j ${NUM_THREADS} ${BENCHMARK}
```
## Directory Structure
Currently, 17 Benchmarks included:
-
`tensor_runtime`
:
| | |
|------------------------|------------------------|
-
`dnn_sources`
:
| lenet_mnist_fp32 | lenet_mnist_fp16 |
| alexnet_cifar10_fp32 | alexnet_cifar10_fp16 |
| alexnet2_cifar10_fp32 | alexnet2_cifar10_fp16 |
| vgg16_cifar10_fp32 | vgg16_cifar10_fp16 |
| vgg16_cifar100_fp32 | vgg16_cifar100_fp16 |
| mobilenet_cifar10_fp32 | mobilenet_cifar10_fp16 |
| resnet18_cifar10_fp32 | resnet18_cifar10_fp16 |
| alexnet_imagenet_fp32 | |
| vgg16_imagenet_fp32 | |
| resnet50_imagenet_fp32 | |
`_fp32`
suffix denotes fp32 binaries - these use the FP32 API calls
`_fp_16`
suffix denotes fp16 binaries - these use FP16 (half precision) calls.
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