README 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. This is a multi-threaded CPU and GPU miner for bitcoin.
  2. License: GPLv2. See COPYING for details.
  3. Dependencies:
  4. libcurl http://curl.haxx.se/libcurl/
  5. jansson http://www.digip.org/jansson/
  6. (jansson is included in-tree and an installed one may conflict)
  7. Basic *nix build instructions:
  8. To build with GPU mining support:
  9. Install AMD APP sdk, latest version - there is no official place to
  10. install it so just keep track of where it is if you're not installing
  11. the include files and library files into the system directory.
  12. (Do NOT install the ati amd sdk if you are on nvidia)
  13. ./autogen.sh # only needed if building from git repo
  14. CFLAGS="-O3 -Wall -march=native" ./configure
  15. or if you haven't installed the ati files in system locations:
  16. CFLAGS="-O3 -Wall -march=native -I<path to AMD APP include>" LDFLAGS="-L<path to AMD APP lib/x86_64> ./configure
  17. make
  18. Note that you need to use /x86_64 for 64bit and /x86 for 32bit builds
  19. If it finds the opencl files it will inform you with
  20. "OpenCL: FOUND. GPU mining support enabled."
  21. Basic WIN32 build instructions (on Fedora 13; requires mingw32):
  22. ./autogen.sh # only needed if building from git repo
  23. rm -f mingw32-config.cache
  24. MINGW32_CFLAGS="-O3 -Wall -msse2" mingw32-configure
  25. make
  26. ./mknsis.sh
  27. Native WIN32 build instructions (on mingw32, on windows):
  28. Install AMD APP sdk, latest version
  29. (Do NOT install the ati amd sdk if you are on nvidia)
  30. Install mingw32
  31. Install libcurl, copy libcurl.m4 into /mingw/share/aclocal
  32. Run:
  33. autoreconf -fvi
  34. CFLAGS="-O3 -Wall -msse2 -I<path to AMD APP include>" LDFLAGS="-L<path to AMD APP lib/x86>" ./configure
  35. make
  36. Usage instructions: Run "cgminer --help" to see options.
  37. Also many issues and FAQs are covered in the forum thread
  38. dedicated to this program,
  39. http://forum.bitcoin.org/index.php?topic=21275.0
  40. The output line shows the following:
  41. [(5s):204.4 (avg):203.1 Mh/s] [Q:56 A:51 R:4 HW:0 E:91% U:2.47/m]
  42. Each column is as follows:
  43. A 5 second exponentially decaying average hash rate
  44. An all time average hash rate
  45. The number of requested work items
  46. The number of accepted shares
  47. The number of rejected shares
  48. The number of hardware erorrs
  49. The efficiency defined as the accepted shares / requested work
  50. The utility defines as the number of shares / minute