]> foleosoft.com Git - QAnsel.git/commitdiff
Mon Mar 4 12:44:15 AM EST 2024
authormiha-q <>
Mon, 4 Mar 2024 05:44:15 +0000 (00:44 -0500)
committermiha-q <>
Mon, 4 Mar 2024 05:44:15 +0000 (00:44 -0500)
Makefile

index 65d62263f941b8266253a2ea41f352b94058a4d9..ab6d37919169974315faa9980c619896f2d3a98d 100644 (file)
--- 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