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

Fixed the perf issue on linux #229

Merged
merged 3 commits into from
Oct 17, 2024
Merged

Fixed the perf issue on linux #229

merged 3 commits into from
Oct 17, 2024

Conversation

sandrohanea
Copy link
Owner

This pull request includes several changes to the Makefile to enable native optimizations and updates to the INativeWhisper interface and its implementations to support a new method for printing system information.

Makefile Enhancements:

  • Added the -DGGML_NATIVE=ON flag to various build configurations in the Makefile to enable native optimizations. (Makefile) [1] [2] [3]

Interface and Implementation Updates:

  • Introduced a new delegate whisper_print_system_info in the INativeWhisper interface to allow printing system information. (Whisper.net/Internals/Native/INativeWhisper.cs) [1] [2]
  • Added the whisper_print_system_info method to the DllImportsNativeLibWhisper, DllImportsNativeWhisper, LibraryImportInternalWhisper, and LibraryImportLibWhisper classes. (Whisper.net/Internals/Native/Implementations/DllImportsNativeLibWhisper.cs, Whisper.net/Internals/Native/Implementations/DllImportsNativeWhisper.cs, Whisper.net/Internals/Native/Implementations/LibraryImportInternalWhisper.cs, Whisper.net/Internals/Native/Implementations/LibraryImportLibWhisper.cs) [1] [2] [3] [4] [5] [6] [7] [8]
  • Updated the NativeLibraryWhisper class to include the whisper_print_system_info method. (Whisper.net/Internals/Native/Implementations/NativeLibraryWhisper.cs) [1] [2]

New Functionality in WhisperFactory:

  • Added a GetSystemInfo method to the WhisperFactory class to retrieve system information using the newly introduced delegate. (Whisper.net/WhisperFactory.cs) [1] [2]

@sandrohanea sandrohanea merged commit 278c39c into main Oct 17, 2024
20 checks passed
@sandrohanea sandrohanea deleted the sandro/fix-perf-issue branch October 17, 2024 20:13
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.

1 participant