Bitcoin Forum
May 04, 2024, 02:12:36 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: XMRIG for MacOS working for CPU and AMD GPUs  (Read 420 times)
ganzocrypt (OP)
Newbie
*
Offline Offline

Activity: 162
Merit: 0


View Profile
May 26, 2021, 12:19:12 PM
Last edit: May 26, 2021, 06:35:02 PM by ganzocrypt
 #1

First release of XMRIG for mac os working for CPU and AMD GPUs.

Some algos are still not working using AMD GPUs due to OpenCL not supported by by Apple anymore.

For example UPX, which is a CPU mineable coin, gives errors if mined with GPU.

All other Algos should work, if not, please provide information in the issue section.
All work for making XMRIG working with AMD GPUs is from @Spudz76, I just went through the trouble of compiling the code for macOS which was a pain with all dependencies and Homebrew installs.

  • You can run one instance of XMRIG for the same algo/pool with CPU and GPU
  • If you want to run on different pools, you can run 2 instances of XMRIG with 2 different config.json, one for CPU and the other for GPU and define 2 different algos and pools.

Download binary from here: https://github.com/ganzocrypt/xmrig-macos/releases

If there are any questions of issue please post here or on the github issue page https://github.com/ganzocrypt/xmrig-macos/issues

"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714788756
Hero Member
*
Offline Offline

Posts: 1714788756

View Profile Personal Message (Offline)

Ignore
1714788756
Reply with quote  #2

1714788756
Report to moderator
1714788756
Hero Member
*
Offline Offline

Posts: 1714788756

View Profile Personal Message (Offline)

Ignore
1714788756
Reply with quote  #2

1714788756
Report to moderator
Stanlo
Full Member
***
Offline Offline

Activity: 952
Merit: 110


View Profile
May 26, 2021, 12:39:25 PM
 #2

Good work to XMrig Dev but honestly running miners on MacOS is what 99% of miners runs away from because it's a big pain in the ass, it will be a huge accomplishment if a miner finally works as intended on MacOS
ganzocrypt (OP)
Newbie
*
Offline Offline

Activity: 162
Merit: 0


View Profile
May 26, 2021, 01:54:05 PM
Last edit: May 26, 2021, 06:22:46 PM by ganzocrypt
 #3

Yeah I know.

The issue is that macos OpenCL is basically not supported and OLD, like version 1.2.
So some dev made the miner but it does not work on all combination since libraries mismatch.

I helped to test and recompile the xmr code.
It was a real pain !
I had to use homebrew, recompiled bunch of libraries.
Modify some make scripts and finally worked.
I tested on KawPow, so you can use unminable or other auto-switching pools service to mine bunch of other algos too.

I know there are a lot of people with hackintosh and AMD cards who can use this miner if they want to.
Looking to see if there are any issues (which probably there are) with other AMD cards, I tested on RX 580 and someone tested on Radeon Pro 5300
miner29
Full Member
***
Offline Offline

Activity: 1262
Merit: 138


View Profile
May 26, 2021, 03:29:22 PM
 #4

I will attempt a test on imac pro with Pro Vega 64 from Apple.  Will advise.
Ive been able to make it work before on xmr but got about 25% errors on share submitted.
ganzocrypt (OP)
Newbie
*
Offline Offline

Activity: 162
Merit: 0


View Profile
May 27, 2021, 09:28:21 AM
 #5

Let me know if there are any issues and if you need help with the config file.
BenhurMarcel
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
May 28, 2021, 06:28:26 PM
 #6

Hello,

I tested this new XMRig version with my Mac Pro (2013) with 2 AMD Radeon FirePro D300 (2x2Gb) cards, but it seems that it is not running with the OpenGL library.
I tested with the KEVA coin and MONERO coin, same error.
You can find below the error displayed by XMrig using the OpenGL option :
* OPENCL       #0 Apple/OpenCL 1.2 (May  8 2021 03:14:28)
 * OPENCL GPU   #0 n/a AMD Radeon HD - FirePro D300 Compute Engine 850 MHz cu:20 mem:512/2048 MB
 * OPENCL GPU   #1 n/a AMD Radeon HD - FirePro D300 Compute Engine 850 MHz cu:20 mem:512/2048 MB
 * CUDA         disabled
[2021-05-28 08:46:05.982]  net      use pool kevacoin.herominers.com:10140  78.47.127.170
[2021-05-28 08:46:05.982]  net      new job from kevacoin.herominers.com:10140 diff 50000 algo rx/keva height 331722
[2021-05-28 08:46:05.982]  cpu      use argon2 implementation SSSE3
[2021-05-28 08:46:05.982]  randomx  init dataset algo rx/keva (8 threads) seed d0fe845b8de9c7bd...
[2021-05-28 08:46:07.394]  randomx  allocated 2336 MB (2080+256) huge pages 0% 0/1168 +JIT (1412 ms)
[2021-05-28 08:46:13.803]  randomx  dataset ready (6410 ms)
[2021-05-28 08:46:13.803]  cpu      use profile  rx/wow  (2 threads) scratchpad 1024 KB
[2021-05-28 08:46:13.810]  cpu      READY threads 2/2 (2) huge pages 100% 2/2 memory 2048 KB (6 ms)
[2021-05-28 08:46:13.810]  opencl   use profile  rx  (4 threads) scratchpad 1024 KB
|  # | GPU |  BUS ID | INTENSITY | WSIZE | MEMORY | NAME
|  0 |   0 |     n/a |       320 |     8 |    320 | AMD Radeon HD - FirePro D300 Compute Engine
|  1 |   0 |     n/a |       320 |     8 |    320 | AMD Radeon HD - FirePro D300 Compute Engine
|  2 |   1 |     n/a |       320 |     8 |    320 | AMD Radeon HD - FirePro D300 Compute Engine
|  3 |   1 |     n/a |       320 |     8 |    320 | AMD Radeon HD - FirePro D300 Compute Engine
[2021-05-28 08:46:13.810]  opencl   error CL_INVALID_BUFFER_SIZE when calling clCreateBuffer with buffer size 2181038080
[2021-05-28 08:46:13.810]  opencl   error CL_INVALID_BUFFER_SIZE when calling clCreateBuffer with buffer size 2181038080
[2021-05-28 08:46:13.810]  opencl   error CL_INVALID_BUFFER_SIZE when calling clCreateBuffer with buffer size 2181038080
[2021-05-28 08:46:13.810]  opencl   error CL_INVALID_BUFFER_SIZE when calling clCreateBuffer with buffer size 2181038080
[2021-05-28 08:46:13.811]  opencl   thread #2 failed with error RandomX dataset is not available
[2021-05-28 08:46:13.811]  opencl   thread #0 failed with error RandomX dataset is not available
[2021-05-28 08:46:13.812]  opencl   thread #3 failed with error RandomX dataset is not available
[2021-05-28 08:46:13.812]  opencl   thread #1 failed with error RandomX dataset is not available
[2021-05-28 08:46:13.812]  opencl   thread #2 self-test failed
[2021-05-28 08:46:13.812]  opencl   thread #3 self-test failed
[2021-05-28 08:46:13.812]  opencl   thread #0 self-test failed
[2021-05-28 08:46:13.813]  opencl   thread #1 self-test failed
[2021-05-28 08:46:13.813]  opencl   disabled (failed to start threads)

Thank you in advance for your feedback.
Regards
ganzocrypt (OP)
Newbie
*
Offline Offline

Activity: 162
Merit: 0


View Profile
May 29, 2021, 09:10:51 AM
Last edit: May 29, 2021, 12:10:50 PM by ganzocrypt
 #7

@BenhurMarcel

You should mine those 2 coins with the CPU.
Only KawPow is supported for GPU mining at this stage

You should have only one thread per card. I posted 2 config files samples.
Can you post the OpenCL section of your config file?

There are still issues in supporting some algos for AMD cards as you might know OpenCL is not supported anymore by Apple.

NOTE: Updated the tested Algo, if you test a different algo and it IS/NOT working please let me know. https://github.com/ganzocrypt/xmrig-macos/releases/tag/v6.13.0-dev-macos

A suggestions, you can mine with your CPU Keva or Monero and with your 2 GPUs (if GPU memory is enough, since 2Gb is low) you can mine RVN coin.
If you want to try this, you need to have 2 instances of xmrig with 2 different configs.
So you launch on 2 different terminal:
./xmrig -c configCPU.json
./xmrig -c configGPU.json
miner29
Full Member
***
Offline Offline

Activity: 1262
Merit: 138


View Profile
May 31, 2021, 01:55:45 PM
 #8

Finally got time to get it installed.  Working now on gpu on randomx.  Didnt change any parameters yet except pool/wallet/algo.
Getting 5mhs on it...but will look at how parameters are set up.  Its on a Radeon Pro Vega 64.  

FYI 2gb is too small for RVN.  Currently 3gb works but not for much longer due to dag growth.

Maybe can get CCX (cn/gpu) working as it does work on 2gb cards.
ganzocrypt (OP)
Newbie
*
Offline Offline

Activity: 162
Merit: 0


View Profile
May 31, 2021, 09:34:30 PM
 #9

@miner29

Oh cool, great to know that is working, let me know if there are any issue.
So you are mining on rx/0 on GPU, which coin?
Also will update the list of Cards and Algo that is supporting as people using the miner can give some feedback ( it's like trial and error).

Will probably update it soon since I recompiled bunch of libraries that needed to be update it in brew.

Ok RVN needs more memory, great to know!

You can play with intensity and worksize to increase hashrate, just keep in mind that at certain point you might have issues with the miner.
At that point just lower the values.

I tested on RX580 8Gb, getting around 7Mhs and I have the following:
"kawpow": [
            {
                "index": 0,
                "intensity": 36864,
                "worksize": 256,
                "threads": [-1]
            }
        ],
ganzocrypt (OP)
Newbie
*
Offline Offline

Activity: 162
Merit: 0


View Profile
June 02, 2021, 11:57:03 AM
 #10

I recompiled xmrig with latest libs.
No feature changes so just get the one on the github.

Please report any issues, or success with algo and card so that I can update the list.

Download binary from here: https://github.com/ganzocrypt/xmrig-macos/releases
ganzocrypt (OP)
Newbie
*
Offline Offline

Activity: 162
Merit: 0


View Profile
June 12, 2021, 06:09:14 PM
 #11

@miner29 did you had a chance to test it?

can you share coin / card / cpu / macOS version so I can add to the list

any issues?

thx
miner29
Full Member
***
Offline Offline

Activity: 1262
Merit: 138


View Profile
June 13, 2021, 12:37:09 AM
 #12

ganzocrypt,

Yes sure its a 2017 mac pro 3.0ghz Xeon 10core 64gb ram unit
GPU is the Radeon Pro 64 16gb unit.
ive stuck it on rvn and going from 5-17mhs (i think itmay be thermal throttling)

Ive had no real luck tuning the setting for the gpu.  Everything ive tried lowers or doesnt seem to affect its speed.

OSx 10.15.7
JayDDee
Full Member
***
Online Online

Activity: 1386
Merit: 220


View Profile
June 13, 2021, 01:08:25 AM
 #13

ganzocrypt,

Yes sure its a 2017 mac pro 3.0ghz Xeon 10core 64gb ram unit
GPU is the Radeon Pro 64 16gb unit.
ive stuck it on rvn and going from 5-17mhs (i think itmay be thermal throttling)

Ive had no real luck tuning the setting for the gpu.  Everything ive tried lowers or doesnt seem to affect its speed.

OSx 10.15.7

My guess is a CPU affinity problem, which is OS specific and likely not implemented for MACOS.
Without it the OS will schedule the mining threads wherever it wants instead of assigning each
thread to a specific CPU core. If MACOS has process monitoring tools you can probably prove it.

ganzocrypt (OP)
Newbie
*
Offline Offline

Activity: 162
Merit: 0


View Profile
June 13, 2021, 07:55:28 AM
 #14

@miner29

Thanks a lot will update the release note!
miner29
Full Member
***
Offline Offline

Activity: 1262
Merit: 138


View Profile
June 13, 2021, 07:40:12 PM
 #15

ganzocrypt,

Yes sure its a 2017 mac pro 3.0ghz Xeon 10core 64gb ram unit
GPU is the Radeon Pro 64 16gb unit.
ive stuck it on rvn and going from 5-17mhs (i think itmay be thermal throttling)

Ive had no real luck tuning the setting for the gpu.  Everything ive tried lowers or doesnt seem to affect its speed.

OSx 10.15.7

My guess is a CPU affinity problem, which is OS specific and likely not implemented for MACOS.
Without it the OS will schedule the mining threads wherever it wants instead of assigning each
thread to a specific CPU core. If MACOS has process monitoring tools you can probably prove it.

The cpu miningis fine its the gpu mining thats all over the place.
I can get around 10khs out of cpu on monero.  But want to use the gpu in the unit.  its a nice beast.
JayDDee
Full Member
***
Online Online

Activity: 1386
Merit: 220


View Profile
June 15, 2021, 03:36:16 PM
 #16

The cpu miningis fine its the gpu mining thats all over the place.
I can get around 10khs out of cpu on monero.  But want to use the gpu in the unit.  its a nice beast.

GPU hashrate could vary depending on display activity. It does on Windows with certain algos.
I've seen up to 40% faster when the monitor goes to sleep.

miner29
Full Member
***
Offline Offline

Activity: 1262
Merit: 138


View Profile
June 15, 2021, 06:08:40 PM
 #17

The cpu miningis fine its the gpu mining thats all over the place.
I can get around 10khs out of cpu on monero.  But want to use the gpu in the unit.  its a nice beast.

GPU hashrate could vary depending on display activity. It does on Windows with certain algos.
I've seen up to 40% faster when the monitor goes to sleep.

Nothing is on the monitor.  I cant disconnect but im not using this mac pro for anything just letting it mine.  I susepct its thermal cycling due to being all in one 27” i mac pro.

What i can use is help with optimizing the parameters for it in the config file.
JayDDee
Full Member
***
Online Online

Activity: 1386
Merit: 220


View Profile
June 15, 2021, 06:36:52 PM
 #18

What i can use is help with optimizing the parameters for it in the config file.

Good luck with that, there aren't many MAC miners to share their experience.

Tuning is important but it's not likely to solve your fluctuation problem. Tuning helps in the best
case but doesn't help the worst case. You need to troubleshoot to find out what's really going on.

ganzocrypt (OP)
Newbie
*
Offline Offline

Activity: 162
Merit: 0


View Profile
June 15, 2021, 06:48:54 PM
Last edit: June 15, 2021, 07:45:59 PM by ganzocrypt
 #19

There are 2 config files in the github https://github.com/ganzocrypt/xmrig-macos/releases/tag/v6.13.0-dev-macos

I used KawPow on unminable and I played a bit with Intensity:

"kawpow": [
            {
                "index": 0,
                "intensity": 36864,
                "worksize": 256,
                "threads": [-1]
            }
        ],

So you can check that in the OpenCL section of the config. Start with a low number and increase it. The above was for a 580 8gb
zcbdfgrg
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
August 01, 2021, 02:32:05 PM
 #20

Created an account to say thanks!!!!

Got this up and running on a 2019 macbook pro with Radeon Pro 5300M 4GB.

KawPow seems to fluctuate wildly between a reported hashrate of 0MH/S and 16MH/S on Unmineable, though the cmd output shows a constant 3.5mh/s

Have never noticed my fan kick on overdrive, so i'm not sure if it could get higher, and the system is doing something to pre-emptively throttle it.  Any thoughts?

I had previously had it mining on Prohashing using their ethereum-lite ethash, and was getting right around 14mh/s on that, and i'd hear the fans spin up quite frequently.


in Pools, i set "algo": "kawpow"

and in kawpow, i set "index" : 1, because otherwise it tried to use the integrated gpu as well.

Thanks again!
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!