public static void ThrowIfFailed(CuRandStatus errorCode) { if (errorCode != CuRandStatus.CURAND_STATUS_SUCCESS) { throw new CuRandException(errorCode); } }
/// <summary> /// Constructs a new CuRand exception. /// </summary> /// <param name="errorCode">The CuRand runtime error.</param> public CuRandException(CuRandStatus errorCode) : base() { Error = errorCode; }