Add the cublas handle to the cuda device.

This commit is contained in:
laurent
2023-06-22 18:03:53 +01:00
parent 7d9a8ff3f9
commit 683730c21d
3 changed files with 114 additions and 73 deletions

View File

@ -22,7 +22,7 @@ impl Storage {
pub fn device(&self) -> Device {
match self {
Self::Cpu(_) => Device::Cpu,
Self::Cuda(storage) => Device::Cuda(storage.device()),
Self::Cuda(storage) => Device::Cuda(storage.device().clone()),
}
}