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

[BUG] Direct use of numba.cuda.gpus lead to error that module numba has no attribute cuda #2198

Open
3 tasks
lezhangamd opened this issue Dec 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lezhangamd
Copy link

Description

After installing recommenders[gpu], doing len(numba.cuda.gpus) will lead to the following error

>>> len(numba.cuda.gpus)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'numba' has no attribute 'cuda'

Changing to from numba import cuda and then cuda.gpus will resolve the issue.

In which platform does it happen?

Linux Ubuntu 22.04

How do we replicate the issue?

See above.

Expected behavior (i.e. solution)

See above.

Willingness to contribute

  • Yes, I can contribute for this issue independently.
  • Yes, I can contribute for this issue with guidance from Recommenders community.
  • No, I cannot contribute at this time.

Other Comments

@lezhangamd lezhangamd added the bug Something isn't working label Dec 17, 2024
@lezhangamd lezhangamd changed the title [BUG] Direct use of numba.cuda.gpus lead to error that module 'numba' has no attribute 'cuda [BUG] Direct use of numba.cuda.gpus lead to error that module numba has no attribute 'cuda Dec 17, 2024
@lezhangamd lezhangamd changed the title [BUG] Direct use of numba.cuda.gpus lead to error that module numba has no attribute 'cuda [BUG] Direct use of numba.cuda.gpus lead to error that module numba has no attribute cuda Dec 17, 2024
@miguelgfierro
Copy link
Collaborator

where is that error @lezhangamd?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants