Alloc zero size memory on old model GPU may fail.
optman opened this issue · comments
let workspace = Arc::new(Mutex::new(dev.alloc_zeros::<u8>(0)?));
On my old GTX 960, it would cause panic with the below error.
Driver(DriverError(CUDA_ERROR_INVALID_VALUE, "invalid argument"))
I have installed the Nvidia 535 driver and Cuda Toolkit 12.2.0, which is mostly recent.
Replace 0
with a non-zero value will fix it.
Maybe the old card doesn't support alloc zero size memory.