Logo
Explore Help
Sign In
OilfieldToolsNet/opm-core
4
0
Fork 0
You've already forked opm-core
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
5a14e481fb809751f401eec682f52709cba3d4f5
opm-core/build

3 lines
115 B
Plaintext
Raw Normal View History

Provide user-friendly front-end for efficient builds We call the Make utility passing the right number of cores to do efficient parallel compilation. The command to do this is simple, but laborious to type every time. Add one to the number of nodes to keep the CPU busy while one is waiting for I/O. Put the entire compilation at a lower priority, both CPU and I/O- wise. This way we don't kill the computer and the user can continue working with other interactive tasks. If there are no other jobs, then it will complete as before. By having a front-end for the compilation, we can later switch to the Ninja generator without disturbing the workflow.
2012-12-13 11:49:37 +01:00
#!/bin/sh
exec ionice -c2 -n7 nice make -j $(echo "("$(grep -P -c '^processor\t:' /proc/cpuinfo)+1")"/1 | bc) "$@"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 24ms Template: 0ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API