| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- # cudadl version 0.9: Compute discrete logs in smooth group orders
- # using CUDA
- # Copyright (C) 2012 by Ryan Henry and Ian Goldberg
- # {rhenry,iang}@cs.uwaterloo.ca
- #
- # This program is free software: you can redistribute it and/or modify
- # it under the terms of version 3 of the GNU General Public License as
- # published by the Free Software Foundation.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
- LIBEVENT=/usr/local
- WORDS = 24
- CXXFLAGS=-g -Wall -O0 -DWORDS=$(WORDS) -I$(LIBEVENT)/include
- NVCCOPTS=-g -arch sm_20 --ptxas-options=-v -O2 -DWORDS=$(WORDS)
- NVCC=nvcc $(NVCCOPTS)
- CXXFILES = dlrho.cc gen_N.cc
- CUFILES = parrhoasm.cu dpstream.cu
- OFILES = dlrho.o gen_N.o cudadl.o controller.o evutils.o dpnode.o worker.o
- TARGETS = gen_N dlrho controller dpnode worker
- all: $(TARGETS)
- gen_N: gen_N.o
- g++ -g -Wall $^ -o $@ -lntl -lgmp
- dlrho: dlrho.o cudadl.o
- g++ -g -Wall $^ -o $@ -lntl -lgmp -L/usr/local/cuda/lib64 -lcudart
- dlrho.o: dlrho.cc
- g++ $(CXXFLAGS) -I /usr/local/cuda/include $^ -c -o $@
- cudadl.o: parrhoasm.cu cios.asm dpstream.cu
- $(NVCC) -c parrhoasm.cu -o cudadl.o
- cios.asm: gencios_reg_20
- ./gencios_reg_20 $(WORDS) > $@
- controller: controller.o evutils.o
- g++ -g -Wall $^ -o $@ -L$(LIBEVENT)/lib -levent -lntl -lgmp
- dpnode: dpnode.o evutils.o
- g++ -g -Wall $^ -o $@ -L$(LIBEVENT)/lib -levent -lntl -lgmp
- worker: worker.o evutils.o
- g++ -g -Wall $^ -o $@ -L$(LIBEVENT)/lib -levent -lntl -lgmp
- clean:
- -rm -f $(OFILES)
- veryclean: clean
- -rm -f $(TARGETS) cios.asm
|