GithubHelp home page GithubHelp logo

Comments (12)

Umio-Yasuno avatar Umio-Yasuno commented on June 2, 2024 1

I don't understand. The app tries to load the wrong card? Or maybe you're addressing it and I just don't understand?

The first DRM devices will be placed in /dev/dri/renderD128 and /dev/dri/card0 unless intentionally disabled.
Therefore, amdgpu_top selects /dev/dri/renderD128 by default.
Open "/dev/dri/render{}", 128 + i
if an instance (-i) is specified.

from amdgpu_top.

Umio-Yasuno avatar Umio-Yasuno commented on June 2, 2024

I do not provide nixpkg and I am not familiar with nixpkg.
Try a binary built from source or an AppImage binary.

sandbox setting might be affecting it?
https://nixos.org/manual/nix/stable/command-ref/conf-file.html#conf-sandbox

from amdgpu_top.

colemickens avatar colemickens commented on June 2, 2024

I am building from source, and the binary builds fine, this is at execution time which does not happen in the sandbox.

from amdgpu_top.

Umio-Yasuno avatar Umio-Yasuno commented on June 2, 2024

Please paste the results of running ls -l /dev/dri.

amdgpu_top requires access to /dev/dri/.
Environments with device files located in locations other than /dev/dri are not supported.

from amdgpu_top.

colemickens avatar colemickens commented on June 2, 2024
❯ exa -al --tree /dev/dri
drwxr-xr-x        - root  2 May 15:33 /dev/dri
drwxr-xr-x        - root  2 May 15:44 ├── by-path
lrwxrwxrwx@       8 root  2 May 15:44 │  ├── pci-0000:07:00.0-card -> ../card1
lrwxrwxrwx       13 root  2 May 15:44 │  └── pci-0000:07:00.0-render -> ../renderD129
crw-rw----@   226,1 root  2 May 15:44 ├── card1
crw-rw-rw-  226,129 root  2 May 15:44 └── renderD129

from amdgpu_top.

colemickens avatar colemickens commented on June 2, 2024

This system has two GPUs, but I usually boot Linux with the dGPU disabled.

This might be why my system (currently) only has dri1.

I can take a peek at the code...

from amdgpu_top.

Umio-Yasuno avatar Umio-Yasuno commented on June 2, 2024

Run amdgpu_top -i 1.
The result of amdgpu_top --list is also helpful.

from amdgpu_top.

colemickens avatar colemickens commented on June 2, 2024
╭ zeph  ~/code/nixcfg 21.12s
╰─▶ /nix/store/hhclh187i2pkll9i2cqghbbizk7nd06j-amdgpu_top-0.1.7/bin/amdgpu_top -i 1

seems to work, shows the TUI
╭ zeph  ~/code/nixcfg 1.85s
╰─▶ /nix/store/hhclh187i2pkll9i2cqghbbizk7nd06j-amdgpu_top-0.1.7/bin/amdgpu_top --list
#1
Marketing Name = "AMD Radeon Graphics"
pci = 0000:07:00.0
render_path = "/dev/dri/renderD129"
card_path = "/dev/dri/card1"

from amdgpu_top.

Umio-Yasuno avatar Umio-Yasuno commented on June 2, 2024
╭ zeph  ~/code/nixcfg 21.12s
╰─▶ /nix/store/hhclh187i2pkll9i2cqghbbizk7nd06j-amdgpu_top-0.1.7/bin/amdgpu_top -i 1

seems to work, shows the TUI
╭ zeph  ~/code/nixcfg 1.85s
╰─▶ /nix/store/hhclh187i2pkll9i2cqghbbizk7nd06j-amdgpu_top-0.1.7/bin/amdgpu_top --list
#1
Marketing Name = "AMD Radeon Graphics"
pci = 0000:07:00.0
render_path = "/dev/dri/renderD129"
card_path = "/dev/dri/card1"

Ok, close this issue.

from amdgpu_top.

colemickens avatar colemickens commented on June 2, 2024

I don't understand. The app tries to load the wrong card? Or maybe you're addressing it and I just don't understand?

from amdgpu_top.

colemickens avatar colemickens commented on June 2, 2024

Does it make sense to:

  1. Auto-select the first available instead of assuming index 0?
  2. Support multi-GPU setups through-out the app?

I understand if that's all out of scope. It is very jarring to get a file not found and panic, though.

from amdgpu_top.

Umio-Yasuno avatar Umio-Yasuno commented on June 2, 2024

GUI mode implements GPU selection fallback.
This is because in GUI mode, other GPU devices can be started in a new process.

ac94ed0

from amdgpu_top.

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.