Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Platform detection issues on Apple MacOS #1839

Closed
CryptoManiac opened this issue Jan 31, 2019 · 24 comments
Closed

Platform detection issues on Apple MacOS #1839

CryptoManiac opened this issue Jan 31, 2019 · 24 comments

Comments

@CryptoManiac
Copy link

CryptoManiac commented Jan 31, 2019

Platform detection fails with the following message:

Unrecognized platform Apple

To Reproduce
Steps to reproduce the behavior:

  1. Build with ETHASHCL set to on and ETHASHCUDA to off

    cmake .. -DETHASHCUDA=OFF -DETHASHCL=ON
    cmake --build . --config Release

  2. Try to get a list of OpenCL devices:
    ./ethminer --list-devices

  3. See error message

Expected behavior
You should see a list of available OpenCL devices.

ethminer 0.18.0-alpha.3-25+commit.e6868d38.dirty
Build: darwin/release/appleclang

 Id Pci Id    Type Name                          CL    Total Memory  Cl Max Alloc  Cl Max W.Grp
--- --------- ---- ----------------------------- ----  ------------  ------------  ------------
  0           Gpu  AMD Radeon Pro Vega 56 Compu  Yes        7.98 GB       2.00 GB      256.00 B

Environment:

  • Operating System: Mac OS 10.14.2
  • Compiler: clang-1000.10.44.4
  • Hardware: Radeon Pro Vega 56 8GB
  • Ethminer Version: 0.18.0-alpha.3-25+commit.e6868d38
  • Ethminer options used: no options, just --list-devices.

Additional context
Due to incorrect hardware detection, it's not possible to use miner on its purpose. Though I was able to workaround this issue by applying ugly patch:

+++ b/libethash-cl/CLMiner.cpp
@@ -460,6 +460,8 @@ void CLMiner::enumDevices(std::map<string, DeviceDescriptor>& _DevicesCollection
             platformType = ClPlatformTypeEnum::Clover;
         else if (platformName == "NVIDIA CUDA")
             platformType = ClPlatformTypeEnum::Nvidia;
+        else if (platformName == "Apple")
+            platformType = ClPlatformTypeEnum::Amd;
         else
         {
             std::cerr << "Unrecognized platform " << platformName << std::endl;

clinfo output:

clinfo.txt

@skashi
Copy link

skashi commented Apr 15, 2019

+1

@minodesign
Copy link

minodesign commented Jul 14, 2019

Very similar issue here.
Mac PRo 6.1 with D300s and the line

./ethminer -G --list-devices

gives a

Unrecognized platform Apple
Error: No usable mining devices found

It would be nice to know the Hashrate of the baseline Mac Pro 2013 GPUs

@MariusVanDerWijden
Copy link
Collaborator

Sorry @minodesign we dropped apple support quite some releases ago. It does not make sense for us to maintain a platform with such low usage.

@minodesign
Copy link

minodesign commented Jul 15, 2019

eh imagined.
I desume that at a certain point, a previous release supported the 2013 Mac Pro... it's an old model.
Which version could be?

@nicerobot
Copy link

@MariusVanDerWijden

we dropped apple support quite some releases ago

recent darwin release

@CryptoManiac
Copy link
Author

@minodesign iMac Pro, for example. Or MacBook pro with AMD GPU.
These are nice for the development purposes.

@MariusVanDerWijden That's a shame then. It's not about casual usage, it's about debugging and development of private chains, pool software, etc.

@leedrake5
Copy link

I was able to replicate this problem. Any solutions out there?

slashbinslashnoname added a commit to slashbinslashnoname/ethminer that referenced this issue Jan 7, 2020
 Done: add Apple support for AMD / OpenCL cards

@see ethereum-mining#1839
@snwfdhmp
Copy link

snwfdhmp commented Jun 2, 2020

Same issue here. macOS support is important.

@snwfdhmp
Copy link

snwfdhmp commented Jun 2, 2020

or delete the binary.

@BeenHijacked
Copy link

So is this project only for Windoze and Linux fanbois?

@jean-m-cyr
Copy link
Contributor

No. This project is effectively abandoned.

@leo-bogastry
Copy link

Please update your README documentation to reflect this.

@ghost
Copy link

ghost commented Feb 13, 2021

Indeed why is the project releasing Darwin builds if support was dropped?

@prinze77
Copy link

macOS support is important.

@morekid
Copy link

morekid commented Mar 3, 2021

RIP eth mining on mac os then. Could you please update documentation to reflect? https://github.com/ethereum-mining/ethminer#install

@bcheeves
Copy link

bcheeves commented Mar 9, 2021

I understand if the project is taking the stance that Mac OS is no longer supported, but I think @morekid makes a good point that the documentation on the readme.md page should probably be updated then. Also, mind me asking why, if someone has already released a patch, and a pull request, someone can't simply just merge it into the code? Your build system, or whatever is compiling the releases is still building the Darwin binary:
https://github.com/ethereum-mining/ethminer/releases/tag/v0.19.0-alpha.0

@CryptoManiac
Copy link
Author

Indeed why is the project releasing Darwin builds if support was dropped?

https://www.youtube.com/watch?v=B18ss3dbRAI

Neville Longbuttom: Uh, professor. Why can't we just use magic to get rid of the virus?

Severus Snape: Because, Mr. Longbottom, the logic of the wizarding world is held together by duct tape and begins to unravel at the slightest bit of scrutiny. I mean, we loan out incredibly powerful time-travel devices to 13 year olds so they can take extra classes. Nothing makes any sense, and you'd be better off if you didn't think about it.

@brihoward
Copy link

macOS support is important.

Here to say this, it's frustrating to find a workaround when it could be easily implemented. Especially with the GPUs that are now shipping with Macs, or the growing Hackintosh community that offer the same GPUs as their Windows counterparts. Hopefully this gets reconsidered, rather than being met with absolute stubbornness. Appreciate the work, regardless.

@capnslipp
Copy link

capnslipp commented Mar 14, 2021

Somebody got ethminer running on a new M1 MacBook with a few minor changes to the codebase: https://blog.yifangu.com/2021/02/26/mining-ethereum-on-a-m1-mac-gpu/

Looks like if help ethminer find your Mac's GPU(s) (M1 or Intel-AMD, I expect), then it spools up and works as intended.

@dotku
Copy link

dotku commented Jun 22, 2021

macbook support is important, at least should not take it down; we can use eGPU; there are many macbook users (especially software engineers and media content workers).

@j4m13c0
Copy link

j4m13c0 commented Dec 30, 2021

Thank you for wasting my time with build instructions and binaries for it to not be supported. There's 3 hours I won't be getting back.

@prinze77
Copy link

I spend 3days((

@AndreaLanfranchi
Copy link
Collaborator

@jamiecruickshank @prinze77 sorry guys to hear your disappointment but :

  • In several issues we have declared we do not support MacOS
  • This project is stale with no development since 2 year and a half (last stable release is July 2019)

@capnslipp
Copy link

@AndreaLanfranchi Sounds like we need some better maintainers for this projects. A nice chunky codebase that’ll run just as well on macOS as any *nix platform, held up by some basic GPU detection logic. And a maintainer who seems to have no interest in listening to the community’s appeals— just wants to shout “no” like a child.

And this, ladies and gentlemen, is why open source often sucks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests