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

Re: [HTCondor-users] cpu with possible gpu



The TL;DR answer is 

Request_cpus =1
Request_gpus = isDefined(Gpus) ? min({Gpus,1}) : 0

This requests at most 1 Gpu from machines that have Gpus available, but will still match machines that don't have GPU resources at all.

-----Original Message-----
From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of Michael Pelletier
Sent: Thursday, October 27, 2016 9:15 AM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: Re: [HTCondor-users] cpu with possible gpu

One key thing Brian Bockelman pointed out in his HTCondor Week presentation earlier this year is that everything is an expression, even the "request" lines. 

Check out his presentation here, I think it will give you insight into how to solve this problem:

http://research.cs.wisc.edu/htcondor/HTCondorWeek2016/presentations/ThuBockelman_ResizableJobs.pdf

	-Michael Pelletier.

-----Original Message-----
From: HTCondor-users [mailto:htcondor-users-bounces@xxxxxxxxxxx] On Behalf Of Michael Di Domenico
Sent: Thursday, October 27, 2016 9:51 AM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] cpu with possible gpu

it's my understanding that if i declare

request_cpus=1
request_gpus=1

that i will be granted a slot in my pool that has both a cpu and a gpu available

is there anyway to say, always give me a cpu, but if a gpu is available give me one of those also and if a gpu isn't still allocate the cpu slot

_______________________________________________
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/