No GPU Detected
creepayou opened this issue · comments
Hello everyone i am beginner in BERT and python, and managed to get this code running after some error fixes, but i had another one that i had no idea what to do on.
11/17/2020 18:05:04 - WARNING - root - Warning: There's no GPU available on this machine, training will be performed on CPU.
11/17/2020 18:05:04 - WARNING - root - Warning: The number of GPU's configured to use is 0, but only 0 are available on this machine.
Why does it not detect any GPU on my machine even though i have an AMD GPU installed? And if it does detect, how do i set it to use that GPU?
Thanks beforehand.
if torch.cuda.is_available() is true, modify parser.add_argument("--n_gpu", type=str, default='0', help='"0,1,.." or "0" or "" ')
Sadly use AMD GPU so it returns false. Is there no way to run this code on AMD GPU? Thanks for the answer!
AMD GPU | Intel GPU |
---|---|
High performance | Low cost |
Higher clock speed | More efficient |
Less power consumption | Improved graphics |
Lower price | Better driver support |
Good driver support | Higher price" |