-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 820 Bytes
/
Makefile
File metadata and controls
24 lines (17 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
NVCC=nvcc
CXX=c++
GLSLC=glslc
gitminer: gitminer.cu
$(NVCC) gitminer.cu -O3 -m64 -std=c++17 -arch=sm_89 -D_FORCE_INLINES -D_MWAITXINTRIN_H_INCLUDED -o gitminer
gitminer_cpu: gitminer.cpp
$(CXX) gitminer.cpp -O3 -std=c++17 -pthread -o gitminer_cpu
gitminer_metal: gitminer_metal.mm
$(CXX) gitminer_metal.mm -O3 -std=c++17 -framework Metal -framework Foundation -o gitminer_metal
gitminer_opencl: gitminer_opencl.cpp
$(CXX) gitminer_opencl.cpp -O3 -std=c++17 -framework OpenCL -o gitminer_opencl
sha1_kernel.spv: sha1_kernel.comp
$(GLSLC) sha1_kernel.comp -o sha1_kernel.spv
gitminer_vulkan: gitminer_vulkan.cpp sha1_kernel.spv
$(CXX) gitminer_vulkan.cpp -O3 -std=c++17 -lvulkan -o gitminer_vulkan
clean:
rm -f ./gitminer ./gitminer_cpu ./gitminer_metal ./gitminer_opencl ./gitminer_vulkan ./sha1_kernel.spv