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

Align structures for 64bit, reorder params and ignore error-warn for Clang 19 #11291

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GermanAizek
Copy link
Contributor

@GermanAizek GermanAizek commented Jan 18, 2025

Hi again.
Most processors and OS are 64-bit, alignment will not be superfluous, I also fixed compilation error on Clang 19.
All structures are reduced by 8 bytes.

@github-actions github-actions bot added the ggml changes relating to the ggml tensor library for machine learning label Jan 18, 2025
@GermanAizek GermanAizek force-pushed the optimize branch 2 times, most recently from e5382ff to 9a2380e Compare January 18, 2025 19:32
@GermanAizek
Copy link
Contributor Author

@ggerganov done for code review.

Comment on lines +20 to +25
// disable C++11 deprecation warning non-constant-expression cannot be narrowed
#if defined(__clang__)
# pragma clang diagnostic push
# pragma clang diagnostic ignored "-Wc++11-narrowing"
#endif

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What the warnings that are ignored by this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The strangest thing was that there was an error initially, but now it's gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ggml changes relating to the ggml tensor library for machine learning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants