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

How to use
JCublas
in
jcuda.jcublas

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

origin: org.nd4j/nd4j-jcublas-common

public static int cublasSetVectorAsync (int n, int elemSize, Pointer hostPtr, int incx, Pointer devicePtr, int incy, cudaStream_t stream)
{
  return checkResult(cublasSetVectorAsyncNative(n, elemSize, hostPtr, incx, devicePtr, incy, stream));
}
/*
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

public static int cublasSetKernelStream (cudaStream_t stream)
{
  return checkResult(cublasSetKernelStreamNative(stream));
}
private static native int cublasSetKernelStreamNative(cudaStream_t stream);
origin: org.nd4j/nd4j-jcublas-common

public static int cublasGetMatrixAsync (int rows, int cols, int elemSize, Pointer A, int lda,  Pointer B, int ldb, cudaStream_t stream)
{
  return checkResult(cublasGetMatrixAsyncNative(rows, cols, elemSize, A, lda, B, ldb, stream));
}
origin: org.nd4j/jcublas

cublasCcopyNative(n, x, incx, y, incy);
checkResultBLAS();
origin: org.nd4j/jcublas

cuComplex result = cublasCdotuNative(n, x, incx, y, incy);
checkResultBLAS();
return result;
origin: org.nd4j/nd4j-jcublas-common

cuComplex result = cublasCdotcNative(n, x, incx, y, incy);
checkResultBLAS();
return result;
origin: org.nd4j/jcublas-windows64

cublasCaxpyNative(n, alpha, x, incx, y, incy);
checkResultBLAS();
origin: org.nd4j/nd4j-jcublas-common

cublasCgemvNative(trans, m, n, alpha, A, lda, x, incx, beta, y, incy);
checkResultBLAS();
origin: org.nd4j/jcublas

cublasCgemmNative(transa, transb, m, n, k, alpha, A, lda, B, ldb, beta, C, ldc);
checkResultBLAS();
origin: org.nd4j/nd4j-jcublas-common

cublasCgbmvNative(trans, m, n, kl, ku, alpha, A, lda, x, incx, beta, y, incy);
checkResultBLAS();
origin: org.nd4j/jcublas

public static int cublasSetMatrixAsync (int rows, int cols, int elemSize, Pointer A, int lda, Pointer B, int ldb, cudaStream_t stream)
{
  return checkResult(cublasSetMatrixAsyncNative(rows, cols, elemSize, A, lda, B, ldb, stream));
}
origin: org.nd4j/jcublas-windows64

public static int cublasGetVectorAsync(int n, int elemSize, Pointer devicePtr, int incx, Pointer hostPtr, int incy, cudaStream_t stream)
{
  return checkResult(cublasGetVectorAsyncNative(n, elemSize, devicePtr, incx, hostPtr, incy, stream));
}
origin: org.nd4j/nd4j-jcublas-common

cublasZscalNative(n, alpha, x, incx);
checkResultBLAS();
origin: org.nd4j/jcublas

float result = cublasScnrm2Native(n, x, incx);
checkResultBLAS();
return result;
origin: org.nd4j/nd4j-jcublas-common

int result = cublasIcamaxNative(n, x, incx);
checkResultBLAS();
return result;
origin: org.nd4j/jcublas-osx

cublasCsscalNative(n, alpha, x, incx);
checkResultBLAS();
origin: org.nd4j/jcublas-windows64

cublasCscalNative(n, alpha, x, incx);
checkResultBLAS();
origin: org.nd4j/nd4j-jcublas-common

int result = cublasIsaminNative(n, x, incx);
checkResultBLAS();
return result;
origin: org.scalanlp/jcublas

int result = cublasIsamaxNative(n, x, incx);
checkResultBLAS();
return result;
jcuda.jcublasJCublas

Javadoc

Java bindings for CUBLAS, the NVIDIA CUDA BLAS library.
Most comments are taken from the cublas.h header file.
Note:: This class mimics the original CUBLAS API. With CUDA 4.0, a new API for CUBLAS has been introduced. This is referred to as the "new CUBLAS API", and is defined in the C header "cublas_v2.h". Consequently, the new CUBLAS API is offered via the JCublas2 class.

New applications should generally use the new CUBLAS API. This class is only maintained for backward compatibility of existing applications. For more information, see http://docs.nvidia.com/cuda/cublas/#new-and-legacy-cublas-api

Most used methods

  • 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

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
  • addToBackStack (FragmentTransaction)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 14 Best Plugins for Eclipse
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