-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
ggml.c CACHE_LINE_SIZE error: initializer element is not constant #11
Comments
Also a few
so it is really time to update. You can close this if you choose not to support old compilers (although to my defense this is not THAT old..) |
Hold on, I'm being to quick here. The initial issue can actually be solved by replacing the |
Regarding Regarding the designated initializers in the struct ggml_cgraph gf; gf.n_threads = n_threads; Feel free to submit a PR with these changes and I will be happy to apply them Edit Oct 7: The suggested fix above is wrong. It should be: struct ggml_cgraph gf = {}; gf.n_threads = n_threads; Already fixed on |
Thanks! That works. |
Fixes error in example
I get this on Ubuntu 18.04 gcc 7.5.0 (time to update, yes), and I don't immediately see how to fix it since I don't know
__cpp_lib_hardware_interference_size
. Otherwise a simple replacement with a#define
would suffice.The text was updated successfully, but these errors were encountered: