xmrig / xmrig-cuda

NVIDIA CUDA plugin for XMRig miner
GNU General Public License v3.0
358 stars 155 forks source link

CUDA for MacOS #100

Closed Miner29974 closed 2 years ago

Miner29974 commented 3 years ago

Hi

do it exist a plug-in for macOS? If not is there a développer who can try do do it?

thank you

Spudz76 commented 3 years ago

Nvidia dropped MacOS support after CUDA Toolkit 10.2. (11.x has no MacOS support)

CUDA Toolkit 10.2 allegedly works on 10.13 High Sierra. Unknown if it works on anything newer. Unknown how to use it in a build if it's any different than Linux.

None of the devs here have Apple anything therefore the lack of much support other than guesses. But usually Apple does something that breaks things anyway, like deprecating OpenCL and not really wanting CUDA to work either (both in preference of everyone switching to Metal, which nobody has so far).

Miner29974 commented 3 years ago

Thank you.

I understand it is impossible to use my old macbook nvidia GeForce 320M to help my CPU to mine monero.

I am buying à computer to try it better ans with also a gPU for etherum. Is there on github a specific mining OS?

Best regards.

Envoyé de mon iPad

Le 10 mai 2021 à 19:54, Tony Butler @.***> a écrit :

 Nvidia dropped MacOS support as of CUDA Toolkit 10.2.

CUDA Toolkit 10.2 works on 10.13 High Sierra. Unknown if it works on anything newer.

None of the devs here have Apple anything therefore the lack of full support. But usually Apple does something that breaks things anyway, like deprecating OpenCL and not really wanting CUDA to work either (both in preference of everyone switching to Metal).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Spudz76 commented 3 years ago

I have successfully compiled for MacOS High Sierra 10.13 with CUDA Toolkit 10.2 (the last version of OSX, and the last version of CUDA to support any MacOS). It did not work out-of-the-box and took some changes, I will clean these up and submit as PR, even though it doesn't matter anymore, but in case someone wants to run old software to make it work. Perhaps the CUDA Toolkit 10.2 can be installed on newer OS but nVidia claims 10.13 is the only supported one. Probably the driver is broken in newer versions so having a plugin that can't talk to a GPU anyway would be a pointless success.

[100%] Linking CXX shared library libxmrig-cuda.dylib
[100%] Built target xmrig-cuda
Miner29974 commented 3 years ago

Hello

Your job is great ! Do you think it will work with OS X Sierra and Cuda 6.xxx?

Thank you.

Envoyé de mon iPad

Le 14 mai 2021 à 03:45, Tony Butler @.***> a écrit :

 I have successfully compiled for MacOS High Sierra 10.13 with CUDA Toolkit 10.2 (the last version of OSX, and the last version of CUDA to support any MacOS). It did not work out-of-the-box and took some changes, I will clean these up and submit as PR, even though it doesn't matter anymore, but in case someone wants to run old software to make it work. Perhaps the CUDA Toolkit 10.2 can be installed on newer OS but nVidia claims 10.13 is the only supported one. Probably the driver is broken in newer versions so having a plugin that can't talk to a GPU anyway would be a pointless success.

[100%] Linking CXX shared library libxmrig-cuda.dylib [100%] Built target xmrig-cuda — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Spudz76 commented 3 years ago

Minimum supported CUDA is 8.0 for any platform, and minimum GPU "capability level" (arch) of 2.0 (Fermi)

It should work with Sierra (10.12) with CUDA Toolkit 9.0 for sure since it says it supports 10.12 directly. Perhaps newer Toolkits still work but they all say 10.13.

Unless you mean arch 6.x such as Pascal based 60 or 61 (GTX1060 or such) then yes, CUDA 9.0 supports those.

Spudz76 commented 3 years ago

Working build fixes in #104

If you could test a build and then a run. You may have to set the cuda->loader path in config.json to where the libxmrig-cuda.dylib is located. null was trying to load OpenCL for some reason in my limited testing (with no GPU).

It should at least locate the GPU and possibly will even work.

EDIT: has been merged into dev branch

Spudz76 commented 3 years ago

Repaired the loader: null problem in main xmrig, pending PR. Then copying the libxmrig-cuda.dylib along side xmrig executable and null setting as default will work, same as other platforms.

EDIT: has been merged into main xmrig dev branch

Spudz76 commented 3 years ago

I see you are actually meaning to use 320M which is too old for mining. :(

Miner29974 commented 3 years ago

Yes, it is for play with xmrig and m’y old MacBook and try to learn about mining.

I dont understrand where to found in github the file to put next xmrig.

Thank you Regards.

Envoyé de mon iPad

Le 14 mai 2021 à 14:01, Tony Butler @.***> a écrit :

 I see you are actually meaning to use 320M which is too old for mining. :(

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.