{"action":"created","issue":{"url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/828","repository_url":"https://api.github.com/repos/xianyi/OpenBLAS","labels_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/828/labels{/name}","comments_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/828/comments","events_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/828/events","html_url":"https://github.com/xianyi/OpenBLAS/issues/828","id":144970792,"number":828,"title":"OpenBLAS uses too many make processes while building","user":{"login":"eschnett","id":213514,"avatar_url":"https://avatars.githubusercontent.com/u/213514?v=3","gravatar_id":"","url":"https://api.github.com/users/eschnett","html_url":"https://github.com/eschnett","followers_url":"https://api.github.com/users/eschnett/followers","following_url":"https://api.github.com/users/eschnett/following{/other_user}","gists_url":"https://api.github.com/users/eschnett/gists{/gist_id}","starred_url":"https://api.github.com/users/eschnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschnett/subscriptions","organizations_url":"https://api.github.com/users/eschnett/orgs","repos_url":"https://api.github.com/users/eschnett/repos","events_url":"https://api.github.com/users/eschnett/events{/privacy}","received_events_url":"https://api.github.com/users/eschnett/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-31T17:47:49Z","updated_at":"2016-03-31T18:10:49Z","closed_at":null,"body":"While installing Julia 0.4.5 on Stampede at TACC, I received this message from the system administrators:\r\n\r\n```\r\nYou are still running too many tasks in the make, please \r\nSTOP performing so many compile tasks at one time, you\r\nare causing excessive load on the logins.  Thanks, TACC Admins\r\neschnett 18646 18633  0 12:07 pts/366  00:00:00 make -j4\r\neschnett 33142  9819  1 12:16 pts/366  00:00:00 make -j 16 GOTOBLAS_MAKEFILE= -C kernel TARGET_CORE=NEHALEM kernel\r\n```\r\n\r\nIt seems the problem occurred while Julia was building OpenBLAS. It also seems that OpenBLAS builds with 16 processes (the number of cores on the login node), although I told Julia to use at most 4 processes (see the first `make` line quoted above).\r\n\r\nUsing many processes is fine when building on a laptop or private workstation, but on shared resources, one needs to be less possessive.\r\n\r\nIt seems that these lines in OpenBLAS's `getarch.c` are responsible for this:\r\n```C\r\n#if NO_PARALLEL_MAKE==1\r\n    printf(\"MAKE += -j 1\\n\");\r\n#else\r\n#ifndef OS_WINDOWS\r\n    printf(\"MAKE += -j %d\\n\", get_num_cores());\r\n#endif\r\n```\r\n\r\nIs there a chance that OpenBLAS could not add a `-j` option if `MFLAGS` already contains one?"},"comment":{"url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/comments/204060311","html_url":"https://github.com/xianyi/OpenBLAS/issues/828#issuecomment-204060311","issue_url":"https://api.github.com/repos/xianyi/OpenBLAS/issues/828","id":204060311,"user":{"login":"eschnett","id":213514,"avatar_url":"https://avatars.githubusercontent.com/u/213514?v=3","gravatar_id":"","url":"https://api.github.com/users/eschnett","html_url":"https://github.com/eschnett","followers_url":"https://api.github.com/users/eschnett/followers","following_url":"https://api.github.com/users/eschnett/following{/other_user}","gists_url":"https://api.github.com/users/eschnett/gists{/gist_id}","starred_url":"https://api.github.com/users/eschnett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschnett/subscriptions","organizations_url":"https://api.github.com/users/eschnett/orgs","repos_url":"https://api.github.com/users/eschnett/repos","events_url":"https://api.github.com/users/eschnett/events{/privacy}","received_events_url":"https://api.github.com/users/eschnett/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T18:10:49Z","updated_at":"2016-03-31T18:10:49Z","body":"This is apparently OpenBLAS 0.2.15. (I thought before that it was the tip of the development branch.) I'll check 0.2.17."}}