Ticket 1958

Summary: scontrol show job does not capture number of tasks user requested (exclusive)
Product: Slurm Reporter: Rodney Mach <rod>
Component: slurmdAssignee: David Bigagli <david>
Status: RESOLVED DUPLICATE QA Contact:
Severity: 4 - Minor Issue    
Priority: --- CC: brian, da, nyee32
Version: 14.11.8   
Hardware: Linux   
OS: Linux   
Site: TotalCAE Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Rodney Mach 2015-09-17 08:23:46 MDT
Hi,

Conference was good!

I need to capture with control show jobs the actual number of tasks the user requested. If exclusive is not set, it shows the number of tasks the user requested in NCPUS.

Right now if exclusive is set, it shows the max cores on the node assigned.


I want it obtain the number of tasks the user requested, as that information is lost when they select exclusive it seems.


So a batch job with 
#SBATCH --ntasks=16

shows with scontrol show job

           NumCPUS=<16>

but a job with

        #SBATCH --ntasks=16
        #SBATCH --exclusive

NumCPUS=<maximum number of CPUS on node>

I presume the idea is you want to show the resources assigned to the user with scontrol show job, but I have a need to see what NTASKS was requested in scontrol show job.

I didn't see this info either with -d, attached is what I see

Is there a way to get NTASKS requested in scontrol show job?

Thanks,

-Rod
Comment 1 Nathan Yee 2015-09-17 09:02:28 MDT
looks like bug was submitted twice

*** This ticket has been marked as a duplicate of ticket 1957 ***