diff options
Diffstat (limited to 'candle-core/src/dummy_cuda_backend.rs')
-rw-r--r-- | candle-core/src/dummy_cuda_backend.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/candle-core/src/dummy_cuda_backend.rs b/candle-core/src/dummy_cuda_backend.rs index 68eef1ef..b4f2e8aa 100644 --- a/candle-core/src/dummy_cuda_backend.rs +++ b/candle-core/src/dummy_cuda_backend.rs @@ -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; |