diff options
author | Jan Huwald <jh@sotun.de> | 2013-06-26 13:23:07 (GMT) |
---|---|---|
committer | Jan Huwald <jh@sotun.de> | 2013-06-26 13:23:07 (GMT) |
commit | ac11c3b784234d93cc10ca931a178bf50ee26faf (patch) | |
tree | 4b8bc9fc15a92a8828ea3abeb79d711a75eb4070 /Makefile |
Throughput: 330 MB/s on one multiprocessor of a GTX680
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8e18520 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +SDK := /usr/local/cuda-5.0 + +NVCC := $(SDK)/bin/nvcc +NVLINK := g++ -fPIC +NVCCFLAGS := -O2 --compiler-options -fno-strict-aliasing \ + -gencode=arch=compute_30,code=\"sm_30,compute_30\" \ + --ptxas-options="-v" \ + -I. + +NVLIB := -L$(SDK)/lib64 -lcudart $(LIB) + +ENV := PATH=/home/mit/csb/biosys/CUDA/gcc-4.6:$$PATH:$(SDK)/bin \ + LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(SDK)/lib64:$(SDK)/lib +SHELL := /bin/bash + +keccak_bench: keccak.cu keccak_bench.cu keccak.cuh keccak_bench.cuh + $(ENV) $(NVCC) $(NVCCFLAGS) $(NVLIB) -o $@ keccak_bench.cu + +clean: + rm keccak_bench *{~,.{o,ptx,ptxas_info}} |