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
d4df33b8
Commit
d4df33b8
authored
4 years ago
by
Yifan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
Build with X86;RICSV by default
parent
b3135926
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+3
-3
3 additions, 3 deletions
README.md
hpvm/scripts/hpvm_installer.py
+5
-6
5 additions, 6 deletions
hpvm/scripts/hpvm_installer.py
with
8 additions
and
9 deletions
README.md
+
3
−
3
View file @
d4df33b8
...
@@ -44,16 +44,16 @@ The following components are mandatory for building HPVM:
...
@@ -44,16 +44,16 @@ The following components are mandatory for building HPVM:
conda activate hpvm
conda activate hpvm
```
```
1.
Change directory to
`./hpvm`
in the repo and run the installer
with recommended options
:
1.
Change directory to
`./hpvm`
in the repo and run the installer:
```bash
```bash
cd hpvm/; ./install.sh
-t "X86"
cd hpvm/; ./install.sh
```
```
This will download additional dependencies, configure HPVM and build HPVM.
This will download additional dependencies, configure HPVM and build HPVM.
- If you have `ninja` installed (in the place of `make`),
- If you have `ninja` installed (in the place of `make`),
you may use `./install.sh --ninja
-t "X86"
` to build HPVM with ninja.
you may use `./install.sh --ninja` to build HPVM with ninja.
### Generating NVDLA Buffer from PyTorch DNN
### Generating NVDLA Buffer from PyTorch DNN
...
...
This diff is collapsed.
Click to expand it.
hpvm/scripts/hpvm_installer.py
+
5
−
6
View file @
d4df33b8
...
@@ -68,12 +68,11 @@ def parse_args(args=None):
...
@@ -68,12 +68,11 @@ def parse_args(args=None):
"
-t
"
,
"
-t
"
,
"
--targets
"
,
"
--targets
"
,
type
=
str
,
type
=
str
,
default
=
"
all
"
,
default
=
"
X86;RISCV
"
,
help
=
"
Build target(s) for LLVM such as X86, ARM.
"
help
=
"
Build target(s) for LLVM such as X86, ARM.
"
'
Use semicolon to separate multiple targets such as
"
X86;ARM
"
.
'
'
Use semicolon to separate multiple targets such as
"
X86;RISCV
"
. Defaults to
"
X86;RISCV
"
.
'
'
Defaults to
"
all
"
which is to build all supported targets.
'
"
Supported targets: AArch64, AMDGPU, ARM, BPF, Hexagon, Mips, MSP430, NVPTX, PowerPC,
"
"
Supported targets: AArch64, AMDGPU, ARM, BPF, Hexagon, Mips, MSP430, NVPTX, PowerPC,
"
"
Sparc, SystemZ, X86, XCore.
"
,
'
Sparc, SystemZ, X86, XCore.
Use
"
all
"
to build all supported targets.
'
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
"
--ninja
"
,
"
--ninja
"
,
...
@@ -107,7 +106,7 @@ def prompt_args():
...
@@ -107,7 +106,7 @@ def prompt_args():
return
v
return
v
def
parse_targets
(
s
:
str
):
def
parse_targets
(
s
:
str
):
if
"
"
in
s
:
if
"
"
in
s
or
not
s
:
return
None
return
None
return
s
return
s
...
@@ -131,7 +130,7 @@ def prompt_args():
...
@@ -131,7 +130,7 @@ def prompt_args():
"
These build targets are supported: AArch64, AMDGPU, ARM, BPF, Hexagon,
"
"
These build targets are supported: AArch64, AMDGPU, ARM, BPF, Hexagon,
"
"
Mips, MSP430, NVPTX, PowerPC, Sparc, SystemZ, X86, XCore.
\n
"
"
Mips, MSP430, NVPTX, PowerPC, Sparc, SystemZ, X86, XCore.
\n
"
"
If building for multiple targets, seperate options with semicolon:
\n
"
"
If building for multiple targets, seperate options with semicolon:
\n
"
"
e.g. X86;
ARM
"
"
e.g. X86;
RISCV
"
)
)
args
.
targets
=
input_with_check
(
args
.
targets
=
input_with_check
(
"
Build target:
"
,
parse_targets
,
"
Input shouldn
'
t contain space
"
"
Build target:
"
,
parse_targets
,
"
Input shouldn
'
t contain space
"
...
...
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