Skip to content

Conversation

giordano
Copy link
Collaborator

@giordano giordano commented Oct 9, 2025

Also, print the actual default number of jobs in the help messsage, instead of referring to Sys.CPU_THREADS which is inaccurate.

--verbose Print more information during testing.
--quickfail Fail the entire run as soon as a single test errored.
--jobs=N Launch `N` processes to perform tests (default: Sys.CPU_THREADS).
--jobs=N Launch `N` processes to perform tests (default: $(default_njobs())).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it useful to print it here? It looks at free_memory and thus can change

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yes, can also remove the default value, it's just that Sys.CPU_THREADS is definitely wrong.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I removed the printing of the default value entirely, for simplicity.

@maleadt
Copy link
Collaborator

maleadt commented Oct 9, 2025

The estimated memory use probably also needs to become configurable, as well as some additional flexibility to pick nworkers (because e.g. with CUDA.jl we estimate based on the available GPU memory). But that can happen later.

@maleadt maleadt merged commit 637a241 into main Oct 9, 2025
16 checks passed
@giordano giordano deleted the mg/default-njobs branch October 9, 2025 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants