Package com.aparapi.examples.matrix
Class CorrMatrixKernel
java.lang.Object
com.aparapi.Kernel
com.aparapi.examples.matrix.CorrMatrixKernel
- All Implemented Interfaces:
Cloneable
public class CorrMatrixKernel
extends com.aparapi.Kernel
This kernel attempts to re-implement the Lucene OpenBitSet functionality on a GPU
Based on code from:
apache.lucene.util.BitUtil.java
- Author:
- ryan.lamothe at gmail.com, sedillard at gmail.com
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CorrMatrixKernel(long[] matrixA, int matrixA_NumTerms, long[] matrixB, int matrixB_NumTerms, int numLongs, int[] resultMatrix)
Default constructor -
Method Summary
Modifier and Type Method Description void
run()
Methods inherited from class com.aparapi.Kernel
addExecutionModes, cancelMultiPass, cleanUpArrays, clone, dispose, execute, execute, execute, execute, execute, execute, executeFallbackAlgorithm, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAccumulatedExecutionTime, getAccumulatedExecutionTimeAllThreads, getAccumulatedExecutionTimeCurrentThread, getCancelState, getConversionTime, getCurrentPass, getExecutionMode, getExecutionTime, getKernelState, getMappedMethodName, getProfileInfo, getProfileReportCurrentThread, getProfileReportLastThread, getTargetDevice, hasFallbackAlgorithm, hasNextExecutionMode, invalidateCaches, isAllowDevice, isAutoCleanUpArrays, isExecuting, isExplicit, isMappedMethod, isOpenCLDelegateMethod, isRunningCL, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, registerProfileReportObserver, setAutoCleanUpArrays, setExecutionMode, setExecutionModeWithoutFallback, setExplicit, setFallbackExecutionMode, toString, tryNextExecutionMode, usesAtomic32, usesAtomic64
-
Constructor Details
-
CorrMatrixKernel
public CorrMatrixKernel(long[] matrixA, int matrixA_NumTerms, long[] matrixB, int matrixB_NumTerms, int numLongs, int[] resultMatrix)Default constructor- Parameters:
matrixA
- Matrix A.matrixB
- Matrix B.matrixA_NumTerms
- Number of terms in Matrix A.matrixB_NumTerms
- Number of terms in Matrix B.numLongs
- Number of longs.resultMatrix
- The matrix to store the results in.
-
-
Method Details
-
run
public void run()- Specified by:
run
in classcom.aparapi.Kernel
-