Hi Jose,maybe the quantize() macro [1] can be useful in your case for normalizing mem and cores onto each other.
Cheers, Thomas [1] https://htcondor.readthedocs.io/en/v8_9_13/misc-concepts/classad-mechanism.html?highlight=quantize#predefined-functions On 20/04/2021 16.43, jcaballero.hep@xxxxxxxxx wrote:
Hi,
I guess this is mostly a question about arithmetic with classads :)
So I am wondering if, in order to provide for as many cores as
possible to run jobs that use 2 GB of mem max, I can do something like
this:
SLOT_TYPE_1=cpus=$DETECTED_MEMORY/2048,mem=100%,auto
Question 1: can cpus here be an integer, or must be a percentage?
Question 2: if it can be an integer, would that be the right expression?
Thanks,
Jose
_______________________________________________
HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users
The archives can be found at:
https://lists.cs.wisc.edu/archive/htcondor-users/
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature