[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Is eval() supposed to work with condor_status?



I think the problem here is that condor_status doesn’t know to fetch CUDA0UtilizationPct when it queries

the collector, so it will always be undefined by the time condor_status does the evaluation.

 

Try adding

 

  -attr CUDA0UtilizationPct

 

to your command, that will force that attribute to be fetched in addition to the ones that condor_status figures out by parsing the -af expressions.

 

-tj

 

 

From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of Michael Pelletier
Sent: Thursday, April 5, 2018 6:14 PM
To: HTCondor-Users Mail List (htcondor-users@xxxxxxxxxxx) <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] Is eval() supposed to work with condor_status?

 

condor_status -constraint 'SlotType == "Dynamic"' -af 'eval(strcat(AssignedGpus,"UtilizationPct"))'

 

I’m looking for the utilization percent value of the GPU which is assigned to the slot in question with the idea of putting it in as a job machine attr. The strcat() gives the right string, as far as I can tell, but the eval() doesn’t seem to like it.

 

Even this doesn’t work:

 

condor_status -constraint 'SlotType == "Dynamic"' -af name 'eval("CUDA0UtilizationPct")'

 

Any suggestions?

 

               -Michael Pelletier.