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

Add option to use either cudaMalloc or cudaMallocManaged #703

Open
WilliamTambellini opened this issue Jan 23, 2024 · 0 comments
Open

Add option to use either cudaMalloc or cudaMallocManaged #703

WilliamTambellini opened this issue Jan 23, 2024 · 0 comments

Comments

@WilliamTambellini
Copy link
Contributor

Hi @ggerganov
Would you mind if I add an option to possibly use
cudaMallocManaged() instead of cudaMalloc() in
https://github.com/ggerganov/ggml/blob/master/src/ggml-cuda.cu
default being of course cudaMalloc()
?
Best
W.
refs:
https://developer.nvidia.com/blog/unified-memory-cuda-beginners/
https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__MEMORY.html#group__CUDART__MEMORY_1gd228014f19cc0975ebe3e0dd2af6dd1b

@WilliamTambellini WilliamTambellini changed the title Add option to use cudaMallocManaged or cudaMalloc Add option to use either cudaMalloc or cudaMallocManaged Jan 23, 2024
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