Giter Club home page Giter Club logo

Comments (12)

gingergeeks avatar gingergeeks commented on May 15, 2024

Giovanni,
OK, I will take a look at the API structure and see what I'm missing to call. Which version are you using ?

Regards, Mark

from pyslurm.

giovtorres avatar giovtorres commented on May 15, 2024

pyslurm-14.11.5
slurm 14.11.9
(going to 15.08 soon)

from pyslurm.

gingergeeks avatar gingergeeks commented on May 15, 2024

Thanks, looks like I will need to call out to the opaque data structure via select_nodeinfo. Most of the code is there but not complete or tested for some time. As I'm working on slurm-14.11.x for other people I will look to adding it in to that branch first and then 15.x later.

from pyslurm.

giovtorres avatar giovtorres commented on May 15, 2024

Great! Thanks. I can help test that portion of the code as well.

from pyslurm.

gingergeeks avatar gingergeeks commented on May 15, 2024

It is now coded up but I will need to test it tonight/tomorrow before I push some code to you and then I will upload the changes to git.

from pyslurm.

gingergeeks avatar gingergeeks commented on May 15, 2024

OK, here we go. I believe It appears to work.......which is nice ! Of course I was banging my head on the desk as I was still getting zero until I realised that I needed to turn on "SelectTypeParameters=CR_CORE_MEMORY" in the config......dooh.

Please find attached a zipped replacement pyslurm.pyx for you. Obviously you will need to replace the existing one and do a build/install etc.

pyslurm.pyx.zip

from pyslurm.

giovtorres avatar giovtorres commented on May 15, 2024

Looks good! Just need to remove the print statement on line 2385.

from pyslurm.

gingergeeks avatar gingergeeks commented on May 15, 2024

Cool, I will remove the debug line as well.

from pyslurm.

gingergeeks avatar gingergeeks commented on May 15, 2024

Giovanni,
If you pull the latest 14.11.5 the changes as discussed previously have been committed. Please let me know if this now works and close the ticket if you are happy. I will look at the license gres handling now !

Mark

from pyslurm.

giovtorres avatar giovtorres commented on May 15, 2024

I pulled the latest 14.11.5 and rebuilt. alloc_memory is now not showing up for any nodes.

>>> pprint(nodes.get("cn0001").get("alloc_memory"))
None

Here's the diff between the latest 14.11.5 and yesterday's out-of-band patch:

$ diff 14.11.5/pyslurm/pyslurm.pyx patch/pyslurm/pyslurm.pyx

2148a2148,2149
>       self.get()
> 
2278c2279
<           int i, total_used, cpus_per_node, rc
---
>           int i, total_used, cpus_per_node, rc, alloc_mem
2281c2282
<           uint32_t my_state, alloc_mem
---
>           uint32_t my_state
2298,2300d2298
<           if self._record.name is NULL:
<               break
< 
2302c2300,2301
<           alloc_mem = alloc_cpus = err_cpus = 0
---
>           alloc_cpus = err_cpus = 0
>           alloc_mem = 0
2406c2405
<           Host_dict['err_cpus'] = err_cpus
---
>           Host_dict['alloc_memory'] = alloc_mem
2407a2407
>           Host_dict['err_cpus'] = err_cpus

from pyslurm.

gingergeeks avatar gingergeeks commented on May 15, 2024

Yep, too much haste ! Have committed missing host dictionary entry, please try again

from pyslurm.

giovtorres avatar giovtorres commented on May 15, 2024

Yup, looks good. Thanks Mark!

from pyslurm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.