Uses of Class
org.apache.sysds.runtime.instructions.gpu.context.CSRPointer
Packages that use CSRPointer
Package
Description
-
Uses of CSRPointer in org.apache.sysds.runtime.controlprogram.context
Methods in org.apache.sysds.runtime.controlprogram.context that return CSRPointer -
Uses of CSRPointer in org.apache.sysds.runtime.instructions.gpu.context
Methods in org.apache.sysds.runtime.instructions.gpu.context that return CSRPointerModifier and TypeMethodDescriptionstatic CSRPointerCSRPointer.allocateEmpty(GPUContext gCtx, long nnz2, long rows) static CSRPointerCSRPointer.allocateEmpty(GPUContext gCtx, long nnz2, long rows, boolean initialize) Factory method to allocate an empty CSR Sparse matrix on the GPUstatic CSRPointerCSRPointer.allocateForDgeam(GPUContext gCtx, jcuda.jcusparse.cusparseHandle handle, CSRPointer A, CSRPointer B, int m, int n) Estimates the number of non zero elements from the results of a sparse cusparseDgeam operation C = a op(A) + b op(B)static CSRPointerCSRPointer.allocateForMatrixMultiply(GPUContext gCtx, jcuda.jcusparse.cusparseHandle handle, CSRPointer A, int transA, CSRPointer B, int transB, int m, int n, int k, int dataType) Estimates the number of non-zero elements from the result of a sparse matrix multiplication C = A * B and returns theCSRPointerto C with the appropriate GPU memory.CSRPointer.clone(int rows) static CSRPointerGPUObject.columnMajorDenseToRowMajorSparse(GPUContext gCtx, jcuda.jcusparse.cusparseHandle cusparseHandle, jcuda.Pointer densePtr, int rows, int cols) Convenience method to convert a CSR matrix to a dense matrix on the GPU Since the allocated matrix is temporary, bookkeeping is not updated.GPUObject.getJcudaSparseMatrixPtr()Pointer to sparse matrixGPUObject.getSparseMatrixCudaPointer()Convenience method to directly examine the Sparse matrix on GPUstatic CSRPointerCSRPointer.transposeCSR(GPUContext gCtx, jcuda.jcusparse.cusparseHandle handle, CSRPointer src, int srcRows, int srcCols, int dataType) Physically transpose a CSR matrix (srcRows × srcCols ➜ srcCols × srcRows).Methods in org.apache.sysds.runtime.instructions.gpu.context with parameters of type CSRPointerModifier and TypeMethodDescriptionstatic CSRPointerCSRPointer.allocateForDgeam(GPUContext gCtx, jcuda.jcusparse.cusparseHandle handle, CSRPointer A, CSRPointer B, int m, int n) Estimates the number of non zero elements from the results of a sparse cusparseDgeam operation C = a op(A) + b op(B)static CSRPointerCSRPointer.allocateForMatrixMultiply(GPUContext gCtx, jcuda.jcusparse.cusparseHandle handle, CSRPointer A, int transA, CSRPointer B, int transB, int m, int n, int k, int dataType) Estimates the number of non-zero elements from the result of a sparse matrix multiplication C = A * B and returns theCSRPointerto C with the appropriate GPU memory.static voidCSRPointer.copyPtrToHost(CSRPointer src, int rows, long nnz, int[] rowPtr, int[] colInd) Static method to copy a CSR sparse matrix from Device to hoststatic voidCSRPointer.copyToDevice(GPUContext gCtx, CSRPointer dest, int rows, long nnz, int[] rowPtr, int[] colInd, double[] values) Static method to copy a CSR sparse matrix from Host to DevicevoidGPUObject.setSparseMatrixCudaPointer(CSRPointer sparseMatrixPtr) Convenience method to directly set the sparse matrix on GPU Needed for operations like cusparseDcsrgemm(cusparseHandle, int, int, int, int, int, cusparseMatDescr, int, Pointer, Pointer, Pointer, cusparseMatDescr, int, Pointer, Pointer, Pointer, cusparseMatDescr, Pointer, Pointer, Pointer)static CSRPointerCSRPointer.transposeCSR(GPUContext gCtx, jcuda.jcusparse.cusparseHandle handle, CSRPointer src, int srcRows, int srcCols, int dataType) Physically transpose a CSR matrix (srcRows × srcCols ➜ srcCols × srcRows).