Skip to content
Snippets Groups Projects
Commit d4df33b8 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Build with X86;RICSV by default

parent b3135926
No related branches found
No related tags found
No related merge requests found
...@@ -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
......
...@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment