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

How to use
cublasAllocNative
method
in
jcuda.jcublas.JCublas

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

origin: org.nd4j/jcublas

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasAlloc (int n, int elemSize, void **devicePtr)<br />
 *<br />
 * creates an object in GPU memory space capable of holding an array of
 * n elements, where each element requires elemSize bytes of storage. If
 * the function call is successful, a pointer to the object in GPU memory
 * space is placed in devicePtr. Note that this is a device pointer that
 * cannot be dereferenced in host code.<br />
 *<br />
 * Return Values<br />
 * -------------<br />
 * CUBLAS_STATUS_NOT_INITIALIZED  if CUBLAS library has not been initialized<br />
 * CUBLAS_STATUS_INVALID_VALUE    if n <= 0, or elemSize <= 0<br />
 * CUBLAS_STATUS_ALLOC_FAILED     if the object could not be allocated due to
 *                                lack of resources.<br />
 * CUBLAS_STATUS_SUCCESS          if storage was successfully allocated<br />
 */
public static int cublasAlloc(int n, int elemSize, Pointer ptr)
{
  return checkResult(cublasAllocNative(n, elemSize, ptr));
}
private static native int cublasAllocNative(int n, int elemSize, Pointer ptr);
origin: org.jcuda/jcublas

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasAlloc (int n, int elemSize, void **devicePtr)<br />
 *<br />
 * creates an object in GPU memory space capable of holding an array of
 * n elements, where each element requires elemSize bytes of storage. If
 * the function call is successful, a pointer to the object in GPU memory
 * space is placed in devicePtr. Note that this is a device pointer that
 * cannot be dereferenced in host code.<br />
 *<br />
 * Return Values<br />
 * -------------<br />
 * CUBLAS_STATUS_NOT_INITIALIZED  if CUBLAS library has not been initialized<br />
 * CUBLAS_STATUS_INVALID_VALUE    if n <= 0, or elemSize <= 0<br />
 * CUBLAS_STATUS_ALLOC_FAILED     if the object could not be allocated due to
 *                                lack of resources.<br />
 * CUBLAS_STATUS_SUCCESS          if storage was successfully allocated<br />
 */
public static int cublasAlloc(int n, int elemSize, Pointer ptr)
{
  return checkResult(cublasAllocNative(n, elemSize, ptr));
}
private static native int cublasAllocNative(int n, int elemSize, Pointer ptr);
origin: org.nd4j/jcublas-windows64

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasAlloc (int n, int elemSize, void **devicePtr)<br />
 *<br />
 * creates an object in GPU memory space capable of holding an array of
 * n elements, where each element requires elemSize bytes of storage. If
 * the function call is successful, a pointer to the object in GPU memory
 * space is placed in devicePtr. Note that this is a device pointer that
 * cannot be dereferenced in host code.<br />
 *<br />
 * Return Values<br />
 * -------------<br />
 * CUBLAS_STATUS_NOT_INITIALIZED  if CUBLAS library has not been initialized<br />
 * CUBLAS_STATUS_INVALID_VALUE    if n <= 0, or elemSize <= 0<br />
 * CUBLAS_STATUS_ALLOC_FAILED     if the object could not be allocated due to
 *                                lack of resources.<br />
 * CUBLAS_STATUS_SUCCESS          if storage was successfully allocated<br />
 */
public static int cublasAlloc(int n, int elemSize, Pointer ptr)
{
  return checkResult(cublasAllocNative(n, elemSize, ptr));
}
private static native int cublasAllocNative(int n, int elemSize, Pointer ptr);
origin: org.scalanlp/jcublas

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasAlloc (int n, int elemSize, void **devicePtr)<br />
 *<br />
 * creates an object in GPU memory space capable of holding an array of
 * n elements, where each element requires elemSize bytes of storage. If
 * the function call is successful, a pointer to the object in GPU memory
 * space is placed in devicePtr. Note that this is a device pointer that
 * cannot be dereferenced in host code.<br />
 *<br />
 * Return Values<br />
 * -------------<br />
 * CUBLAS_STATUS_NOT_INITIALIZED  if CUBLAS library has not been initialized<br />
 * CUBLAS_STATUS_INVALID_VALUE    if n <= 0, or elemSize <= 0<br />
 * CUBLAS_STATUS_ALLOC_FAILED     if the object could not be allocated due to
 *                                lack of resources.<br />
 * CUBLAS_STATUS_SUCCESS          if storage was successfully allocated<br />
 */
public static int cublasAlloc(int n, int elemSize, Pointer ptr)
{
 return checkResult(cublasAllocNative(n, elemSize, ptr));
}
private static native int cublasAllocNative(int n, int elemSize, Pointer ptr);
origin: org.nd4j/nd4j-jcublas-common

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasAlloc (int n, int elemSize, void **devicePtr)<br />
 *<br />
 * creates an object in GPU memory space capable of holding an array of
 * n elements, where each element requires elemSize bytes of storage. If
 * the function call is successful, a pointer to the object in GPU memory
 * space is placed in devicePtr. Note that this is a device pointer that
 * cannot be dereferenced in host code.<br />
 *<br />
 * Return Values<br />
 * -------------<br />
 * CUBLAS_STATUS_NOT_INITIALIZED  if CUBLAS library has not been initialized<br />
 * CUBLAS_STATUS_INVALID_VALUE    if n <= 0, or elemSize <= 0<br />
 * CUBLAS_STATUS_ALLOC_FAILED     if the object could not be allocated due to
 *                                lack of resources.<br />
 * CUBLAS_STATUS_SUCCESS          if storage was successfully allocated<br />
 */
public static int cublasAlloc(int n, int elemSize, Pointer ptr)
{
  return checkResult(cublasAllocNative(n, elemSize, ptr));
}
private static native int cublasAllocNative(int n, int elemSize, Pointer ptr);
origin: org.nd4j/jcublas-osx

/**
 * Wrapper for CUBLAS function.<br />
 * <br />
 * cublasStatus
 * cublasAlloc (int n, int elemSize, void **devicePtr)<br />
 *<br />
 * creates an object in GPU memory space capable of holding an array of
 * n elements, where each element requires elemSize bytes of storage. If
 * the function call is successful, a pointer to the object in GPU memory
 * space is placed in devicePtr. Note that this is a device pointer that
 * cannot be dereferenced in host code.<br />
 *<br />
 * Return Values<br />
 * -------------<br />
 * CUBLAS_STATUS_NOT_INITIALIZED  if CUBLAS library has not been initialized<br />
 * CUBLAS_STATUS_INVALID_VALUE    if n <= 0, or elemSize <= 0<br />
 * CUBLAS_STATUS_ALLOC_FAILED     if the object could not be allocated due to
 *                                lack of resources.<br />
 * CUBLAS_STATUS_SUCCESS          if storage was successfully allocated<br />
 */
public static int cublasAlloc(int n, int elemSize, Pointer ptr)
{
  return checkResult(cublasAllocNative(n, elemSize, ptr));
}
private static native int cublasAllocNative(int n, int elemSize, Pointer ptr);
jcuda.jcublasJCublascublasAllocNative

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
  • cublasCaxpyNative
  • cublasCcopyNative
  • cublasCdotcNative
  • cublasCdotuNative
  • cublasCgbmvNative
  • cublasCgemmNative
  • cublasCgemvNative
  • cublasCgercNative
  • cublasCgeruNative
  • cublasChbmvNative
  • cublasCgeruNative,
  • cublasChbmvNative,
  • cublasChemmNative,
  • cublasChemvNative,
  • cublasCher2Native,
  • cublasCher2kNative,
  • cublasCherNative,
  • cublasCherkNative,
  • cublasChpr2Native

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • setRequestProperty (URLConnection)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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