How to run a command on osx without owning a Mac ? Or more exactly, how to emulate an Apple Silicon Macintosh on ᴘᴄ/Intel based hardware ?

For some reason, I need to use a specific software that is supposed to run everywhere but turns out it only finds results on a osx running on Apple Silicon as ./profanity.x64 --reverse --steps 20000 --cache --target 0x24bfec77b282d8f45a22e3a9dd6019ae61cd0704b02600aa53e7f3a1e70ec4374fabdea4ac483629ab3021224be6575dbf0ab2cd742ecabb7dc38c228c73a19b from the Readme.md doesn’t return a result on other platforms.

So the situation is : * It’s reported to behave in the current way (not finding results) on all ᴘᴄ hardware and compilers (Windows & Linux & bsd). More exactly, it seems this condition inside the code becomes true only on a Apple’s Silicon based Macintosh. * Per user reports, it works on all Apple Silicon (M1 & M2) Mac, so that the exact Apple Silicon hardware is irrelevant.

Now, what I wonder :

  • Is it a memory coherency issue so that using CL_DEVICE_TYPE_CPU instead of CL_DEVICE_TYPE_GPU in Profanity.cpp would cause the software to no longer run correctly ?
  • If not, is it a platform issue so that it doesn’t run on osx that uses Intel ? (Update : someone told me this morning it’s not working on his 2013 Intel mac but without telling how so it’s unsure it’s the bug I’m dealing about)

Of course, nobody owing a Mac is willing to help by taking 5 minutes to download the source code ; and then try the source code modifications out for debugging.
So how to run osx for Apple’s silicon‑based Mac on a ᴘᴄ as even renting a M1 Mac would at least 50 times more costly and that I can afford ? Performance isn’t that much a problem for me, besides a Mac M3 pro is far slower than what I have even when not emulated…

submitted by /u/AbbreviationsGreen90
[link] [comments]