Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make : add support for building on DragonFlyBSD/NetBSD/OpenBSD #1212

Merged
merged 1 commit into from
Aug 27, 2023

Conversation

przemoc
Copy link
Contributor

@przemoc przemoc commented Aug 27, 2023

No description provided.

@przemoc
Copy link
Contributor Author

przemoc commented Aug 27, 2023

*BSDs do not have /proc/cpuinfo equivalent, so users of older machines have to remove or comment out locally in Makefile:

ifeq ($(UNAME_M),amd64)
    CFLAGS += -mavx -mavx2 -mfma -mf16c
endif

I plan to attempt addressing it in the future by writing small single source file cpuinfo app, that could be built early in Makefile for *BSDs and be used to guide Makefile what compiler flags can be used to utilize all available instruction sets instead of forcing all of them blindly.

@przemoc
Copy link
Contributor Author

przemoc commented Aug 27, 2023

But the plan I mentioned in my previous comment is for the future (other weekend) and different PR.
There is nothing preventing this PR to be merged as-is, as it's not making anything worse than currently is.

Example from running:
./main -m models/ggml-tiny.en.bin -f samples/jfk.wav
on 4 *BSD in VMs (whisper.cpp built with local Makefile modification as described in my previous comment)

image

@ggerganov ggerganov merged commit b0d3599 into ggerganov:master Aug 27, 2023
35 checks passed
@przemoc przemoc deleted the make-gmake-work-on-bsd branch August 27, 2023 20:41
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
vonstring pushed a commit to vonstring/whisper.cpp that referenced this pull request Nov 7, 2023
landtanin pushed a commit to landtanin/whisper.cpp that referenced this pull request Dec 16, 2023
iThalay pushed a commit to iThalay/whisper.cpp that referenced this pull request Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants