From: miha-q <> Date: Mon, 4 Mar 2024 05:44:15 +0000 (-0500) Subject: Mon Mar 4 12:44:15 AM EST 2024 X-Git-Url: http://www.foleosoft.com/?a=commitdiff_plain;h=0b2e40da5f51f398ad5b71767c74ca3d83bf4a0c;p=QAnsel.git Mon Mar 4 12:44:15 AM EST 2024 --- diff --git a/Makefile b/Makefile index 65d6226..ab6d379 100644 --- a/Makefile +++ b/Makefile @@ -2,16 +2,10 @@ all: #gpu mmul - mv src/gpu/gpu_mmul.cl src/gpu/.gpu_mmul.cl - bash -c 'echo -ne "$$(cat src/gpu/.gpu_mmul.cl)\x00" > src/gpu/gpu_mmul.cl' - xxd -i src/gpu/gpu_mmul.cl | sed -e 's/gpu_gpu_/gpu_/g' > src/gpu/gpu_mmul.cl.c - mv src/gpu/.gpu_mmul.cl src/gpu/gpu_mmul.cl - - #gpu knk - mv src/gpu/gpu_knk.cl src/gpu/.gpu_knk.cl - bash -c 'echo -ne "$$(cat src/gpu/.gpu_knk.cl)\x00" > src/gpu/gpu_knk.cl' - xxd -i src/gpu/gpu_knk.cl | sed -e 's/gpu_gpu_/gpu_/g' > src/gpu/gpu_knk.cl.c - mv src/gpu/.gpu_knk.cl src/gpu/gpu_knk.cl + mv src/gpu/kernel.cl src/gpu/.kernel.cl + bash -c 'echo -ne "$$(cat src/gpu/.kernel.cl)\x00" > src/gpu/kernel.cl' + xxd -i src/gpu/kernel.cl | sed -e 's/gpu_gpu_/gpu_/g' > src/gpu/kernel.cl.c + mv src/gpu/.kernel.cl src/gpu/kernel.cl gcc src/QAnsel.c -g -o bin/QAnsel -lm -I/usr/include/SDL2 -D_REENTRANT -lSDL2 -lOpenCL -pthread rm -f src/gpu/*.cl.c