Add a synchronize method to devices. (#2055)

* Add a synchronize method to devices.

* Metal version.
This commit is contained in:
Laurent Mazare
2024-04-14 16:32:55 +02:00
committed by GitHub
parent 50e49ecc5f
commit 53e5380bf6
6 changed files with 24 additions and 0 deletions

View File

@ -229,4 +229,8 @@ impl crate::backend::BackendDevice for CudaDevice {
fn rand_normal(&self, _: &Shape, _: DType, _: f64, _: f64) -> Result<Self::Storage> {
Err(Error::NotCompiledWithCudaSupport)
}
fn synchronize(&self) -> Result<()> {
Ok(())
}
}