pub fn check_nccl(result: NcclResult, context: &str) -> Result<()>
Convert NCCL result to anyhow::Result.