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

On Windows (MinGW) build division by 0 error in ggml.c functions using timer_freq. #166

Closed
venim1103 opened this issue May 18, 2023 · 0 comments

Comments

@venim1103
Copy link

Managed to build the code for Windows but running for example starcoder executable after compilation just crashes and gives “Arithmetic Exception” which looks like division by zero. I managed to avoid this by instantiating the static timer_freq with non-zero value for now.

Would be nice to get a correct fix as maybe the problem has something to do with my MinGW setup or maybe the timer_freq is not initialized correctly for different builds?

ravenscroftj added a commit to ravenscroftj/ggml that referenced this issue Jun 12, 2023
If you do not initialise the ggml timer on windows the exe will crash due to
uninitialised variables - see
ggerganov#166
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

No branches or pull requests

1 participant