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

[FEATURE] Specify number of cores used for datacube generation #39

Open
adamjtaylor opened this issue Sep 13, 2020 · 1 comment
Open
Assignees

Comments

@adamjtaylor
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Datacube generation is parallelised for speed. By default, it uses all available threads which may compromise the performance of other processes being run by the user.

Describe the solution you'd like
Enable the user to specify the number of cores used for datacube generation (initially in command line usage but might be nice to have in the GUI as well). Suggest changing the default to number of cores/threads minus 1 to leave one free for other user processes.

Describe alternatives you've considered
This is likely already implemented in MATLAB preferences and we just need to call a helper function. We could even just suggest in the docs where the user can adjust themselves.

Additional context
Chugging away nicely on 20 threads.
image

@adamjtaylor
Copy link
Contributor Author

I think we can control this with maxNumCompThreads

max_threads= maxNumCompThreads; maxNumCompThreads(max_threads-1);

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

No branches or pull requests

2 participants