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

ethminer-free no longer works with rocm #151994

Closed
Atemu opened this issue Dec 24, 2021 · 5 comments
Closed

ethminer-free no longer works with rocm #151994

Atemu opened this issue Dec 24, 2021 · 5 comments
Labels
0.kind: bug Something is broken 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md

Comments

@Atemu
Copy link
Member

Atemu commented Dec 24, 2021

Describe the bug

A clear and concise description of what the bug is.

Caused by #150767

Not sure whether this is an upstream issue or ours.

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-shell -p ethminer-free --command 'ethminer --list-devices'

Notify maintainers

@Flakebi

@Atemu Atemu added the 0.kind: bug Something is broken label Dec 24, 2021
@Flakebi
Copy link
Member

Flakebi commented Dec 24, 2021

Hi, I’m not sure what the output should look like, but it seems to work fine for me (using the unstable channel, which should include the rocm update now).

# configuration.nix
hardware.opengl.extraPackages = with pkgs; [
  rocm-opencl-icd
  rocm-opencl-runtime
];
$ nix-shell -p ethminer-free --command 'ethminer --list-devices'


ethminer 0.19.0
Build: linux/release/gnu

 Id Pci Id    Type Name                          CL    Total Memory  Cl Max Alloc  Cl Max W.Grp
--- --------- ---- ----------------------------- ----  ------------  ------------  ------------
  0 0e:00.0   Gpu  gfx1010:xnack-                Yes        7.98 GB       7.98 GB      256.00 B

@Atemu
Copy link
Member Author

Atemu commented Dec 24, 2021

That's the exact same setup I have, weird. Are you sure you've got the rocm update? I build directly from git and reverting your PR fixed the issue.

@Flakebi
Copy link
Member

Flakebi commented Dec 24, 2021

Weird. I checked again, but I got the update:

$ ll /run/opengl-driver
lrwxrwxrwx 69 root root  1 Jan  1970 etc -> /nix/store/y15n95blhmlyrv8gp7z2jbhvwkwn9naw-rocm-opencl-icd-4.5.2/etc
lrwxrwxrwx 77 root root  1 Jan  1970 include -> /nix/store/d9j5dcd0q0j77wvkgpwyszf1y1z6bb13-rocm-opencl-runtime-4.5.2/include
dr-xr-xr-x  - root root  1 Jan  1970 lib
dr-xr-xr-x  - root root  1 Jan  1970 share

I also tried

$ nix-build -A rocm-opencl-icd  # In a nixpkgs checkout
/nix/store/y15n95blhmlyrv8gp7z2jbhvwkwn9naw-rocm-opencl-icd-4.5.2
$ export OCL_ICD_VENDORS="$(pwd)/result/etc/OpenCL/vendors/"
$ nix run '.#ethminer-free' -- --list-devices


ethminer 0.19.0
Build: linux/release/gnu

 Id Pci Id    Type Name                          CL    Total Memory  Cl Max Alloc  Cl Max W.Grp
--- --------- ---- ----------------------------- ----  ------------  ------------  ------------
  0 0e:00.0   Gpu  gfx1010:xnack-                Yes        7.98 GB       7.98 GB      256.00 B

@Flakebi
Copy link
Member

Flakebi commented Dec 24, 2021

I tried on another machine with an older GPU (RX 480) and there it fails after the update:

# Before the update
$ nix run nixpkgs#ethminer-free -- --list-devices


ethminer 0.19.0
Build: linux/release/gnu

 Id Pci Id    Type Name                          CL    Total Memory  Cl Max Alloc  Cl Max W.Grp
--- --------- ---- ----------------------------- ----  ------------  ------------  ------------
  0 03:00.0   Gpu  gfx803                        Yes        8.00 GB       8.00 GB      256.00 B


# After the update
$ nix run nixpkgs#ethminer-free -- --list-devices


ethminer 0.19.0
Build: linux/release/gnu

Error: No usable mining devices found

Looks like Polaris (gfx8) support was dropped borked in ROCm 4.5: https://www.reddit.com/r/hardware/comments/qr5q6z/rocm_45_drops_support_for_amd_polaris_gpus/
Edit: Apparently a bug, so it may be enabled again in a further update? ROCm/ROCm#1608

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jul 31, 2022
@Atemu
Copy link
Member Author

Atemu commented Oct 17, 2022

This is an upstream issue.

@Atemu Atemu closed this as completed Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Projects
None yet
Development

No branches or pull requests

2 participants