-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Flat fix #3114
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
Open
peardox
wants to merge
45
commits into
ggml-org:master
Choose a base branch
from
WhisperBooks:flat-fix
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Flat fix #3114
Changes from 40 commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
ebc8707
Add base of flat bindings - to expand
peardox 2527199
Add and expose ggml_backend_try_load_best
peardox e5184ae
Add back previous closed PR code
peardox 0510bb7
disable whisper_load_backends if GGML_BACKEND_DL - prevents the loadall
peardox 1f438d0
Merge branch 'ggml-org:master' into bindings_flat
peardox 1e7a15e
Add whisper_flat_get_preferred_backend
peardox f603b5a
Merge branch 'ggml-org:master' into bindings_flat
peardox 7307aa7
Add whisper_get_backend_count and whisper_get_indexed_backend
peardox bdd8628
Merge branch 'bindings_flat' of https://github.com/WhisperBooks/whisp…
peardox 8199e52
Merge branch 'ggml-org:master' into bindings_flat
peardox c37671c
OK, really finished - just enable examples via GGML_BACKEND_DL + BIND…
peardox c859e24
Change type to size_t
peardox a0ccffa
Mac needs can't use GGML_BACKEND_DL, modify as needed
peardox b1ecac4
Forgot a few demos
peardox fe9e7d1
Merge branch 'ggml-org:master' into bindings_flat
peardox 7ddd2f3
Deployment tests
peardox 65d7b74
fix cmakelists.txt
peardox 53943bb
Fix nullptr
peardox 2ce178b
Merge Timings into Activity
peardox 0e1ebc0
Show ggml_backend_try_load_best in debug
peardox d381617
Show some var sizes
peardox 6b51a3b
Remove sizez again
peardox 660bee1
Enable BACKEND_FLAT in 6 demos
peardox 94faab8
ggml_backend_try_load_best only in BINDINGS_FLAT
peardox 5ec6ad5
Merge branch 'ggml-org:master' into flat
peardox 5a3b467
Disable breaking MSVC Warning CMakeFiles.txt if GGML_CPU_ALL_VARIANTS
peardox f65e8b1
Fix library load - update readme
peardox d6c7a10
Oops - accidental commit - fixup
peardox dffd00b
Oops - accidental commit - fixup2
peardox 24a8551
Mend broken ifdef (one of mine)
peardox 696f86c
Commit resolution
peardox f85b51e
Commit resolution
peardox db59f98
Conflict resolution
peardox bb09c6f
Merge branch 'ggml-org:master' into flat-fix
peardox 0cc4f5e
Enable BINGINGS_FLAT in some examples
peardox c9e59b1
Merge branch 'ggml-org:master' into flat-fix
peardox 9a690c5
Remove 'MSVC AND NOT DEFINED GGML_CPU_ALL_VARIANTS' in ggml cmake
peardox 420af26
Replace new MSVC_WARNING_FLAGS with if msvc
peardox c71ced4
Add BINDINGS_FLAT and GGML_BINDINGS_FLAT to Ruby install options
KitaitiMakoto f957031
Merge pull request #1 from KitaitiMakoto/ruby-options
peardox bdf03cf
Updates as requested
peardox 85cf9cc
Remove .h.bak file
peardox c838670
re-introduce broken code for non WHISPER_BINDINGS_FLAT
peardox 92bf1e1
Merge branch 'ggml-org:master' into flat-fix
peardox 731324e
Merge branch 'ggml-org:master' into flat-fix
peardox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
|
||
#ifdef _WIN32 | ||
#define WIN32_LEAN_AND_MEAN | ||
#ifndef NOMINMAX | ||
# define NOMINMAX | ||
#endif | ||
#include <windows.h> | ||
#endif | ||
|
||
#include "ggml-backend.h" | ||
#include "ggml-backend-impl.h" | ||
#include "ggml-alloc.h" | ||
#include "ggml-impl.h" | ||
|
||
#include <assert.h> | ||
#include <limits.h> | ||
#include <stdarg.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
#include <string> | ||
#include <vector> | ||
#include <algorithm> | ||
|
||
#ifdef __APPLE__ | ||
#include <sys/types.h> | ||
#include <sys/sysctl.h> | ||
#endif | ||
|
||
#include "ggml-flat.h" | ||
|
||
#ifdef GGML_BINDINGS_FLAT | ||
// ggml_backend_reg_t ggml_backend_try_load_best(const char * name, const char * dir_path); | ||
|
||
#endif | ||
|
||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#pragma once | ||
|
||
#ifdef BINDINGS_FLAT | ||
#define GGML_BINDINGS_FLAT | ||
#endif | ||
|
||
#ifdef GGML_SHARED | ||
# if defined(_WIN32) && !defined(__MINGW32__) | ||
# ifdef GGML_BUILD | ||
# define GGML_FLAT_API __declspec(dllexport) extern | ||
# else | ||
# define GGML_FLAT_API __declspec(dllimport) extern | ||
# endif | ||
# else | ||
# define GGML_FLAT_API __attribute__ ((visibility ("default"))) extern | ||
# endif | ||
#else | ||
# define GGML_FLAT_API extern | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#ifdef GGML_BINDINGS_FLAT | ||
GGML_FLAT_API ggml_backend_reg_t ggml_backend_try_load_best(const char * name, const char * dir_path); | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.