whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

Add AVX support, inline to ggml_fp16_to_fp32, ggml_fp16_t ggml_fp32_to_fp16 and some Makefile changes

Open katsu560 opened this issue 1 year ago • 0 comments

Old CPU has only AVX instructions, no AVX2 and no FMA instructions. So, I added AVX support code to ggml.c, ggml.h and whisper.cpp. I also added 'inline' to ggml_fp16_to_fp32, ggml_fp16_t ggml_fp32_to_fp16.

And I added Makefile to detect AVX,AVX2,FMA,F16C, OpenBLAS option, gprof option. You can enable OpenBLAS and gprof, WHISPER_OPENBLAS=1 WHISPER_GPROF=1 make

Please ignore changes in README.md.

katsu560 avatar Nov 23 '22 16:11 katsu560