| From 412f4c81a5952c24c0c5977854f15ce3b87f5ae4 Mon Sep 17 00:00:00 2001 |
| From: Greg Chadwick <gac@lowrisc.org> |
| Date: Fri, 17 Apr 2020 15:02:48 +0100 |
| Subject: [PATCH 4/7] Enable parallel runs |
| |
| --- |
| Makefile | 5 +++++ |
| riscv-target/opentitan/README.md | 16 ++++++++++++++++ |
| 2 files changed, 21 insertions(+) |
| |
| diff --git a/Makefile b/Makefile |
| index 25557c1..1a822bd 100644 |
| --- a/Makefile |
| +++ b/Makefile |
| @@ -50,6 +50,11 @@ else |
| ifeq ($(RISCV_TARGET),riscvOVPsim) |
| JOBS ?= -j8 --max-load=4 |
| endif |
| + ifeq ($(RISCV_TARGET),opentitan) |
| + ifeq ($(OT_TARGET),verilator) |
| + JOBS ?= -j4 |
| + endif |
| + endif |
| endif |
| |
| default: $(DEFAULT_TARGET) |
| diff --git a/riscv-target/opentitan/README.md b/riscv-target/opentitan/README.md |
| index 6823fe2..71baa3c 100644 |
| --- a/riscv-target/opentitan/README.md |
| +++ b/riscv-target/opentitan/README.md |
| @@ -131,6 +131,22 @@ $ cd $RISCV_COMPLIANCE_REPO_BASE |
| $ rm -rf ./work |
| ``` |
| |
| +## Parallel runs |
| +When running against the `verilator` target parallel make jobs are used (via |
| +passing `-j4` to make internally). Parallel runs can be disabled by passing |
| +`PARALLEL=0` to the `make` command or the `-j` used can be altered with the |
| +`JOBS` argument. |
| + |
| +Disable parallel runs: |
| +```console |
| +$ make RISCV_ISA=rv32i PARALLEL=0 |
| +``` |
| + |
| +Use a different `-j` parameter: |
| +```console |
| +$ make RISCV_ISA=rv32i JOBS=-j8 |
| +``` |
| + |
| ## Removed/Broken Tests |
| A small number of tests are not run for OpenTitan riscv_compliance as they fail |
| due to flaws in the compliance test suite rather than Ibex/OpenTitan itself (see |
| -- |
| 2.26.0 |
| |