fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.06k stars 1.79k forks source link

ALERT: MacOS after 10.14 dropping OpenCL #1632

Open Spudz76 opened 6 years ago

Spudz76 commented 6 years ago

OpenGL and OpenCL are being abandoned by Apple after macOS 10.14 in preference of their own Metal APIs.

Any developers that actually have macOS and can translate OpenCL to Metal would be the savior of the macOS users, otherwise I would figure macOS >10.14 will never work with xmr-stak

lilyanatia commented 6 years ago

from the page you linked:

When a deprecation occurs, it’s not an immediate end of life for the specified API. Instead, it is the beginning of a grace period for transitioning from that API and to newer and more modern replacements. Deprecated APIs typically remain present and usable in the system for a reasonable time past the release in which they were deprecated.

Apps built using OpenGL and OpenCL will continue to run in macOS 10.14,

Spudz76 commented 6 years ago

Thus, why I said after 10.14

Present and usable is the status of Terascale support in AMD drivers but hasn't actually operated correctly for the last 4 major versions of drivers, they may as well have hard dropped them in v15. Stuff "operates" but nothing like it should, wrong memory amounts, clunky execution.

So OpenCL will not be QA anymore and should not be expected to work. And 10.14 is where the Metal backend dev has to happen if MacOS is going to continue to be 'fully' supported. Already wonder if OpenCL is just a shim to Metal and direct Metal would be faster (like OpenCL-on-CUDA is always slower).

But I don't/wouldn't have Apple anything and haven't used MacOS since 10.3 and never developed on it. So I have no horses in this dog race. Just saw the news and marked the milestone on the radar otherwise 10.15 will roll out and Issues will be flooded because nobody ever said this won't work and there will be no Metal backend and no other solution. So this is my ToldYaSo reference also for 2020 or whenever.

slax0r commented 6 years ago

not true that theres no Metal backend. There is no Metal backend in xmr-stak presently. This guys has done some excellent work that Ive used and it works very well. I hope macOS users will get behind him:

https://github.com/djphoenix/MoneroKit

Still very developeresque but still.

Spudz76 commented 6 years ago

Why would I speak about anything but xmr-stak here? Inherent in "there is no Metal backend" as any other miner is OT

slax0r commented 6 years ago

The point is that MoneroKit is a metal library for cryptonight based coins, including the v7 coins, that could be fairly easily integrated into xmr-stak when/if OpenCL is stripped out of later versions of macOS. Don't be hating on the macOS users, you be surprised how many of us there are that use xmr-stak. ;)

Spudz76 commented 6 years ago

Exactly why I added this waaay ahead of time so we get/borrow/steal whatever works, before OpenCL doesn't.