-
Notifications
You must be signed in to change notification settings - Fork 22
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
Explicitly specifying memory units breaks the profile in older versions of LSF #18
Comments
Oh man, that's annoying. I think only supporting the latest would be silly. We should be flexible. I will look into whether there is a way to specify the units that is backwards compatible. |
Damn, it looks like the ability to specify memory units was only added in 10.1.0.2 (See "Improvements to units for resource requirements and limits"). The only way of handling this that I can think of now is getting the On my cluster $ grep LSF_UNIT_FOR_LIMITS ${LSF_ENVDIR}/lsf.conf
LSF_UNIT_FOR_LIMITS=MB This is annoying as it will add a tiny bit of IO to each job, but these files on our cluster seem to have ~150 lines so it shouldn't be too bad. The best solution would be to add some auxiliary functions to the In terms of the fastest way to get the value of Do you see a better solution or any problems with this suggestion @leoisl ? |
This solution is fine for me! I am just wondering if there is a way of getting the value of |
Actually, that is a really good point. I guess we can just ask the user for this value during setup. We can provide code for how to get it both in the README and potentially in the cookiecutter prompts too. |
I use LSF in two different clusters. In one, this is the LSF version:
Explicitly specifying memory units in this LSF version works just fine, e.g. this command works fine:
In the other cluster, the version is a bit older:
Explicitly specifying memory units in this cluster fails:
It works if
MB
is removed:I did not track which update of LSF between these two versions enabled memory units to be specified in
-M
.I wonder if:
The text was updated successfully, but these errors were encountered: