summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
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}}
contact: Jan Huwald // Impressum