xmrig/xmrig-amd

macOS 10.13.1: No AMD OpenCL platform found. Possible driver issues or wrong vendor driver.

mxjoe opened this issue · 3 comments

mxjoe commented

I own a MacBook Pro with an AMD Radeon Pro 460 with 4 GB. The source code compiles fine but when running xmrig-amd it quits with following message.

compiling code and initializing GPUs. This will take a while... No AMD OpenCL platform found. Possible driver issues or wrong vendor driver. Failed to start threads

Is this misconfiguration of my config.json file, I boroughed it from the Windows version, or is it something code related?

config.json (I reverted user and password back to default):
{ "algo": "cryptonight", "background": false, "colors": true, "donate-level": 5, "log-file": null, "print-time": 60, "retries": 5, "retry-pause": 5, "syslog": false, "opencl-platform": 0, "threads": null, "pools": [ { "url": "xmr-eu.secumine.net:7777", "user": "x", "pass": "x", "keepalive": true, "nicehash": true } ] }

xmrig commented

I added command line option --print-platforms, please rebuild with recent changes and show output of ./xmrig-amd --print-platforms.

Also please show clinfo output, better attach it as file or use https://pastebin.com/ there a lot of lines.

I think AMD platform on macOS not named Advanced Micro Devices, Inc. and autoconf failed.
Thank you.

xmrig commented

Looks like on macOS always only one OpenCL platform named Apple and it broke autoconfig and it need be rewritten, clinfo output will helps a lot.

try config:

{
  "algo": "cryptonight",
  "background": false,
  "colors": true,
  "donate-level": 5,
  "log-file": null,
  "print-time": 60,
  "retries": 5,
  "retry-pause": 5,
  "syslog": false,
  "opencl-platform": 0,
  "threads": [
    {
      "index": 0,
      "intensity": 100,
      "worksize": 8,
      "affine_to_cpu": false
    }
  ],
  "pools": [
    {
      "url": "xmr-eu.secumine.net:7777",
      "user": "x",
      "pass": "x",
      "keepalive": true,
      "nicehash": true
    }
  ]
}

If index 0 not your AMD GPU, change it to 1, etc.
change intensity to 896, tune it to get maximum hashrate.

mxjoe commented

Output of xmrig-amd --print-platforms is:

#0: Apple

If I use your updated config.json from above it works! 😊
index 0 is integrated Intel GPU and index 1 is AMD GPU.

When running on AMD with intensity 100 this is being output:

  • VERSIONS: XMRig/2.4.3-beta2 libuv/1.15.0 OpenCL/1.2 clang/9.0.0
  • CPU: Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz x64 AES-NI
  • ALGO: cryptonight, donate=5%
  • POOL #1: xmr-eu.secumine.net:7777
  • COMMANDS: hashrate, pause, resume
    [2017-11-01 09:26:44] compiling code and initializing GPUs. This will take a while...
    [2017-11-01 09:26:44] using non AMD device: Apple
    [2017-11-01 09:26:44] #0, GPU #1 AMD Radeon Pro 460 Compute Engine, intensity: 100 (8/256), cu: 16
    [2017-11-01 09:26:48] use pool xmr-eu.secumine.net:7777 85.214.246.99
    [2017-11-01 09:26:48] new job from xmr-eu.secumine.net:7777 diff 10000
    [2017-11-01 09:26:52] new job from xmr-eu.secumine.net:7777 diff 17647
    [2017-11-01 09:27:48] speed 10s/60s/15m 23.2 n/a n/a H/s max: 23.3 H/s
    [2017-11-01 09:27:52] new job from xmr-eu.secumine.net:7777 diff 11765
    [2017-11-01 09:27:54] Ctrl+C received, exiting
    [2017-11-01 09:27:56] no active pools, stop mining

When running on AMD with intensity 896 this is being output:

  • VERSIONS: XMRig/2.4.3-beta2 libuv/1.15.0 OpenCL/1.2 clang/9.0.0
  • CPU: Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz x64 AES-NI
  • ALGO: cryptonight, donate=5%
  • POOL #1: xmr-eu.secumine.net:7777
  • COMMANDS: hashrate, pause, resume
    [2017-11-01 09:28:14] compiling code and initializing GPUs. This will take a while...
    [2017-11-01 09:28:14] using non AMD device: Apple
    [2017-11-01 09:28:14] #0, GPU #1 AMD Radeon Pro 460 Compute Engine, intensity: 896 (8/256), cu: 16
    [2017-11-01 09:28:18] use pool xmr-eu.secumine.net:7777 85.214.246.99
    [2017-11-01 09:28:18] new job from xmr-eu.secumine.net:7777 diff 10000
    [2017-11-01 09:28:23] new job from xmr-eu.secumine.net:7777 diff 10000
    [2017-11-01 09:28:56] new job from xmr-eu.secumine.net:7777 diff 10000
    [2017-11-01 09:29:01] accepted (1/0) diff 10000 (65 ms)
    [2017-11-01 09:29:11] new job from xmr-eu.secumine.net:7777 diff 10000
    [2017-11-01 09:29:18] speed 10s/60s/15m n/a n/a n/a H/s max: n/a H/s
    [2017-11-01 09:29:22] accepted (2/0) diff 10000 (49 ms)
    [2017-11-01 09:29:53] new job from xmr-eu.secumine.net:7777 diff 6360
    [2017-11-01 09:30:04] accepted (3/0) diff 6360 (51 ms)
    [2017-11-01 09:30:18] speed 10s/60s/15m n/a 85.5 n/a H/s max: n/a H/s
    [2017-11-01 09:30:53] new job from xmr-eu.secumine.net:7777 diff 5130
    [2017-11-01 09:31:10] new job from xmr-eu.secumine.net:7777 diff 5130
    [2017-11-01 09:31:18] speed 10s/60s/15m n/a 85.4 n/a H/s max: n/a H/s
    [2017-11-01 09:31:53] new job from xmr-eu.secumine.net:7777 diff 3690
    [2017-11-01 09:32:18] speed 10s/60s/15m n/a 85.4 n/a H/s max: n/a H/s
    [2017-11-01 09:32:20] accepted (4/0) diff 3690 (51 ms)
    [2017-11-01 09:32:53] new job from xmr-eu.secumine.net:7777 diff 3270

I wasn't able to create an output of clinfo as I couldn't find it on my system.