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

Cuda on Mac M1 #5

Open
VictoryChianumba opened this issue Dec 3, 2023 · 1 comment
Open

Cuda on Mac M1 #5

VictoryChianumba opened this issue Dec 3, 2023 · 1 comment

Comments

@VictoryChianumba
Copy link

When I attempted to run the torch.cuda.is_available() function on my Mac, I got the response 'cpu'. after briefly searching on google, I have been made aware that coda is not supported on Mac. Is there some work around for this?

@QueryType
Copy link

QueryType commented Dec 12, 2023

CUDA is a proprietary and closed source parallel computing platform and application programming interface that allows software to use certain types of graphics processing units for general purpose processing, an approach called general-purpose computing on GPUs. It is not available on Apple machines. Use MPS instead.

import torch
import math

print(torch.backends.mps.is_available()) #the MacOS is higher than 12.3+
print(torch.backends.mps.is_built()) #MPS is activated

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

2 participants