docs: private static int checkResult(int result)
      {
          if (exceptionsEnabled && result !=
              cudnnStatus.CUDNN_STATUS_SUCCESS)
          {
              throw new CudaException(cudnnStatus.stringFor(result));
          }
          return result;
      }