Ticket 13870

Summary: How to exclude a feature from job submission sbatch
Product: Slurm Reporter: Thu-Ha Tran <thu-ha.tran>
Component: User CommandsAssignee: Director of Support <support>
Status: RESOLVED DUPLICATE QA Contact:
Severity: 4 - Minor Issue    
Priority: ---    
Version: 21.08.4   
Hardware: Linux   
OS: Linux   
Site: Shell Slinky Site: ---
Alineos Sites: --- Atos/Eviden Sites: ---
Confidential Site: --- Coreweave sites: ---
Cray Sites: --- DS9 clusters: ---
Google sites: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- NoveTech Sites: ---
Nvidia HWinf-CS Sites: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Tzag Elita Sites: ---
Linux Distro: --- Machine Name:
CLE Version: Version Fixed:
Target Release: --- DevPrio: ---
Emory-Cloud Sites: ---

Description Thu-Ha Tran 2022-04-19 06:54:20 MDT
Hi support,

In a NodeSet, we include both CPU and GPU nodes.  We set different weight, so if job doesn't require gpu, then it will run on CPU nodes first.  If no more CPU nodes, then it can be able to run on GPU nodes. 

Some of users want to run their jobs on CPU nodes only.  Is there a way to exclude the feature, for instance, sbatch -A account1 -C !gpu ....

Would you please check into this and let me know?

Thanks,
Thu-Ha
Comment 1 Jason Booth 2022-04-19 13:51:39 MDT
Slurm does not currently support an expanded regular expression set for this that includes XOR or not.

bug#3875


Although not ideal, you could add an additional feature to the node that falls in the category you are trying to target.

*** This ticket has been marked as a duplicate of ticket 3875 ***
Comment 2 Thu-Ha Tran 2022-04-19 14:07:10 MDT
Hi Jason,

By reading the ticket that you posted here https://bugs.schedmd.com/show_bug.cgi?id=3875, this has been requested since 2017 by many users. 

Do you think that this feature will be implemented in near future since it has been requested by many users/ customers?  I think it will be more valuable and convenient if this is available for usage

regards,
Thu-Ha
Comment 3 Jason Booth 2022-04-19 15:41:37 MDT
We have no foreseeable plans to implement this right now. As Tim mentioned in bug#3875comment#11 we are open to sponsorship of this feature or community contributions.