slurmtools icon indicating copy to clipboard operation
slurmtools copied to clipboard

malformed gres string

Open wccropper opened this issue 6 years ago • 7 comments

Hi Giovanni,

I get this error when running show-cluster-util

Malformed gres string: gpu:k80:4(IDX:0-3)

Regards, Chad

wccropper avatar Oct 26 '18 14:10 wccropper

@wresch Did you ever write an updated gres parser to handle the newer gres string format?

giovtorres avatar Nov 03 '18 21:11 giovtorres

yes our internal show-cluster-util handles it. but it does so with an older pyslurm. trying to test with a newer version now, but having some trouble getting pyslurm to build.

wresch avatar Nov 04 '18 14:11 wresch

created pull request #5

wresch avatar Nov 04 '18 14:11 wresch

Thanks @wresch !

@wccropper I merged PR #5. Could you give it a try now?

giovtorres avatar Nov 04 '18 20:11 giovtorres

I no longer get the malformed GRES error. BUt I am on SLURM 18.08.3. Here is my test and output: $ conda list | grep pyslurm pyslurm 18.8.3.1 $ conda list | grep hostlist python-hostlist 1.17 $ ./show-cluster-util Traceback (most recent call last): File "./show-cluster-util", line 37, in die("This tool requires pyslurm") NameError: name 'die' is not defined

wccropper avatar Nov 05 '18 19:11 wccropper

@wccropper - did you edit the path to pyslurm at

https://github.com/giovtorres/slurmtools/blob/0d27225ac297ff839000502a76d46f5fc706a9cb/show-cluster-util/show-cluster-util#L32

it's somewhat awkwardly included in the script rather than a config file...

wresch avatar Nov 05 '18 20:11 wresch

It gives the same error whether I use the local python 2.7.5 site-packages or the conda env site-packages paths. I have installed the 18.08.3 pyslurm on both.

wccropper avatar Nov 05 '18 21:11 wccropper