You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to run your example code snippet with Pylops-GPU:
import torch
from pylops_gpu.utils.backend import device
from pylops_gpu import Diagonal
dev = device()
print(dev)
n = int(1e6)
x = torch.ones(n, dtype=torch.float64).to(dev)
d = (torch.arange(0, n, dtype=torch.float64) + 1.).to(dev)
Dop = Diagonal(d, device=dev)
y = Dop*x
But I can see that the code is running on CPU and not GPU. when I run conda list to see installed packages it seems to me that everything is in order:
Hello,
this is strange, I will look into it. However, note that this library is unmantained as we have added a full support for GPU in pylops using cupy. I highly reccomend using that one instead :)
I tried to run your example code snippet with Pylops-GPU:
But I can see that the code is running on CPU and not GPU. when I run conda list to see installed packages it seems to me that everything is in order:
How can I force it to run on GPU. I already have an good GPU (Nviddia RTX 2080 TI)
The text was updated successfully, but these errors were encountered: