tiny improvement - #1093
Open
joeyjiaojg wants to merge 2 commits into
Open
Conversation
yuleisui
reviewed
May 16, 2023
joeyjiaojg
commented
May 16, 2023
joeyjiaojg
left a comment
Contributor
Author
There was a problem hiding this comment.
updated, please check again?
joeyjiaojg
force-pushed
the
master
branch
3 times, most recently
from
May 16, 2023 06:01
10fdd04 to
7660ea6
Compare
joeyjiaojg
commented
May 16, 2023
joeyjiaojg
left a comment
Contributor
Author
There was a problem hiding this comment.
done, pls review again.
yuleisui
reviewed
May 16, 2023
| set -e # exit on first error | ||
|
|
||
| jobs=4 | ||
| jobs=$(echo $(nproc) || echo $(sysctl -n hw.physicalcpu)) |
Collaborator
There was a problem hiding this comment.
Can we make it one line rather than a if condition
Collaborator
There was a problem hiding this comment.
Would it be faster when you were trying to build svf using more than 4 threads? I think we can leave it as 4 and people can simply adjust it by themselves
Contributor
Author
There was a problem hiding this comment.
much faster when I use blade with higher jobs.
yuleisui
reviewed
May 16, 2023
joeyjiaojg
force-pushed
the
master
branch
2 times, most recently
from
May 18, 2023 06:53
46333d1 to
23b8c01
Compare
Contributor
Author
|
The new patch should be better now. |
Contributor
Author
OK, no better way I know without using any bash condition variable. |
Ex to build with clang.
```
export LLVM_DIR=/usr/src/clang-android
export LLVM_CONFIG=$LLVM_DIR/bin/llvm-config
COMPILE_FLAGS="-DCMAKE_CXX_COMPILER=${LLVM_DIR}/bin/clang++ -DLLVM_DIR=${LLVM_DIR}" source build.sh
```
JOBS=$(nproc) bash build.sh
Contributor
Author
|
@yuleisui ok, this should be final? people can choose to build with clang and other JOBS value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.