Tabnine Logo
JCublas.cublasGetErrorNative
Code IndexAdd Tabnine to your IDE (free)

How to use
cublasGetErrorNative
method
in
jcuda.jcublas.JCublas

Best Java code snippets using jcuda.jcublas.JCublas.cublasGetErrorNative (Showing top 12 results out of 315)

origin: org.nd4j/jcublas-windows64

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasGetError()<br />
 *<br />
 * returns the last error that occurred on invocation of any of the
 * CUBLAS BLAS functions. While the CUBLAS helper functions return status
 * directly, the BLAS functions do not do so for improved
 * compatibility with existing environments that do not expect BLAS
 * functions to return status. Reading the error status via
 * cublasGetError() resets the internal error state to
 * CUBLAS_STATUS_SUCCESS.
 */
public static int cublasGetError()
{
  if (exceptionsEnabled)
  {
    int returnedResult = lastResult;
    lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS;
    return returnedResult;
  }
  return cublasGetErrorNative();
}
private static native int cublasGetErrorNative();
origin: org.scalanlp/jcublas

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasGetError()<br />
 *<br />
 * returns the last error that occurred on invocation of any of the
 * CUBLAS BLAS functions. While the CUBLAS helper functions return status
 * directly, the BLAS functions do not do so for improved
 * compatibility with existing environments that do not expect BLAS
 * functions to return status. Reading the error status via
 * cublasGetError() resets the internal error state to
 * CUBLAS_STATUS_SUCCESS.
 */
public static int cublasGetError()
{
 if (exceptionsEnabled)
 {
  int returnedResult = lastResult;
  lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS;
  return returnedResult;
 }
 return cublasGetErrorNative();
}
private static native int cublasGetErrorNative();
origin: org.nd4j/nd4j-jcublas-common

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasGetError()<br />
 *<br />
 * returns the last error that occurred on invocation of any of the
 * CUBLAS BLAS functions. While the CUBLAS helper functions return status
 * directly, the BLAS functions do not do so for improved
 * compatibility with existing environments that do not expect BLAS
 * functions to return status. Reading the error status via
 * cublasGetError() resets the internal error state to
 * CUBLAS_STATUS_SUCCESS.
 */
public static int cublasGetError()
{
  if (exceptionsEnabled)
  {
    int returnedResult = lastResult;
    lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS;
    return returnedResult;
  }
  return cublasGetErrorNative();
}
private static native int cublasGetErrorNative();
origin: org.nd4j/jcublas

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasGetError()<br />
 *<br />
 * returns the last error that occurred on invocation of any of the
 * CUBLAS BLAS functions. While the CUBLAS helper functions return status
 * directly, the BLAS functions do not do so for improved
 * compatibility with existing environments that do not expect BLAS
 * functions to return status. Reading the error status via
 * cublasGetError() resets the internal error state to
 * CUBLAS_STATUS_SUCCESS.
 */
public static int cublasGetError()
{
  if (exceptionsEnabled)
  {
    int returnedResult = lastResult;
    lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS;
    return returnedResult;
  }
  return cublasGetErrorNative();
}
private static native int cublasGetErrorNative();
origin: org.jcuda/jcublas

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasGetError()<br />
 *<br />
 * returns the last error that occurred on invocation of any of the
 * CUBLAS BLAS functions. While the CUBLAS helper functions return status
 * directly, the BLAS functions do not do so for improved
 * compatibility with existing environments that do not expect BLAS
 * functions to return status. Reading the error status via
 * cublasGetError() resets the internal error state to
 * CUBLAS_STATUS_SUCCESS.
 */
public static int cublasGetError()
{
  if (exceptionsEnabled)
  {
    int returnedResult = lastResult;
    lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS;
    return returnedResult;
  }
  return cublasGetErrorNative();
}
private static native int cublasGetErrorNative();
origin: org.nd4j/jcublas-osx

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasGetError()<br />
 *<br />
 * returns the last error that occurred on invocation of any of the
 * CUBLAS BLAS functions. While the CUBLAS helper functions return status
 * directly, the BLAS functions do not do so for improved
 * compatibility with existing environments that do not expect BLAS
 * functions to return status. Reading the error status via
 * cublasGetError() resets the internal error state to
 * CUBLAS_STATUS_SUCCESS.
 */
public static int cublasGetError()
{
  if (exceptionsEnabled)
  {
    int returnedResult = lastResult;
    lastResult = cublasStatus.CUBLAS_STATUS_SUCCESS;
    return returnedResult;
  }
  return cublasGetErrorNative();
}
private static native int cublasGetErrorNative();
origin: org.nd4j/jcublas-osx

/**
 * Obtain the current CUBLAS status by calling cublasGetErrorNative,
 * and store the result as the lastResult. If the obtained result
 * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions
 * have been enabled, an CudaException will be thrown.
 */
private static void checkResultBLAS()
{
  if (exceptionsEnabled)
  {
    lastResult = cublasGetErrorNative();
    if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS)
    {
      throw new CudaException(cublasStatus.stringFor(lastResult));
    }
  }
}
origin: org.nd4j/jcublas-windows64

/**
 * Obtain the current CUBLAS status by calling cublasGetErrorNative,
 * and store the result as the lastResult. If the obtained result
 * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions
 * have been enabled, an CudaException will be thrown.
 */
private static void checkResultBLAS()
{
  if (exceptionsEnabled)
  {
    lastResult = cublasGetErrorNative();
    if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS)
    {
      throw new CudaException(cublasStatus.stringFor(lastResult));
    }
  }
}
origin: org.scalanlp/jcublas

/**
 * Obtain the current CUBLAS status by calling cublasGetErrorNative,
 * and store the result as the lastResult. If the obtained result
 * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions
 * have been enabled, an CudaException will be thrown. 
 */
private static void checkResultBLAS()
{
 if (exceptionsEnabled)
 {
  lastResult = cublasGetErrorNative();
  if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS)
  {
   throw new CudaException(cublasStatus.stringFor(lastResult));
  }
 }
}
origin: org.jcuda/jcublas

/**
 * Obtain the current CUBLAS status by calling cublasGetErrorNative,
 * and store the result as the lastResult. If the obtained result
 * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions
 * have been enabled, an CudaException will be thrown.
 */
private static void checkResultBLAS()
{
  if (exceptionsEnabled)
  {
    lastResult = cublasGetErrorNative();
    if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS)
    {
      throw new CudaException(cublasStatus.stringFor(lastResult));
    }
  }
}
origin: org.nd4j/nd4j-jcublas-common

/**
 * Obtain the current CUBLAS status by calling cublasGetErrorNative,
 * and store the result as the lastResult. If the obtained result
 * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions
 * have been enabled, an CudaException will be thrown.
 */
private static void checkResultBLAS()
{
  if (exceptionsEnabled)
  {
    lastResult = cublasGetErrorNative();
    if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS)
    {
      throw new CudaException(cublasStatus.stringFor(lastResult));
    }
  }
}
origin: org.nd4j/jcublas

/**
 * Obtain the current CUBLAS status by calling cublasGetErrorNative,
 * and store the result as the lastResult. If the obtained result
 * code is not cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions
 * have been enabled, an CudaException will be thrown.
 */
private static void checkResultBLAS()
{
  if (exceptionsEnabled)
  {
    lastResult = cublasGetErrorNative();
    if (lastResult != cublasStatus.CUBLAS_STATUS_SUCCESS)
    {
      throw new CudaException(cublasStatus.stringFor(lastResult));
    }
  }
}
jcuda.jcublasJCublascublasGetErrorNative

Popular methods of JCublas

  • checkResult
    If the given result is different to cublasStatus.CUBLAS_STATUS_SUCCESS and exceptions have been enab
  • checkResultBLAS
    Obtain the current CUBLAS status by calling cublasGetErrorNative, and store the result as the lastRe
  • cublasAllocNative
  • cublasCaxpyNative
  • cublasCcopyNative
  • cublasCdotcNative
  • cublasCdotuNative
  • cublasCgbmvNative
  • cublasCgemmNative
  • cublasCgemvNative
  • cublasCgercNative
  • cublasCgeruNative
  • cublasCgercNative,
  • cublasCgeruNative,
  • cublasChbmvNative,
  • cublasChemmNative,
  • cublasChemvNative,
  • cublasCher2Native,
  • cublasCher2kNative,
  • cublasCherNative,
  • cublasCherkNative,
  • cublasChpr2Native

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JList (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now