Skip to content

Commit

Permalink
Provide new instructions for building
Browse files Browse the repository at this point in the history
  • Loading branch information
kost committed Oct 31, 2016
1 parent d392e09 commit 7cafb9c
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,22 @@ Add -DXENON to cmake to build with AVX/AVX2 support.

## Options to build Fastest miner

If you are building for Linux and your processor is i5 or i7 (supports AVX2), you can say something like:
If you are building for Linux and for your processor on local machine (with AVX1/AVX2 automatically detected) , you can say something like:

`cmake -DXENON=2 ..`
`cmake -DXENON=1 ..`

If you are building for Linux and your processor is i3 or xeon (supports AVX), you can say something like:
This will build -march=native by default.

`cmake -DXENON=1 ..`
If you need to transfer binaries to other machines and automatically detect AVX1/AVX2 or not, you can say something like:

If you don't have AVX/AVX2 support, just build without any options:
`cmake -DXENON=1 -DMARCH="-m64" ..`

If you don't want to compile with AVX/AVX2 support, just build without any options:

`cmake ..`

Note AVX/AVX2 binaries should automatically downgrade to tromp if nothing else found.

Full example:
```
sudo apt-get install cmake build-essential libboost-all-dev
Expand Down Expand Up @@ -90,15 +94,15 @@ Under Ubuntu open a terminal and run the following commands:

Note: for the fastest miner, it is recommended to use `cmake -DXENON=2 ..`

## Full static Linux cmake **recommended** (Tested on Alpine 3.4):
## Full static Linux cmake **auto-AVX build recommended** (Tested on Alpine 3.4):
You should have **CMake** installed (2.8 minimal version), boost (install from the repositories or download boost manually build and install it manually), download the sources manually or via git.
Under Alpine open a terminal and run the following commands:
- `sudo apk add --update git cmake make gcc g++ libc-dev boost-dev`
- `git clone --recursive https://github.com/kost/nheqminer.git`
- `cd nheqminer/nheqminer`
- `mkdir build`
- `cd build`
- `cmake -DXENON=2 -DSTATIC_BUILD=1 ..`
- `cmake -DSTATIC_BUILD=1 -DXENON=1 -DMARCH="-m64" ..`
- `make`


Expand Down

0 comments on commit 7cafb9c

Please sign in to comment.