Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider allowing multiple cores to be used in make to speed up compilation from scratch #405

Open
coatless opened this issue Apr 7, 2024 · 0 comments
Labels
feature New feature or request

Comments

@coatless
Copy link
Contributor

coatless commented Apr 7, 2024

I think only the tools/ llvm part of the compilation is allowing jobs/commands to run simultaneously. As a result, the build times from scratch are a bit time-intensive. Would it be possible to add -j$(NPROC) after $(MAKE) to allow using as many cores as possible?


Note, that there are some parallelized portions already in use. Specifically, in the llvm part due to the use of ninja.

cmake -G Ninja -S /Users/ronin/Documents/GitHub/oss/webr/tools/flang/llvm-project/llvm -B /Users/ronin/Documents/GitHub/oss/webr/tools/flang/build \
	  -DCMAKE_INSTALL_PREFIX=/Users/ronin/Documents/GitHub/oss/webr/host \
	  -DCMAKE_BUILD_TYPE=MinSizeRel \
	  -DLLVM_DEFAULT_TARGET_TRIPLE="wasm32-unknown-emscripten" \
	  -DLLVM_TARGETS_TO_BUILD="WebAssembly" \
	  -DLLVM_ENABLE_PROJECTS="clang;flang;mlir" \

Also, in a separate file related to dragonegg that doesn't seem to be called, we have the desired $(MAKE) command using -j$(NPROC):

$(MAKE) -j$(NPROC)

@georgestagg georgestagg added the feature New feature or request label Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants