Skip to content

Move default number of jobs to its own function#5

Merged
maleadt merged 1 commit into
mainfrom
mg/default-njobs
Oct 9, 2025
Merged

Move default number of jobs to its own function#5
maleadt merged 1 commit into
mainfrom
mg/default-njobs

Conversation

@giordano

@giordano giordano commented Oct 9, 2025

Copy link
Copy Markdown
Collaborator

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

Comment thread src/ParallelTestRunner.jl Outdated
--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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

maleadt commented Oct 9, 2025

Copy link
Copy Markdown
Collaborator

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