-
Notifications
You must be signed in to change notification settings - Fork 3
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 Request: PsN Default Number of Threads #5
Comments
Isn't this something we could set as a ENV with a default value and let someone overwrite at runtime, rather than worrying about build time? or does it affect builds/testing? |
no should not affect builds/testing - an env variable with a default of 4 would be most reasonable, as that would be relevant for a single license pack. |
I set it as an ARG because users can input their number of licenses and then it becomes the default for all executions in their installation. Is there a significant downside to an ARG with a default argument as opposed to an ENV? |
The effect on build is related to the config file setting. Because it affects many commands within PsN, I think that this is the simplest way to do set the default number of threads (though I'm happy to be proven wrong). |
Anything that is "environment specific" such as running on one machine vs. another should be a ENV that's changeable at runtime. An ARG is only used at build time, which is fine if the value never needs to change during runtime. Sounds like we might need a |
OK so I've updated some things in master. Latest commits fix this issue I believe.
|
PsN by default has 5 threads for NONMEM execution. While it's possible to change this on the fly, it's preferable to me to have it default to the number of licenses I've purchased. For that, I'd propose the following change to the Dockerfile:
The text was updated successfully, but these errors were encountered: