-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (29 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
default: help
.PHONY: factorbase_* worktodo.txt
.PHONY: run verify
help:
@echo "Popular Make Targets:"
@echo " image - build docker image"
@echo " run - run shell in built image"
prodimage:
docker build --pull --no-cache --compress --squash --tag primemath .
.git/image: Dockerfile driver.pl
docker build --tag primemath . && touch .git/image
image: .git/image
run: .git/image
docker run --gpus all --rm -it --init -v $(shell pwd):/var/primemath primemath nice /var/primemath/driver.pl --curves=6 --constant --shuffle --color --prefilter
factorbase_*:
docker run --gpus all --rm --name $@ -d --init -v $(shell pwd):/var/primemath primemath /var/primemath/driver.pl --check --color --curves=0 --thorough --factorbase /var/primemath/$@
docker logs -f $@
bases: factorbase_*
splits:
split -n r/64 -d factorbase.txt factorbase_
fastverify: splits bases
cat factorbase_* | sort -n > factorbase.txt.new
rm -f factorbase_*
containerverify: .git/image
docker run --gpus all --rm --name primemath -it --init -v $(shell pwd):/var/primemath primemath /var/primemath/driver.pl --check --color --curves=0 --thorough
gencerts:
./driver.pl --check --color --curves=0 --thorough
fastgencerts:
./driver.pl --check --color --curves=0 --thorough --skipverify