|
|
@ -16,13 +16,34 @@ Basic *nix build instructions: |
|
|
|
the include files and library files into the system directory. |
|
|
|
the include files and library files into the system directory. |
|
|
|
(Do NOT install the ati amd sdk if you are on nvidia) |
|
|
|
(Do NOT install the ati amd sdk if you are on nvidia) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The easiest way to install the ATI AMD SPP sdk on linux is to actually put it |
|
|
|
|
|
|
|
into a system location. Then building will be simpler. Download the correct |
|
|
|
|
|
|
|
version for either 32 bit or 64 bit from here: |
|
|
|
|
|
|
|
http://developer.amd.com/sdks/AMDAPPSDK/downloads/Pages/default.aspx |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This will give you a file with a name like AMD-APP-SDK-v2.4-lnx64.tgz |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Then: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sudo su |
|
|
|
|
|
|
|
cd /opt |
|
|
|
|
|
|
|
tar xf /path/to/AMD-APP-SDK-v2.4-lnx64.tgz |
|
|
|
|
|
|
|
cd / |
|
|
|
|
|
|
|
tar xf /opt/AMD-APP-SDK-v2.4-lnx64/icd-registration.tgz |
|
|
|
|
|
|
|
ln -s /opt/AMD-APP-SDK-v2.4-lnx64/include/CL /usr/include |
|
|
|
|
|
|
|
ln -s /opt/AMD-APP-SDK-v2.4-lnx64/lib/x86_64/* /usr/lib/ |
|
|
|
|
|
|
|
ldconfig |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If you are on 32 bit, x86_64 in the 2nd last line should be x86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
To actually build: |
|
|
|
|
|
|
|
|
|
|
|
./autogen.sh # only needed if building from git repo |
|
|
|
./autogen.sh # only needed if building from git repo |
|
|
|
CFLAGS="-O3 -Wall -march=native" ./configure |
|
|
|
CFLAGS="-O3 -Wall -march=native" ./configure |
|
|
|
or if you haven't installed the ati files in system locations: |
|
|
|
or if you haven't installed the ati files in system locations: |
|
|
|
CFLAGS="-O3 -Wall -march=native -I<path to AMD APP include>" LDFLAGS="-L<path to AMD APP lib/x86_64> ./configure |
|
|
|
CFLAGS="-O3 -Wall -march=native -I<path to AMD APP include>" LDFLAGS="-L<path to AMD APP lib/x86_64> ./configure |
|
|
|
make |
|
|
|
make |
|
|
|
|
|
|
|
|
|
|
|
Note that you need to use /x86_64 for 64bit and /x86 for 32bit builds |
|
|
|
|
|
|
|
If it finds the opencl files it will inform you with |
|
|
|
If it finds the opencl files it will inform you with |
|
|
|
"OpenCL: FOUND. GPU mining support enabled." |
|
|
|
"OpenCL: FOUND. GPU mining support enabled." |
|
|
|
|
|
|
|
|
|
|
@ -47,7 +68,7 @@ Usage instructions: Run "cgminer --help" to see options. |
|
|
|
|
|
|
|
|
|
|
|
Also many issues and FAQs are covered in the forum thread |
|
|
|
Also many issues and FAQs are covered in the forum thread |
|
|
|
dedicated to this program, |
|
|
|
dedicated to this program, |
|
|
|
http://forum.bitcoin.org/index.php?topic=21275.0 |
|
|
|
http://forum.bitcoin.org/index.php?topic=28402.0 |
|
|
|
|
|
|
|
|
|
|
|
The output line shows the following: |
|
|
|
The output line shows the following: |
|
|
|
[(5s):204.4 (avg):203.1 Mh/s] [Q:56 A:51 R:4 HW:0 E:91% U:2.47/m] |
|
|
|
[(5s):204.4 (avg):203.1 Mh/s] [Q:56 A:51 R:4 HW:0 E:91% U:2.47/m] |
|
|
|