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

Fix CPU-only build under Android Termux enviornment. #1999

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

lainedfles
Copy link
Contributor

Update gpu.go initGPUHandles() to declare gpuHandles variable before reading it. This resolves an "invalid memory address or nil pointer dereference" error.

Update dyn_ext_server.c to avoid setting the RTLD_DEEPBIND flag under TERMUX (Android).

@lainedfles lainedfles mentioned this pull request Jan 16, 2024
@mxyng mxyng requested a review from dhiltgen January 17, 2024 17:46
gpu/gpu.go Show resolved Hide resolved
llm/dyn_ext_server.c Outdated Show resolved Hide resolved
Update gpu.go initGPUHandles() to declare gpuHandles variable before
reading it. This resolves an "invalid memory address or nil pointer
dereference" error.

Update dyn_ext_server.c to avoid setting the RTLD_DEEPBIND flag under
__TERMUX__ (Android).
@dhiltgen dhiltgen merged commit 6297608 into ollama:main Jan 19, 2024
10 checks passed
@oliverbob
Copy link

I assume this build allows us to install on android via termux? Cool!

@lainedfles lainedfles deleted the termux_android_cpu_only branch January 28, 2024 23:04
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.

None yet

3 participants