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

Re: [HTCondor-users] Translating GPU device assignments?



> -----Original Message-----
> From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf
> Of Greg Thain
> Sent: Monday, July 03, 2017 2:10 PM
> 
> On 07/03/2017 12:32 PM, Michael Pelletier wrote:
> > +Arguments = "-c '/usr/bin/env FLAGS_gpu=$(DOLLAR)GPU_DEVICE_ORDINAL
> caffe train ...etc...'"
> 
> 
> Very nice!  Technically, isn't the /usr/bin/env redundant, as /bin/sh
> itself can set the environment on the command line?  i.e.
> 
> 
> +Arguments = "-c 'FLAGS_gpu=$(DOLLAR)GPU_DEVICE_ORDINAL caffe train
> ...etc...'"
[Michael Pelletier]

-c 'unset CUDA_VISIBLE_DEVICES ; FLAGS_gpu$(DOLLAR)GPU_DEVICE_ORDINAL caffe train ..." 

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0     29034    C   ./caffe                                       1588MiB |
|    1     34423    C   ./caffe                                       1022MiB |
+-----------------------------------------------------------------------------+

Now that's what I'm talkin' about!! :D

	-Michael Pelletier