lnxd / docker-phoenixminer

Containerised version of PhoenixMiner for AMD GPUs. Helps turn your Unraid server into an Ethereum / cryptocurrency mining rig. Contains AMD drivers. Not affected by the AMD reset bug as it doesn't rely on vfio.
2 stars 12 forks source link

Argument -resetoc requires sudo #7

Closed lnxd closed 2 years ago

lnxd commented 3 years ago

Running with -resetoc flag outputs errors such as the following:

GPU1: reset power limit
GPU1: Unable to reset core clocks and voltages - error 13

This requires running PhoenixMiner as root
GPU1: Unable to reset VMEM clocks - error 13

This requires running PhoenixMiner as root
GPU1: -mt 0 is ignored (not supported by the driver)

GPU2: unable to set straps - error 57

GPU2: unable to init straps
GPU2: reset fan speed to 20%
GPU2: reset power limit
GPU2: Unable to reset core clocks and voltages - error 13

This requires running PhoenixMiner as root
GPU2: Unable to reset VMEM clocks and voltages - error 13

This requires running PhoenixMiner as root
GPU2: -mt 0 is ignored (not supported by the driver)

GPU2: unable to set straps - error 57

GPU2: unable to init straps

This does not appear to be resolved by setting GID / UID environment variables and persists when combined with running PhoenixMiner as sudo from run.sh.

I believe this error might also be related to having -powlim as an argument set to a negative value, and repeatedly relaunching the container. It seems to have a compound effect. Luckily one can resolve this by starting the container once with -powlim set to a positive value (i.e. -powlim 1) to reset the limit and then set back to the wanted negative value.

lnxd commented 2 years ago

After several months, this does not appear to be a problem with the container, but with the way the AMD drivers work when containerised on a system that does not have the same version of the drivers installed. Closing and will reinvestigate if someone releases an install plugin for the amdgpu-pro drivers on Unraid.