Don't try to call cuMemAlloc with size 0.
This will result in a failure, so we can just immediately return nullptr. The caller code currently already needs to accept nullptr as a valid result if size == 0, and only treat it as an error if size > 0. PiperOrigin-RevId: 234467182
Loading
Please sign in to comment