Building with CuBLAS without AVX2 #631
-
I have an older processor, AMD FX-6350, and a newer graphics card, a Nvidia GTX 980 TI. Obviously I want to use the GPU, so I've installed cudatoolkit and I've edited the makefile lightly:
and also at
to get to this point. Now when I try to build, it returns
These are too arcane especially in combination to return good search results so I have to resort to asking if anyone knows where the next place I should look is. I'm running Slackware 15 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Does the unmodified makefile not work? It should attempt to use the native arch and all natively support intrinsics, so self compile shouldn't be a problem. |
Beta Was this translation helpful? Give feedback.
-
Can someone add a build config to have old cpu without avx or avx2 build with the vulkan bakend support and the cuda backend. ? |
Beta Was this translation helpful? Give feedback.
Okay you can retry the conda build with a small modification.
Go to the makefile and edit line at https://github.com/LostRuins/koboldcpp/blob/concedo/Makefile#L122
CFLAGS += -mavx2 -msse3 -mfma -mf16c -mavx
replace it with
CFLAGS += -march=native -mtune=native
Then run koboldcpp.sh again. This should prevent illegal instruction errors.