Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PermissionError #55

Open
dimitarsh1 opened this issue Feb 11, 2021 · 6 comments
Open

PermissionError #55

dimitarsh1 opened this issue Feb 11, 2021 · 6 comments

Comments

@dimitarsh1
Copy link

Hi all,

I am trying to run some experiments but am getting the following error:
PermissionError: [Errno 13] Permission denied: '/sys/class/powercap/intel-rapl/intel-rapl:0/energy_uj'

I am using a remote server that I cannot change the permissions of the /sys/class/powercap/ and the energy_uj is readable only by root.

Any ideas?

@NatLun137
Copy link

I get the same error message....

@vgaraujov
Copy link

@dimitarsh1 Were you able to solve the problem? I have the same error.

@dimitarsh1
Copy link
Author

Hi @vgaraujov I didn't solve the problem. It seems that these files are not readable.
So, at the end of the day, what I did is just removed those lines of code that collect CPU measures as I was interested in the GPU stats. I can share my "fix" with you if you want.

Cheers,
Dimitar

@Breakend
Copy link
Owner

Hi all, apologies for the delay in following up on this. Currently, we assume that you have permissions to access CPU power readings. We were hesitant about adding automating fallbacks to GPU-only metrics since it might mislead into thinking something is more energy efficient than it is. If there is no way to get permissions for powercap and this is a common problem, we will work on adding an option to omit CPU readings like dimitarsh1 suggests and add warnings the outputs accordingly. If anyone has already done this and wants to submit a pull request, please feel free to do so.

@vgaraujov
Copy link

Hi @vgaraujov I didn't solve the problem. It seems that these files are not readable.
So, at the end of the day, what I did is just removed those lines of code that collect CPU measures as I was interested in the GPU stats. I can share my "fix" with you if you want.

Cheers,
Dimitar

Thanks for your answer @dimitarsh1 . It would really help me if you share the code you used with me. I'm also only interested in GPU measurements. Do you have a repository or can you email me at [email protected]?

Best,

@sohampoddar26
Copy link

If you have access to a sudo user, you can do chmod +r to all energy_uj files in powercap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants