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

should be easier to change how many threads used for "make ptest" and friends #4684

Closed
dandrake opened this issue Dec 3, 2008 · 7 comments
Closed

Comments

@dandrake
Copy link
Contributor

dandrake commented Dec 3, 2008

I just ran a make ptest and was surprised to see my 4-core machine overwhelmed. Of course, that's because the makefile in $SAGE_ROOT defaults to "-tp 12" for all the parallel testing.

I added a variable at the top of the makefile so that the, uh, tiny minority of Sage users with fewer than 16 cores can easily edit the makefile so that parallel testing doesn't kill their machines. :)

Since $SAGE_ROOT isn't under version control, I'm just uploading the entire new makefile. The changes are really simple.

Component: build

Issue created by migration from https://trac.sagemath.org/ticket/4684

@dandrake
Copy link
Contributor Author

dandrake commented Dec 3, 2008

Attachment: makefile.gz

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 3, 2008

comment:2

Hi,

please post a diff to the original version of the makefile.

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 3, 2008

comment:3

Attachment: trac_4684_makefile.patch.gz

Looks good to me. I posted a diff between the current and the patched version for the record.

Cheers,

Michael

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 3, 2008

comment:4

Merged in Sage 3.2.2.alpha0

@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Dec 3, 2008
@williamstein
Copy link
Contributor

comment:5

Hi,

This is already closed, but I want to comment that I would vastly prefer if "make ptest" were to by default just parse the MAKE environment variable, and if it is "make -j6", say, then use 6 threads. This is what "sage -t" does now. This way, I just set MAKE in my .bash_profile, and everything works right.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 4, 2008

comment:6

I think we should postpone any work in that direction until we use pyprocessing for -tp. As it the feature is undocumented since it is still considered experimental due to bad behavior when doctests hang. Once we have #4538 and a pyprocessing based -tp we should finally document its existence.

Cheers,

Michael

@dandrake
Copy link
Contributor Author

dandrake commented Dec 4, 2008

comment:7

Oops, I was busy opening #4699 while mabshoff was commenting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants