summaryrefslogtreecommitdiff
path: root/src/dummy_cuda_backend.rs
diff options
context:
space:
mode:
authorlaurent <laurent.mazare@gmail.com>2023-06-22 08:33:32 +0100
committerlaurent <laurent.mazare@gmail.com>2023-06-22 08:33:32 +0100
commit0a758ffa0523629336e7224fa181dd1e76d8919c (patch)
tree8338a53820ea5a124f97ea9b1fca91788f0f4e4f /src/dummy_cuda_backend.rs
parentfc26bab3ede511c3c4d2f1afb15f58eb6c588c94 (diff)
downloadcandle-0a758ffa0523629336e7224fa181dd1e76d8919c.tar.gz
candle-0a758ffa0523629336e7224fa181dd1e76d8919c.tar.bz2
candle-0a758ffa0523629336e7224fa181dd1e76d8919c.zip
Add the fill kernel and use it for 'ones'.
Diffstat (limited to 'src/dummy_cuda_backend.rs')
-rw-r--r--src/dummy_cuda_backend.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dummy_cuda_backend.rs b/src/dummy_cuda_backend.rs
index 85b5f598..2eb393c1 100644
--- a/src/dummy_cuda_backend.rs
+++ b/src/dummy_cuda_backend.rs
@@ -25,6 +25,10 @@ impl CudaDevice {
Err(Error::NotCompiledWithCudaSupport)
}
+ pub(crate) fn ones_impl(&self, _shape: &Shape, _dtype: DType) -> Result<CudaStorage> {
+ Err(Error::NotCompiledWithCudaSupport)
+ }
+
pub(crate) fn cuda_from_cpu_storage(&self, _: &CpuStorage) -> Result<CudaStorage> {
Err(Error::NotCompiledWithCudaSupport)
}