Skip to content

Commit

Permalink
#870 allocate 1 byte for workspace instead of 0 (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreylowman authored Oct 25, 2023
1 parent 7df12c0 commit 7ba3a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dfdx-core/src/tensor/cuda/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl Cuda {
#[cfg(feature = "cudnn")]
let cudnn = cudarc::cudnn::Cudnn::new(dev.clone())?;
let par_stream = Arc::new(dev.fork_default_stream()?);
let workspace = Arc::new(Mutex::new(dev.alloc_zeros::<u8>(0)?));
let workspace = Arc::new(Mutex::new(dev.alloc_zeros::<u8>(1)?));
Ok(Self {
cpu,
dev,
Expand Down

0 comments on commit 7ba3a8b

Please sign in to comment.