I am trying to use Torch to find my GPU for machine learning/training.
Right now, my code is using the CPU for training, which will take a long time with the large amounts of data I have.
import torch
print(torch.cuda.is_available())
print(torch.cuda.get_device_name(0))
I'm using the code above to check for the GPU, and I get this error:
AssertionError: Torch not compiled with CUDA enabled
When I asked some of the AIs, they said that the latest Torch version with Python 3.13 doesn't have support for it, but I haven't seen anyone come across this, and other people can use it.
python -m pip install ...and later test itpython script.py. In code you may also useprint( sys.executable )to get/full/path/to/pythonand also use this to install/full/path/to/python -m pip install ...