Open thomasjsweet opened 3 years ago
Same issue, cloned ethminer from the AUR.
I encountered this same crash when using the default mesa driver shipped with Manjaro after installing ethminer
from the AUR.
After about 10 hours of debugging, the way I fixed it is this:
opencl-amd
package from the AUR
Note: I encountered a problem where the DAG was never generated using the latest version of this package. Downgrading this package to version 20.40 fixed the issue because, as AMD mentioned in their release notes for 20.45, "User may experience issues when utilizing OpenCL in multimedia use cases." To install the 20.40 version, download the older PKGBUILD
file and manually install it.
Note 2: compiling ethminer
with -DBINKERN=OFF
as mentioned in this issue did not fix the issue using version 20.45 of opencl-amd
for me.--list-devices
to ethminer
. For me the gfx1010
entry has an id of 1
--cl-devices 1
to your ethminer flags where 1
is the id from step 2.I encountered this same crash when using the default mesa driver shipped with Manjaro after installing
ethminer
from the AUR. After about 10 hours of debugging, the way I fixed it is this:
- Install the
opencl-amd
package from the AUR Note: I encountered a problem where the DAG was never generated using the latest version of this package. Downgrading this package to version 20.40 fixed the issue because, as AMD mentioned in their release notes for 20.45, "User may experience issues when utilizing OpenCL in multimedia use cases." To install the 20.40 version, download the olderPKGBUILD
file and manually install it. Note 2: compilingethminer
with-DBINKERN=OFF
as mentioned in this issue did not fix the issue using version 20.45 ofopencl-amd
for me.- Find the id of the duplicate graphics card entry created by the AMDGPU proprietary driver by passing
--list-devices
toethminer
. For me thegfx1010
entry has an id of1
- Add
--cl-devices 1
to your ethminer flags where1
is the id from step 2.
This solved the problem for me.
If you install opencl-amd
and compile ethminer with -DUSE_SYS_OPENCL=ON
you don't need to specify the device (at least for me, and I was having this problem before I did this).
Describe the bug Unable to run ethminer due to segmentation fault with either opencl-mesa or opencl-amd
To Reproduce Clone latest source code Configure with cmake .. -DETHASHCUDA=OFF -DUSE_SYS_OPENCL=ON -DHUNTER_ENABLED=ON Compile successfully Run: --> ethminer -G -P stratum+tcp://redactedUser.1:x@us-east.ethash-hub.miningpoolhub.com:20535
Expected behavior no segmentation fault
Actual result
Environment (please complete the following information):