ethereum-mining / ethminer

Ethereum miner with OpenCL, CUDA and stratum support
GNU General Public License v3.0
5.98k stars 2.29k forks source link

Mining with Mac possible? #2327

Open val3riefr opened 3 years ago

val3riefr commented 3 years ago

Hi, i've been looking at few posts here and can't really figure out if ethminer can work on a Mac? I've read that the darwing file was the one to download but that in the end it's not working for mac?

I have a Mac Pro / 16 core / AMD Radeon Pro Vega II Duo 32 Go / 96 go RAM Apparently I could use ethminer and GPU with Bootcamp, but I need to be able to use my mac for my work...

i've been mining with xmrig via unminable, but it only uses CPU and would like to use my GPU to take advantage of the graphic card

So is there a specific code or set up to do, to be able to use ethmine on my mac, or it's completly dead? on redit someone told me to write some code, but couldn't make it work.. And if it works via Bootcamp, why not directly via Mac? i'm kind desperate, been looking everywhere for solutions..

sowson commented 3 years ago

Hi, please forgive me for advertising... I made a fork... https://github.com/sowson/ethminer but cannot promise all cases will be working. Works for me on a very experimental mac :). MacMoriaMinerLuxMarkResults

val3riefr commented 3 years ago

Hi, thanks for the reply. how do I install this? i'm familiar with codes..

sowson commented 3 years ago

go to it and read readme

val3riefr commented 3 years ago

I still don't understand what to do...what do i need to download? i don't understand how all those code files works

fadding commented 3 years ago

Hi, please forgive me for advertising... I made a fork... https://github.com/sowson/ethminer but cannot promise all cases will be working. Works for me on a very experimental mac :). MacMoriaMinerLuxMarkResults

This work for me!

val3riefr commented 3 years ago

great! could you explain me how to install it please? i don't know how to use the codes in github...

fadding commented 3 years ago

great! could you explain me how to install it please? i don't know how to use the codes in github...

read readme

val3riefr commented 3 years ago

i did, but i don't undertand :( i've donwload the file : ethminer-0.19.0-alpha.0-cuda-9-darwin-x86_64.tar i hope that's the one and then? when i open the ethminer i can add any code in terminal, so i don't know what to do next

val3riefr commented 3 years ago

Hi again, can someone please help me make this work? i have downloaded the ethminer-0.18.0-cuda-9-darwin-x86_64.tar.gz when i open the ethminer file i get this, and i can't write anything into that windows...

Capture d’écran 2021-07-10 à 13 34 13

so what should i do?

Huxpro commented 3 years ago

@sowson thanks for doing this and glad you got it working on your machine, @fadding

I got everything built and it successfully found my AMD 580 (instead of complaining unsupported devices). However, "it failed to load binary kernel":

cl 23:13:23 cl-0     Loading binary kernel /usr/local/bin/kernels/ethash_amd radeon pro 580x compute engine_lws128_exit.bin
 X 23:13:23 cl-0     Failed to load binary kernel: /usr/local/bin/kernels/ethash_amd radeon pro 580x compute engine_lws128_exit.bin
 X 23:13:23 cl-0     Falling back to OpenCL kernel...

The path /usr/local/bin/kernels/ethash_amd radeon pro 580x compute engine_lws128_exit.bin here looks suspicious...I can find /usr/local/bin/kernels/ethash_tonga_lws128_exit.bin so I'm wondering could this just be a string interpolation issue from the source code and if so, does any of you knows how can to fix it?

SkarDude commented 3 years ago

Hi, please forgive me for advertising... I made a fork... https://github.com/sowson/ethminer but cannot promise all cases will be working. Works for me on a very experimental mac :). MacMoriaMinerLuxMarkResults

This work for me!

  • MacBook Pro (16-inch, 2019)
  • 2.3 GHz 8 core Intel Core i9
  • 64 GB 2667 MHz DDR4
  • AMD Radeon Pro 5500M 8 GB
  • Intel UHD Graphics 630 1536 MB
cl 16:34:14 cl-0     Generating split DAG + Light (total): 4.45 GB
 i 16:34:14          Job: ec8cde1a… daggerhashimoto.usa.nicehash.com [172.65.223.147:3353]
cl 16:34:14 cl-0     OpenCL kernel
cl 16:34:14 cl-0     Loading binary kernel /usr/local/bin/kernels/ethash_amd radeon pro 5500m compute engine_lws128_exit.bin
 X 16:34:14 cl-0     Failed to load binary kernel: /usr/local/bin/kernels/ethash_amd radeon pro 5500m compute engine_lws128_exit.bin
 X 16:34:14 cl-0     Falling back to OpenCL kernel...
cl 16:34:14 cl-0     Creating DAG buffer, size: 4.45 GB, free: 3.53 GB
cl 16:34:14 cl-0     Creating light cache buffer, size: 71.25 MB
cl 16:34:14 cl-0     Loading kernels
cl 16:34:14 cl-0     Creating buffer for header.
cl 16:34:14 cl-0     Creating mining buffer
[1]    29983 abort      sudo ethminer -P  -G --opencl-devices 1

This does not work for me :( I have the same exact computer setup

val3riefr commented 3 years ago

So could someone post a valid tutorial to make this work please?