mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2019-06-21, 05:33   #122
SELROC
 

2·11·103 Posts
Default

Quote:
Originally Posted by Prime95 View Post
That worked, thanks!

What changes do I need to make to be able to run gpuowl as a normal user again?

I'm stumbled that you were able before ... it never worked for me.
I have always run gpuowl as root because of this issue, I have filed a github issue for ROCm about this.


https://github.com/RadeonOpenCompute/ROCm/issues/823
  Reply With Quote
Old 2019-06-23, 13:04   #123
SELROC
 

32·5·199 Posts
Default

Quote:
Originally Posted by Prime95 View Post
That worked, thanks!

What changes do I need to make to be able to run gpuowl as a normal user again?

I have found how to resolve the issue partially.
The file /etc/OpenCL/vendors/amdocl64.icd has owner root and group root. Assigning this ownership to a regular user makes that user able to run OpenCL applications.
  Reply With Quote
Old 2019-06-23, 13:24   #124
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17·487 Posts
Default

Quote:
Originally Posted by SELROC View Post
I have found how to resolve the issue partially.
The file /etc/OpenCL/vendors/amdocl64.icd has owner root and group root. Assigning this ownership to a regular user makes that user able to run OpenCL applications.
Unless rebooting is also required, this fix didn't work for me. I'll look for other OpenCL files installed as root.
Prime95 is offline   Reply With Quote
Old 2019-06-23, 13:37   #125
SELROC
 

22×5×71 Posts
Default

Quote:
Originally Posted by Prime95 View Post
Unless rebooting is also required, this fix didn't work for me. I'll look for other OpenCL files installed as root.

Which system are you using ?
  Reply With Quote
Old 2019-06-23, 13:43   #126
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17·487 Posts
Default

An old Haswell system. Originially Ubuntu 16 upgraded to 19. Rocm 2.4 initially loaded, downgraded to 2.2 for development, since upgraded to 2.5.

At least I'm crunching now. If I have to run as root forever, not too big a deal.
Prime95 is offline   Reply With Quote
Old 2019-06-23, 14:02   #127
SELROC
 

2×7×449 Posts
Default

Quote:
Originally Posted by Prime95 View Post
An old Haswell system. Originially Ubuntu 16 upgraded to 19. Rocm 2.4 initially loaded, downgraded to 2.2 for development, since upgraded to 2.5.

At least I'm crunching now. If I have to run as root forever, not too big a deal.

I have tested the fix on Ubuntu 19 and Debian Testing and it works in both cases. It is a partial fix however, only root and that owner user have the ability to run OpenCL applications.
  Reply With Quote
Old 2019-06-23, 15:20   #128
chris2be8
 
chris2be8's Avatar
 
Sep 2009

25·7·11 Posts
Default

What permissions does that file have? Does it get written to when gpuowl runs? If not then any user who can read the file ought to be able to run it.

Chris
chris2be8 is offline   Reply With Quote
Old 2019-06-23, 15:36   #129
SELROC
 

225228 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
What permissions does that file have? Does it get written to when gpuowl runs? If not then any user who can read the file ought to be able to run it.

Chris

the permissions:


-rw-r--r--
  Reply With Quote
Old 2019-06-24, 16:02   #130
chris2be8
 
chris2be8's Avatar
 
Sep 2009

25×7×11 Posts
Default

Check when the file was last updated, stat /etc/OpenCL/vendors/amdocl64.icd would tell you. If it's updated when you run gpuowl then changing permissions to group-writeable and adding multiple users to it's group should let them run gpuowl (you can change it's group if you want).

But it sounds odd for gpuowl to need to write to that file. So there may be something else involved. And since I don't have any amd GPU to test gpuowl on I can't help any more.

Chris
chris2be8 is offline   Reply With Quote
Old 2019-06-24, 16:11   #131
SELROC
 

293910 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
Check when the file was last updated, stat /etc/OpenCL/vendors/amdocl64.icd would tell you. If it's updated when you run gpuowl then changing permissions to group-writeable and adding multiple users to it's group should let them run gpuowl (you can change it's group if you want).

But it sounds odd for gpuowl to need to write to that file. So there may be something else involved. And since I don't have any amd GPU to test gpuowl on I can't help any more.

Chris

it is not gpuowl fault, it is ROCm failing to load the file (maybe trying to update it).
  Reply With Quote
Old 2019-06-27, 18:14   #132
Prime95
P90 years forever!
 
Prime95's Avatar
 
Aug 2002
Yeehaw, FL

17·487 Posts
Default

Trying to run /opt/rocm/bin/rocmsmi as a normal user produces this:

Code:
hsa api call failure at line 900, file: /data/jenkins_workspace/compute-rocm-rel-2.4/rocminfo/rocminfo.cc.
This could be a clue to our run-as-root problem.
Prime95 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Vega 20 announced with 7.64 TFlops of FP64 M344587487 GPU Computing 4 2018-11-08 16:56
GTX 1180 Mars Volta consumer card specs leaked tServo GPU Computing 20 2018-06-24 08:04
RX Vega performance xx005fs GPU Computing 5 2018-01-17 00:22
Radeon Pro Duo 0PolarBearsHere GPU Computing 0 2016-03-15 01:32
AMD Radeon R9 295X2 firejuggler GPU Computing 33 2014-09-03 21:42

All times are UTC. The time now is 14:49.


Fri Jul 7 14:49:08 UTC 2023 up 323 days, 12:17, 0 users, load averages: 0.97, 1.27, 1.17

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔