GithubHelp home page GithubHelp logo

Measurements error about pyrapl HOT 3 OPEN

powerapi-ng avatar powerapi-ng commented on July 20, 2024
Measurements error

from pyrapl.

Comments (3)

bekiroguzhan avatar bekiroguzhan commented on July 20, 2024

I am having the same issue with Ubuntu 16.04 TLS and python 3.7.

from pyrapl.

sohanpatil1 avatar sohanpatil1 commented on July 20, 2024

I got the same error, did anyone figure it out? Using Ubuntu 20.04 and python 3.8.
I changed the code to this,
_pkg = [j / number for j in self.pkg] if self.pkg else None
_dram = [j / number for j in self.dram] if self.dram else None
But I haven't studied it enough to know if this is correct.

from pyrapl.

kinow avatar kinow commented on July 20, 2024

Had the same, in my case it looks like the dram metrics/list is not populated. The class attribute is Optional (thanks for the type hints!), but the code doesn't seem to take that into consideration when iterating it. I fixed it locally to ignore the dram for now (couldn't find if I have to enable something on Ubuntu) with this code:

_dram = [] if self.dram is None else [j / number for j in self.dram]

from pyrapl.

Related Issues (16)

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.