Skip to content

Commit 4441f72

Browse files
committed
Adapt parallelism for compiling and linking to number of cores.
1 parent 05ecc53 commit 4441f72

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,12 @@ generate: clean prepareGenerate $(DRIVERS)
153153
# build all object files
154154
.PHONY: compile
155155
compile:
156-
$(MAKE) -f tempmakefile build_all -j24
156+
$(MAKE) -f tempmakefile build_all -j $$(expr $$(nproc --all) \* 2)
157157

158158
# link
159159
.PHONY: link
160160
link:
161-
$(MAKE) -f tempmakefile link_all -j24
161+
$(MAKE) -f tempmakefile link_all -j $$(expr $$(nproc --all) \* 2)
162162

163163
$(patsubst %,run%,$(DRIVERS)): DRIVER = $(subst run,,$@)
164164
$(patsubst %,run%,$(DRIVERS)):

0 commit comments

Comments
 (0)