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

Re: [HTCondor-users] Per-slot environment variables



Vlad - 

Condor has so many knobs/bells/whistles, but I think JobHooks - 'Prepare Job' may do what you are looking for.
http://research.cs.wisc.edu/htcondor/manual/v8.0/4_4Hooks.html#43192

Cheers,
Tim



----- Original Message -----
> From: "Vladimir Brik" <vladimir.brik@xxxxxxxxxxxxxxxx>
> To: htcondor-users@xxxxxxxxxxx
> Sent: Friday, July 5, 2013 10:27:29 AM
> Subject: [HTCondor-users] Per-slot environment variables
> 
> Hello,
> 
> Is it possible to define default job environment that will be inherited
> by jobs on per-slot basis?
> 
> For example, I'd like to automatically set the CUDA_VISIBLE_DEVICES
> environmental variable to 0 for slot1, 1 for slot2, etc., , without
> having users specify it in the submit file.
> 
> I tried STARTER_JOB_ENVIRONMENT, but it looks like it can't be used on
> per-slot basis.
> 
> 
> Thanks,
> 
> Vlad
> _______________________________________________
> 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/
>