forked from preda/gpuowl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile-old
27 lines (18 loc) · 1.08 KB
/
Makefile-old
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
HEADERS = Background.h Pm1Plan.h GmpUtil.h Args.h checkpoint.h clwrap.h common.h kernel.h state.h timeutil.h tinycl.h Worktodo.h Gpu.h Signal.h FFTConfig.h version.h version.inc clpp.h gpuowl-wrap.cl
SRCS = Pm1Plan.cpp GmpUtil.cpp Worktodo.cpp common.cpp main.cpp Gpu.cpp clwrap.cpp Task.cpp checkpoint.cpp timeutil.cpp Args.cpp state.cpp Signal.cpp FFTConfig.cpp clpp.cpp
# Edit the path in -L below if needed, to the folder containing OpenCL.dll on Windows or libOpenCL.so on UNIX.
# The included lib paths are for ROCm, AMDGPU-pro/Linux or MSYS-2/Windows.
LIBPATH = -L/opt/rocm/opencl/lib/x86_64 -L/opt/amdgpu-pro/lib/x86_64-linux-gnu -L/c/Windows/System32 -L.
#-fsanitize=leak
BUILD = g++ -Wall -O2 -std=c++17 -Wall ${SRCS} -o $@ -lOpenCL -lgmp -lstdc++fs -pthread ${LIBPATH}
gpuowl: ${HEADERS} ${SRCS}
${BUILD}
gpuowl-win: ${HEADERS} ${SRCS}
${BUILD} -static
strip $@
gpuowl-wrap.cl: gpuowl.cl head.txt tail.txt
cat head.txt gpuowl.cl tail.txt > gpuowl-wrap.cl
version.inc: FORCE
echo \"`git describe --long --dirty --always`\" > version.inc
echo Version: `cat version.inc`
FORCE: