Add support for cuda streams. (#2532)

This commit is contained in:
Laurent Mazare
2024-10-02 21:30:58 +02:00
committed by GitHub
parent 936300678d
commit 7b60bda4ed
3 changed files with 24 additions and 0 deletions

View File

@ -14,6 +14,12 @@ macro_rules! fail {
};
}
impl CudaDevice {
pub fn new_with_stream(_: usize) -> Result<Self> {
Err(Error::NotCompiledWithCudaSupport)
}
}
impl crate::backend::BackendStorage for CudaStorage {
type Device = CudaDevice;