<p>CPU mining is no longer supported. See CGMiner FAQ:</p>
<blockquote>
<p>Q: What happened to CPU mining?</p>
<p>A: Being increasingly irrelevant for most users, and a maintenance issue, it is
no longer under active development and will not be supported. No binary builds
supporting CPU mining will be released. Virtually all remaining users of CPU
mining are as back ends for illegal botnets. The main reason cgminer is being
inappopriately tagged as a virus by antivirus software is due to the trojans
packaging a CPU mining capable version of it. There is no longer ANY CPU mining
code in cgminer. If you are mining bitcoin with CPU today, you are spending
1000x more in electricity costs than you are earning in bitcoin.</p>
</blockquote>

CC BY-SA 3.0
2013-06-19T06:17:32.753Z
2013-06-19T06:17:32.753Z
2020-06-16T11:10:03.350Z
M.Sameer
<p>When building the source use:</p>

<pre><code>./configure --enable-cpumining &amp;&amp; make
</code></pre>

<p>At the end of the configure stage you will see a list of what has been enabled, like this:</p>

<pre><code>------------------------------------------------------------------------
cgminer 2.9.6
------------------------------------------------------------------------


Configuration Options Summary:

  curses.TUI...........: FOUND: -lncurses
  OpenCL...............: NOT FOUND. GPU mining support DISABLED
  scrypt...............: Disabled (needs OpenCL)
  ADL..................: SDK NOT found, GPU monitoring support DISABLED

  BitForce.FPGAs.......: Disabled
  Icarus.FPGAs.........: Disabled
  ModMiner.FPGAs.......: Disabled
  Ztex.FPGAs...........: Disabled

  CPU Mining...........: Enabled
  ASM.(for CPU mining).: true

Compilation............: make (or gmake)
  CPPFLAGS.............: 
  CFLAGS...............: -g -O2
  LDFLAGS..............:  -lpthread 
  LDADD................:  -lcurl   compat/jansson/libjansson.a -lpthread     -lm  

Installation...........: make install (as root if needed, with 'su' or 'sudo')
  prefix...............: /usr/local
</code></pre>

<p>You can get a list of supported options with ./configure --help (standard behavior for configure)</p>

CC BY-SA 3.0
2013-04-13T14:32:53.047Z
Thanks! One more question though: where can I find such information? The README isn't very helpful.
drakide
CC BY-SA 3.0
2013-06-06T00:50:50.827Z
This no longer seems to work in 3.1.1
Goddard
CC BY-SA 3.0
2013-06-19T18:06:29.853Z
BFGMiner still supports CPU mining, FWIW.
Luke Dashjr
CC BY-SA 3.0
2015-06-13T01:34:39.400Z
@Luke-Jr Even with the new getblocktemplate protocol?
Geremia
CC BY-SA 3.0
2015-06-14T02:04:05.977Z
Sure, hardware is mostly abstract from protocol, especially in that direction.
Luke Dashjr
CC BY-SA 3.0
2013-04-13T13:30:01.850Z
2013-05-29T01:53:01.373Z
2013-05-29T01:53:01.373Z
Brian C. Lane
<p>I'd like to start mining Bitcoins on a CPU for testing purposes. I've downloaded CGMiner, compiled it and created a config file without any problems, however starting it results in an error message:</p>

<blockquote>
  <p>All devices disabled, cannot mine!</p>
</blockquote>

<p>What do I need to do in order for CGMiner to consider my CPU a device?</p>

CC BY-SA 3.0
2017-08-30T18:43:49.553Z
You could try an older release of cgminer. Mining bitcoin by CPU is a waste of energy literally.
Sun
<linux><cpu><cgminer>
How to configure CGMiner with CPU?
drakide
# How to configure CGMiner with CPU?

(Asked by: username_0 on 2013-04-13)

I'd like to start mining Bitcoins on a CPU for testing purposes. I've downloaded CGMiner, compiled it and created a config file without any problems, however starting it results in an error message:

> All devices disabled, cannot mine!

What do I need to do in order for CGMiner to consider my CPU a device?

**Tags:** linux, cpu, cgminer

> **Comments:**
> **username_1**: You could try an older release of cgminer. Mining bitcoin by CPU is a waste of energy literally.  

---

## 2 answers

### Answer by username_3 on 2013-04-13. Score: 14 | Accepted answer

When building the source use:
./configure --enable-cpumining && make

At the end of the configure stage you will see a list of what has been enabled, like this:
------------------------------------------------------------------------
cgminer 2.9.6
------------------------------------------------------------------------


Configuration Options Summary:

  curses.TUI...........: FOUND: -lncurses
  OpenCL...............: NOT FOUND. GPU mining support DISABLED
  scrypt...............: Disabled (needs OpenCL)
  ADL..................: SDK NOT found, GPU monitoring support DISABLED

  BitForce.FPGAs.......: Disabled
  Icarus.FPGAs.........: Disabled
  ModMiner.FPGAs.......: Disabled
  Ztex.FPGAs...........: Disabled

  CPU Mining...........: Enabled
  ASM.(for CPU mining).: true

Compilation............: make (or gmake)
  CPPFLAGS.............: 
  CFLAGS...............: -g -O2
  LDFLAGS..............:  -lpthread 
  LDADD................:  -lcurl   compat/jansson/libjansson.a -lpthread     -lm  

Installation...........: make install (as root if needed, with 'su' or 'sudo')
  prefix...............: /usr/local

You can get a list of supported options with ./configure --help (standard behavior for configure)

> **Comments:**
> **username_0**: Thanks! One more question though: where can I find such information? The README isn't very helpful.  
> **username_4**: This no longer seems to work in 3.1.1  
> **username_5**: BFGMiner still supports CPU mining, FWIW.  
> **username_6**: @Luke-Jr Even with the new getblocktemplate protocol?  
> **username_5**: Sure, hardware is mostly abstract from protocol, especially in that direction.  

---

### Answer by username_2 on 2013-06-19. Score: 16

CPU mining is no longer supported. See CGMiner FAQ:

> Q: What happened to CPU mining?
>
> A: Being increasingly irrelevant for most users, and a maintenance issue, it is
> no longer under active development and will not be supported. No binary builds
> supporting CPU mining will be released. Virtually all remaining users of CPU
> mining are as back ends for illegal botnets. The main reason cgminer is being
> inappopriately tagged as a virus by antivirus software is due to the trojans
> packaging a CPU mining capable version of it. There is no longer ANY CPU mining
> code in cgminer. If you are mining bitcoin with CPU today, you are spending
> 1000x more in electricity costs than you are earning in bitcoin.


---

