<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Mathieu,<div class=""><br class=""></div><div class="">I believe you want:</div><div class=""><br class=""></div><div class="">request_cpus = 10</div><div class="">+RequestMemory = RequestCpus * 2048</div><div class=""><br class=""></div><div class="">The "+" syntax causes RequestMemory to be inserted directly into the ad, instead of being handled by the macro expansion.  That means you can use the full ClassAd language to write the expression.</div><div class=""><br class=""></div><div class="">I did a quick test of this using the current master; I think it should work the same way for 8.2.2.</div><div class=""><br class=""></div><div class="">Brian</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 31, 2017, at 6:27 AM, Mathieu Bahin <<a href="mailto:mathieu.bahin@biologie.ens.fr" class="">mathieu.bahin@biologie.ens.fr</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
  

    <meta http-equiv="content-type" content="text/html; charset=utf-8" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    Hi all,<br class="">
    <br class="">
    For now we are running a Condor 8.2.2 with partitionable slots
    configuration.<br class="">
    <br class="">
    Is there a way to say that, for a job, we want to request twice as
    much memory as the CPU number (in G)?<br class="">
    For example, if I request 5 CPUs, I would also like to request 10G
    of memory.<br class="">
    <br class="">
    From the documentation, I understood that we can only use directly a
    variable that we set. Example:<br class="">
    <i class="">ncpus = 10</i><i class=""><br class="">
    </i><i class="">request_cpus = $(ncpus)</i><br class="">
    <br class="">
    Or compute a variable from a ClassAd one. Example:<br class="">
    <i class="">arguments = --memory $$([TARGET.Memory * 0.9])</i><br class="">
    <br class="">
    Is there a way to do something like that?<br class="">
    <i class="">ncpus = 10</i><i class=""><br class="">
    </i><i class="">request_memory = $$[$(ncpus) * 2048])</i><br class="">
    <br class="">
    Cheers,<br class="">
    Mathieu<br class="">
    <pre class="moz-signature" cols="72">-- 
---------------------------------------------------------------------------------------
| Mathieu Bahin
| IE CNRS
|
| Institut de Biologie de l'Ecole Normale SupĂ©rieure (IBENS)
| Biocomp team
| 46 rue d'Ulm
| 75230 PARIS CEDEX 05
| 01.44.32.23.56
---------------------------------------------------------------------------------------</pre>
  </div>

_______________________________________________<br class="">HTCondor-users mailing list<br class="">To unsubscribe, send a message to <a href="mailto:htcondor-users-request@cs.wisc.edu" class="">htcondor-users-request@cs.wisc.edu</a> with a<br class="">subject: Unsubscribe<br class="">You can also unsubscribe by visiting<br class=""><a href="https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users" class="">https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users</a><br class=""><br class="">The archives can be found at:<br class="">https://lists.cs.wisc.edu/archive/htcondor-users/</div></blockquote></div><br class=""></div></body></html>