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

how to disabled cupy.cuda.runtime.getDeviceCount() #13499

Closed
ljhssga opened this issue May 16, 2024 · 0 comments
Closed

how to disabled cupy.cuda.runtime.getDeviceCount() #13499

ljhssga opened this issue May 16, 2024 · 0 comments

Comments

@ljhssga
Copy link

ljhssga commented May 16, 2024

How to reproduce the behaviour

I use spacy only for text segmentation and do not use the GPU. When I use import spacy, the bottom layer of spacy will call cupy.cuda.runtime.getDeviceCount(), which will cause my ram memory to increase by nearly 1g. I think Know how to disable the underlying call to cupy.cuda.runtime.getDeviceCount()

Your Environment

  • Operating System:
  • Python Version Used:3.10.2
  • spaCy Version Used:3.7.4
  • Environment Information:
@ljhssga ljhssga closed this as completed May 21, 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