muzik wrote:Apple Bottom wrote:If you need tips or pointers on how to compile it, just post again.
I'm probably gonna need to be walked through the whole process. I know absolutely nothing about compiling c++
That's OK, I can help you out. You'll find the steps below, along with what output they should (roughly) produce. If you get something noticeably different, and/or an error message, let me know.
First of all, make sure that you got all the prerequisities. Run the following commands (the dollar sign indicates the prompt):
Code: Select all
$ make
make: *** No targets specified and no makefile found. Stop.
$ g++
g++: fatal error: no input files
compilation terminated.
$ unzip
UnZip 6.00 of 20 April 2009, by Info-ZIP. Maintained by C. Spieler. Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.
[...]
$
If you get a message such as "-bash: make: command not found" instead, install the relevant package(s).
Unzip the code:
Code: Select all
$ unzip apgmera.zip
Archive: apgmera.zip
cffe792fb46f8a374578994bfeacbb11b60d55dd
creating: apgmera-master-cffe792fb46f8a374578994bfeacbb11b60d55dd/
inflating: apgmera-master-cffe792fb46f8a374578994bfeacbb11b60d55dd/README
[...]
inflating: apgmera-master-cffe792fb46f8a374578994bfeacbb11b60d55dd/rule2asm.py
inflating: apgmera-master-cffe792fb46f8a374578994bfeacbb11b60d55dd/vlifetest.cpp
$
Compile:
Code: Select all
$ cd apgmera-master-cffe792fb46f8a374578994bfeacbb11b60d55dd/
$ sh recompile.sh
Skipping updates; use --update to update apgmera automatically.
Rule unspecified; assuming b3s23.
Symmetry unspecified; assuming C1.
Configuring rule b3s23; symmetry C1
Valid rulestring: b3s23
Valid symmetry: C1
Rule integer: 6152
Rule circuit: [-131-124-450-014-672]
Rule integer: 6152
Rule circuit: [-131-124-450-014-672]
Rule integer: 6152
Rule circuit: [-131-124-450-014-672]
Success!
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP main.cpp -o main.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP includes/sha256.cpp -o includes/sha256.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP includes/md5.cpp -o includes/md5.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP includes/happyhttp.cpp -o includes/happyhttp.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP gollybase/bigint.cpp -o gollybase/bigint.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP gollybase/lifealgo.cpp -o gollybase/lifealgo.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP gollybase/qlifealgo.cpp -o gollybase/qlifealgo.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP gollybase/util.cpp -o gollybase/util.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP gollybase/lifepoll.cpp -o gollybase/lifepoll.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP gollybase/liferules.cpp -o gollybase/liferules.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP gollybase/viewport.cpp -o gollybase/viewport.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP gollybase/readpattern.cpp -o gollybase/readpattern.o
g++ -c -Wall -O3 -march=native -fopenmp -DUSE_OPEN_MP gollybase/qlifedraw.cpp -o gollybase/qlifedraw.o
g++ -fopenmp main.o includes/sha256.o includes/md5.o includes/happyhttp.o gollybase/bigint.o gollybase/lifealgo.o gollybase/qlifealgo.o gollybase/util.o gollybase/lifepoll.o gollybase/liferules.o gollybase/viewport.o gollybase/readpattern.o gollybase/qlifedraw.o -o apgmera
true
true oo o
true oo ooo
true o
true oo ooo
true o o
true o o
true o
apgmera v3.28: Rule b3s23 is correctly configured.
apgmera v3.28: Symmetry C1 is correctly configured.
$
And run it:
Code: Select all
$ ./apgmera -k YOUR_PAYOSHA_KEY_HERE -L 1
Greetings, this is apgmera v3.28, configured for b3s23/C1.
Peer-reviewing hauls:
No more hauls to verify.
No more hauls to verify.
No more hauls to verify.
Peer-review complete; proceeding search.
Using seed m_6kEQaF7iZaXm
Universe created.
Running 10000000 soups per haul:
Instruction set AVX2 supported.
10000 soups completed (1529 soups per second).
[...]
Adjust the options passed to apgmera to your liking. "-L 1" only needs to be specified if you want to save your log files locally in addition to uploading them to the site.