CudaMiner for OS X, John Chapman

CudaMiner for OS X, John Chapman

Please Note: I am no longer actively updating the CudaMiner and ccMiner utilities for OS X. Thesis pages are being kept for posterity, but will no longer be updated.

The last builds of the utilities were compiled with the CUDA Toolkit 6.0. Spil newer versions of the CUDA Toolkit are released, you have a duo of options if you wish to keep using thesis utilities:

  1. Keep using the 6.0 version. So far, there truly toevluchthaven’t bot any benefits to updating to 6.Five.

You can create a symlink so that the program can still find the files it needs. Open Terminal (Applications > Utilities) and do the following:

sudo ln -s /Developer/NVIDIA/CUDA-6.Five /Developer/NVIDIA/CUDA-6.0

You will be prompted for your password.

The above instruction will create a “fake” CUDA-6.0 directory that is actually a pointer to CUDA-6.Five.

CudaMiner is a command-line scrypt coin (i.e. Litecoin) miner for Nvidia GPUs developed by Christian Buchner (cbuchner1).

The developer of CudaMiner provides compiled binaries for Windows. Mac OS X users have previously had to by hand compile the source code ter order to use CudaMiner, see Mining Litecoin on Mac OS X with CudaMiner. To make this simpler for Mac OS X users, I am providing a compiled version of the CudaMiner releases for Mac OS X.

This information has bot updated for the fresh CudaMiner for OS X packages that do not require Xcode and some of the other prerequisites previously required. For the older instructions, spil well spil binaries for Snow Leopard, see CudaMiner for OS X (Old).

Update (2014-05-28): The 2014-02-28 release of CudaMiner has bot bot updated to work with both the Five.Five and 6.0 versions of the CUDA toolkit.

Update (2014-03-10): The CudaMiner packages have bot updated to include versions for Ten.7, Ten.8, and Ten.9 ter a single package. Simply run the the suitable version for your rekentuig.


  • Mac OS X Ten.7 Lion, Mac OS X Ten.8 Mountain Lion, OS X Ten.9 Mavericks, or OS X Ten.Ten Yosemite
  • Compute Two.x or Higher NVIDIA GPU (Compute 1.x GPUs are not supported), see for a listing of supported devices
  • CUDA Toolkit and Drivers Five.Five or 6.0

CudaMiner for OS X Releases

CudaMiner is compiled separately for Ten.7, Ten.8, Ten.9, and Ten.Ten. The downloads below include binaries for each.

Using CudaMiner

There are a number of command-line parameters available for CudaMiner outlined te its README verkeersopstopping. CudaMiner, however, will attempt to auto-tune its configuration based on your NVIDIA GPU. To launch CudaMiner using the auto-tune options, simply specify your pool URL and worker credentials spil goes after:


Share this:

Like this:

Thanks for the fresh version but I get segmentation fault when running wagen tune – otherwise it runs fine.

2014-02-26 06:30:37] Stratum detected fresh block

[2014-02-26 06:30:37] GPU #0: GeForce GTX 660M with compute capability Trio.0

[2014-02-26 06:30:37] GPU #0: interactive: 1, tex-cache: 0 , single-alloc: 0

[2014-02-26 06:30:37] GPU #0: 32 hashes / Four.0 MB vanaf warp.

Segmentation fault: 11

I’m getting a similar error with the fresh version, ‘Segmentation Fault: 11’, but I have nothing else running ter the background. I updated to Ten.8.Five recently and the 2014-02-18 version now says asks: ‘Incapable to query CUDA driver version! Is an nVidia driver installed?’

Any suggestions. Thanks for the fine work!

Attempt reinstalling the CUDA toolkit.

I’ve attempted uninstalling/reinstalling Cuda several different ways, including deleting nvidia’s installer paths. I’m still getting a Segmentation fault: 11 error.

Any thing else I could attempt? thx!

Attempt doing the following:

– Ter Finder, navigate to the CudaMiner folder > deps.

– Te Terminal, type cd and then a space.

– Haul the lib folder from Finder to the Terminal. It should add the total path to that folder te the instruction line (i.e. cd /Users/ ¦ )

– Klapper inject to switch directory to that folder

– Run this instruction to substitute the specified dylib opstopping: cp /usr/lib/libSystem.B.dylib ./

After doing that, attempt running CudaMiner again.

ah! cp the libSystem.B.dylib verkeersopstopping to Cudaminer dir did the trick. I’m too much of noob to understand why, but thanks a loterijlot for your help! it’s up and running.

Any switch to add noob instructions here? Downloaded the applicantion, opened cudaminer and allways get an error and don’t have a clue where to add the pool url or worker credintials….. sorry n00b I know 🙂

2014-02-28 22:07:35] 1 miner threads embarked, using ‘scrypt’ algorithm.

[2014-02-28 22:07:35] HTTP request failed: Failed to connect to port 9332: Connection refused

[2014-02-28 22:07:35] json_rpc_call failed, retry after 15 seconds

When you come in the guideline into the terminal, add your pool and credentials after cudaminer: ./cudaminer -o stratum+tcp://poolurl -O username:password

How can I zekering those 15sec retry’s to have time to type this guideline into the termianl?

Ctrl+C will end the current operation.

And then it is impossibe to write anyting te the terminal window after ctrl C….

Last login: Fri Feb 28 22:17:04 on ttys000

xxxxxxxxxxxxxxxx$ /Users/xxxxxx/Desktop/CudaMinerOSX-10-9-2014-02-181/cudaminer , uitgang,

*** CudaMiner for nVidia GPUs by Christian Buchner ***

This is version 2014-02-18 (beta)

based on pooler-cpuminer Two.Three.Two (c) 2010 Jeff Garzik, 2012 pooler

Cuda additions Copyright 2013,2014 Christian Buchner

LTC donation address: LKS1WDKGED647msBQfLBHV3Ls8sveGncnm

BTC donation address: 16hJF5mceSojnTD3ZTUDqdRhDyPJzoRakM

YAC donation address: Y87sptDEcpLkLeAuex6qZioDbvy1qXZEj4

[2014-02-28 22:17:43] 1 miner threads commenced, using ‘scrypt’ algorithm.

[2014-02-28 22:17:43] HTTP request failed: Failed to connect to port 9332: Connection refused

[2014-02-28 22:17:43] json_rpc_call failed, retry after 15 seconds

Open a fresh Terminal window. Haul the cudaminer verkeersopstopping from Finder to the Terminal window. It will inject the total path to the cudaminer opstopping ter the Terminal directive line. Then you can come in your parameters after that.

Thanks John. Both fresh to Mac and mining but ultimately got it to work. Had the lovely Asteroid and wasgoed around 65KH/s with my fresh GTX780M, now it lookd like I am around 250 :).

[2014-02-28 22:36:40] accepted: 12/12 (100.00%), 236.96 khash/s (yay. )

[2014-02-28 22:36:40] accepted: 13/13 (100.00%), 236.96 khash/s (yay. )

[2014-02-28 22:36:40] accepted: 14/14 (100.00%), 236.96 khash/s (yay. )

[2014-02-28 22:36:59] GPU #0: GeForce GTX 780M, 246.01 khash/s

[2014-02-28 22:36:59] accepted: 15/15 (100.00%), 246.01 khash/s (yay. )

[2014-02-28 22:37:04] GPU #0: GeForce GTX 780M, 242.70 khash/s

[2014-02-28 22:37:04] accepted: 16/16 (100.00%), 242.70 khash/s (yay. )

[2014-02-28 22:37:14] GPU #0: GeForce GTX 780M, 245.64 khash/s

[2014-02-28 22:37:14] accepted: 17/17 (100.00%), 245.64 khash/s (yay. )

I’d say that’s pretty darn good. Little jealous, only get 72 kh/s on my 650M 🙂

The fever is more with this cuda miner then the Asteroid obviously… can I turn down the force of the worker? GPU temp around 95 °now.

🙂 Yay, that’s the nature of the animal.

You can add -i 1 -h Two to the end of the directive. That won’t help a meaty amount, but it may help some.

I seem to be having trouble… I get the error “Unable to query CUDA driver version! Is an nVidia driver installed?”. I have installed the latest drivers AND attempted the previous version of drivers to no avail. I have a GeForce 320M, which is evidently not CUDA enabled, but I’ve used CUDA applications te the past on this same machine. Other people have also recorded that CUDA works with my device… Have any ideas?

The Five.Five CUDA toolkit only works with Compute Two.x and higher cards. Yours is a 1.x:

What version of the toolkit would be compatible with my card?

Five.0, but it only seems to work on Snow Leopard. You can get the old binaries for Snow Leopard here: http://www.johnchapman.netwerken/cudaminer-old/. Alternatively you could use Windows ter Bootcamp.

Installed the cuda toolkit and the driver, when I run I get:

dyld: Library not loaded: /usr/lib/system/libsystem_asl.dylib

Ooops. I wasgoed running Ten.9 version on my Ten.8.Four osx. Anyway, I got the juist version, and now I’m getting,

dyld: Library not loaded: /Developer/NVIDIA/CUDA-5.Five/lib/libcudart.Five.Five.dylib

Referenced from: /Users/abaybas/Downloads/CudaMinerOSX-10-7-2014-02-28/./cudaminer

Reason: Incompatible library version: cudaminer requires version Five.Five.0 or straks, but libcudart.Five.Five.dylib provides version 0.0.0

Trace/BPT trapje: Five

Make sure you have the Ten.8 version of CUDA.

Excellent! Thanks. I’ll leave this overnight, see how it does. Thanks!

Works flawlessly, but i had to disable samples installation ter cuda packages ter order to install it correctly. (OS X Ten.9 + CUDA Five.Five.28)

Go from 80kH/s with asteroid to 250-300kH/s with your instruction line compiled cudaminer. (GTX 660 TwinFrozr)

Did you think wij can use the inboard graphic cards at the same time ? (It’s a gigabyte z87 + corei5 Hackintosh)

You could use SGMiner for the non-CUDA GPU. You’d run that very first and disable the CUDA GPU before kicking off CudaMiner.

Hi, have had a cuda driver update, thought I’d have another crack at this, got you latest for Ten.9 above but got this error:

[2014-03-11 Nineteen:06:58] 1 miner threads commenced, using ‘scrypt’ algorithm.

[2014-03-11 Nineteen:06:58] HTTP request failed: Failed to connect to port 9332: Connection refused

[2014-03-11 Nineteen:06:58] json_rpc_call failed, retry after 15 seconds

I did switch the details te the “” verkeersopstopping, do I need to make switches elsewhere?

thanks ter advance (once again ,-)

Whoops, that opstopping wasn’t supposed to be included te the packages (I have updated them). Just run CudaMiner normally: ./cudaminer.Ten.9 -o stratum+tcp://yada -O username:password

thanks for that, ok, that worked, my readout is spil goes after:

This is version 2014-02-28 (beta)

based on pooler-cpuminer Two.Three.Two (c) 2010 Jeff Garzik, 2012 pooler

Cuda additions Copyright 2013,2014 Christian Buchner

LTC donation address: LKS1WDKGED647msBQfLBHV3Ls8sveGncnm

BTC donation address: 16hJF5mceSojnTD3ZTUDqdRhDyPJzoRakM

YAC donation address: Y87sptDEcpLkLeAuex6qZioDbvy1qXZEj4

[2014-03-11 Nineteen:56:40] 1 miner threads began, using ‘scrypt’ algorithm.

[2014-03-11 Nineteen:56:40] Beginning Stratum on stratum+tcp://

[2014-03-11 Nineteen:56:41] Stratum detected fresh block

[2014-03-11 Nineteen:56:41] Stratum detected fresh block

[2014-03-11 Nineteen:58:57] GPU #0: GeForce 9400 with compute capability 1.1

[2014-03-11 Nineteen:58:57] GPU #0: interactive: 1, tex-cache: 0 , single-alloc: 0

[2014-03-11 Nineteen:58:57] GPU #0: 32 hashes / Four.0 MB vanaf warp.

[2014-03-11 Nineteen:59:09] GPU #0: Performing auto-tuning (Patience…)

[2014-03-11 Nineteen:59:09] GPU #0: maximum total warps (BxW): 32

[2014-03-11 Nineteen:59:12] GPU #0: 3893.27 hash/s with configuration F4x4

[2014-03-11 Nineteen:59:12] GPU #0: using launch configuration F4x4

[2014-03-11 Nineteen:59:13] GPU #0: GeForce 9400, Trio.56 khash/s

[2014-03-11 Nineteen:59:21] Stratum detected fresh block

[2014-03-11 Nineteen:59:21] GPU #0: GeForce 9400, Trio.66 khash/s

[2014-03-11 Nineteen:59:41] Stratum detected fresh block

[2014-03-11 Nineteen:59:41] GPU #0: GeForce 9400, Three.68 khash/s

I do not think i can squeeze out more (yep it’s an older mac mini (with smc fan control) with only a 256 MB card) i wasgoed only getting Two.5-2.7 with asteroid i’ll use this with mac miner (cpu) &, &, will most likely get 20-24 k/hashes / sec not too shabby for my macmini for some reason it is showcasing spil mining at 20-36khs on my pool instrumentenbord, very likely will get close to 40-50khs when macminer (cpu) is activated. that’s a big woo-hoo for mij! ,-) do you take solarcoin? i could send you some of them…. ,-)

ps: thanks for you hard work!

Hmm, do you know if there is an OS X wallet for SolarCoin? Don’t see one on their webstek.

whoops my bad, I left behind all about that, it’s not made yet… say you’re a pretty welgevoeglijk code monkey, you up for a challenge? ,-)

Never played around with Qt before, installing the instruments now to see if I can get it to build. Te the codebase, it looks like there were some latest OSX-specific checkins. Looks like a Mac wallet might be close. Will see if there is anything I can do to help 🙂

Hi , i have this error when i attempt to run the cudaminer Ten.9 ” dyld: Library not loaded: /Developer/NVIDIA/CUDA-5.Five/lib/libcudart.Five.Five.dylib ” im ter mavericks Ten.9.Two whit cuda driver Five.Five.47 , can you halp mij ? Thanks !

I would attempt reinstalling the CUDA toolkit and then rebooting.

Thanks.. i download and install the cuda-mac-5.Five.28_10.9_64 and now work… but when i attempt this guideline : ./cudaminer.Ten.9 -d i got only this : *** CudaMiner for nVidia GPUs by Christian Buchner ***

This is version 2014-02-28 (beta)

based on pooler-cpuminer Two.Three.Two (c) 2010 Jeff Garzik, 2012 pooler

Cuda additions Copyright 2013,2014 Christian Buchner

LTC donation address: LKS1WDKGED647msBQfLBHV3Ls8sveGncnm

BTC donation address: 16hJF5mceSojnTD3ZTUDqdRhDyPJzoRakM

YAC donation address: Y87sptDEcpLkLeAuex6qZioDbvy1qXZEj4

cudaminer.Ten.9: option requires an argument – d

Attempt `cudaminer –help’ for more information.

Nothing about my GPU..

but ter cuda-z ter got all the informatie of my card ( gtx 780 ) Driver version 8.24.9 310.40.25f01

Do i need something more ?

The -d parameter is only needed to specify which GPUs to use. You can leave that out and just do: ./cudaminer.Ten.9 -o stratum+tcp://URL -O username:password

what a strak you are! i recon that would bounty you some coins too! ,-) they have bot after someone of your caliber to tackle the wallet for osx punt, good luck!

Hectare! Wij’ll see about that. Did find a few effortless thing to fix ter building for OSX, however, found a few things I am clueless on. Hopefully StackOverflow will have the answers ,-)

How does this look? ,-)

I should have a build for you to test here soon, getting some kinks worked out.

looking good john! ,-) I have notified of your good work &, asked them to consider gifting you some solar coin (or lite/bit coin) when you get a wallet, i’ll send you Ten solarcoin for helping mij out! ,-) thanks te advance.

For mij, it works on Ten.7 and Ten.9 (those are the two environments I have to test with). My SLR address is 8PvmL9gNtHUiFKJc6B7sDnfuLTqgX6FrSS. 🙂

Hopefully the Solarcoin folks will let mij thrust the necessary code switches for OSX to the main GitHub branch.

I bought a 2nd card, MSI gtx 760. Everything is running well except it’s running very hot, 79F before i shut it down. Is there anyway ter the instructions to lower the temperature? Is there software to lower the clock, msi has afterburner but windows only.

You could attempt adding -H 1 to the guideline. This will offload some of the processing to your CPU. It may not help a loterijlot, but could help some.

Hi John, I sent this to the people:

I wasgoed attempting out cudaminer for osx &, got it to work via the good work of John Chapman (see here: bottom of pagina: http://www.johnchapman.televisiekanaal/cudaminer/ ) anyhoo… that aside, I said I’d send him some solarcoins, but of course no osx wallet, so he said, he’d take a look &, see if he could get it working… anyways long story brief, observing spil he’s working on the wallet for osx, any chance that the community (or could bounty / send him some solarcoins or litecoins / bitcoins

they replied back:

I am CC:ing justin the SolarCoin tech lead on this. There is a 10K bounty for a delivered and community approved solarCoin MacOS client te the forums. I think the thing to do would be to postbode the punt for discussion there. The 10k is delivered to whomever supplies the client, but a lotsbestemming of good work has gone into the project spil a team effort. Ter the spirit of a semi-transparent and open community a discussion about sharing the bounty te a public forum might be the best thing to do.

Once the MacOS client is done please forward it to Justin CC:d above. Thanks for your involvement and volunteer efforts for the project. The SolarCoin community is all the stronger because of superb people like yourself.

Portfolio manager, analyst &, author

you should get ter touch directly, so they can pay you the bounty! ,-)

Cannot get it to launch at all.

iMac:lib bfindlay$ cp /usr/lib/libSystem.B.dylib ./

iMac:lib bfindlay$ cudaminer

-bash: cudaminer: guideline not found

iMac:lib bfindlay$ /Applications/CudaMinerOSX-2014-02-28/cudaminer.Ten.9

dyld: Library not loaded: /Developer/NVIDIA/CUDA-5.Five/lib/libcudart.Five.Five.dylib

Referenced from: /Applications/CudaMinerOSX-2014-02-28/cudaminer.Ten.9

Reason: photo not found

Looks like it cannot find the CUDA toolkit. Attempt reinstalling it and rebooting.

Hmmm. Dont indeed know what that means. I downloaded the osx Ten .9 innstaller. The instructions say to ‘simply run the suitable version’. Never geard of a Cuda installer before 30 seconds ago. Is it part of the package te the cudaminer disk pic?

Ter the prerequisites listed on this pagina, you’ll see the CUDA toolkit listed with a listig to get it. Download the Five.Five version for your OS.

John – thanks for your patience with this. I can now get it to run no problem, but it does nothing but come back ‘cudaminer –help’ for more information.

Is the password:username supposed to be for my ‘worker’ or for logging into the pool webstek? Also, is -o and -O puny ‘ohhh’ and capital ‘ohhhh’ or is the 2nd one a zero?

Update – never mind, I think I have it running now! Thanks again…

I got this purring like a kitten with my Geforce GTX 780M @

250 kH/s. But is there a way to run this (cudaminer-terminal/GPU) at the same time spil Asteroid (asteroid/Antminer U1)? When I attempt to do this Asteroid mines but it terminates the cudaminer… [Terminated: 15]

Launch Asteroid and then ter its preferences disable GPU mining. Then close and reopen Asteroid. It should no longer be interacting with the GPU and you can begin CudaMiner.

Attempted disabling GPU and reopening and still terminating and/or preventing CudaMiner from embarking.

Not sure if this is contributing but I do get a conflicting USB driver warning message from Asteroid on boot when the Antminers are plugged ter. Doesn’t seem to matter if i choose to disable the drivers or not.

Also seems to only conflicting if Asteroid is actually mining. If it’s just open but not mining it lets CudaMiner run. BUT, if CudaMiner is running and I open (or abandon, actually) Asteroid it will terminate CudaMiner mining.

Asteroid ultimately uses CGMiner spil its backend. You might attempt downloading the latest CGMiner (which has no GPU support) and running it from the directive line.

Hi, Very first thanks a loterijlot for the port. 🙂

I have observed that I get twice the hashing power using the original cudaminer under windows (Bootcamp) than using the port under iOSX. it is a big difference indeed! so I wasgoed wondering if there’s anything I can do to rise up the iosx voorstelling.

Of course I run both with the same set of parameters, but I get twice the hashing with the GTX 680MX.

Very first of all thanks a lotsbestemming for the port and all the work on it :).

I have noteice that cudaminer on windows (bootcamp) can get up to twice the hashing power out of my GPU than this port on OSX.

Any idea why this may be happening?

Ultimately the only differences at this point would be OSX vs. Windows and the NVIDIA graphics driver for each. I don’t think there is much that could be done differently from the CudaMiner perspective. Maybe just see if the same launch configuration is being used. If you are just letting it automaat tune, on Windows, grab the configuration (something like K32x4 or T16x2, etc). Then add that to the OSX directive to see if you get better vertoning.

You were right… for some reason the auto-config wasgoed not optimizing the settings well for OSX. I can get the same vertoning ter iOS by taking the configuration from Windows…

That’s interesting… Thanks!!

Worked flawlessly on my Macbook Professional. No issues whatsoever. Running around 62 khash/s on my Geforce GT 650M. I don’t know how you got it up to 72 😀

Any chance of a elementary step by step guide please? I downloaded it but when I dual click it the OS just tells mij there is no application assigned. I know i’m supposed to use terminal, but not sure what! Thank you.

The easiest thing to do here is to:

  1. Open Terminal (Applications > Utilities)
  2. Haul the cudaminer executable (cudaminer10.9 for ex) to the Terminal window (this will paste the utter path to the executable ter the Terminal window)
  3. Kasstuk the space buffet and then come in the parameters for cudaminer (like what you see on this pagina under “Using CudaMiner”)
  4. Succesnummer the come in key to execute the instruction

Thanks John, albeit I toevluchthaven’t got it working. It keeps telling “unsupported non-option argument” for various things i’ve typed te. What exactly do I type te after I’ve dragged te the executable and pressed space?

My pool url is stratum+tcp://

My username is 12MuTr6CnNQfiQz72mJuoVJ94KztPU5qfd

My password is x

Thanks for this!

You would inject -o stratum+tcp:// -O 12MuTr6CnNQfiQz72mJuoVJ94KztPU5qfd:x

(Those are both “o”’s, one is lowercase, one is upper).

So it would look like:

/path/cudaminer.Ten.9 -o stratum+tcp:// -O 12MuTr6CnNQfiQz72mJuoVJ94KztPU5qfd:x

Ahh Brilliant! I feel foolish now, i could have sworn I attempted that! All working now and hashing about 215kh/s with my GTX 660 te my hackintosh. I’ll send you some coins spil soon spil I have mined some! Many thanks.

Getting an error when attempting to open the most latest zip of the pre compiled software. any idea why?

What error are you eyeing?

Im getting this error, same spil an earlier poster.

Last login: Tue Apr 22 12:16:31 on ttys000

user1$ /Users/user1/Downloads/CudaMinerOSX-2014-02-28/cudaminer.Ten.8 , uitgang,

dyld: Library not loaded: /Developer/NVIDIA/CUDA-5.Five/lib/libcudart.Five.Five.dylib

Referenced from: /Users/user1/Downloads/CudaMinerOSX-2014-02-28/cudaminer.Ten.8

Reason: pic not found

Trace/BPT trapje: Five

But I have the toolkit installed-however its the fresh nvidia cuda toolkit 6 and not Five.Five, could this be a problem? I cant seem to find Five.Five for osx anywhere to download.

The binaries presently only support CUDA Five.Five. You can download it here: I’ve also updated the listig ter the article.

The 2014-02-28 package has bot updated to support both CUDA Five.Five and CUDA 6.0.

Hi John I’m having issues installing cudaminer with the Nvidia CUDA Driver Version: 6.0.37. Is there an updated guide/installer that supports the latest CUDA?

The binaries presently only support CUDA Five.Five. You can download it here: I’ve also updated the listig te the article.

The 2014-02-28 package has bot updated to support both CUDA Five.Five and CUDA 6.0.

Omzetbelasting this is the error im getting

Library not loaded: /Developer/NVIDIA/CUDA-5.Five/lib/libcudart.Five.Five.dylib

Referenced from: /Users/Ed/Desktop/CudaMinerOSX-2014-02-28/cudaminer.Ten.9

Reason: pic not found

Trace/BPT trapje: Five

Hi John, Any word on cudamining with X11 ? And thank you so much for all you do.

Related movie: Tutorial den como minar Electroneum usando cryptonote effortless miner

Leave a Reply

Your email address will not be published. Required fields are marked *