public class KernelFunctions extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCKS |
static String |
BLOCKS_KEY |
static String |
DOUBLE |
static String |
FLOAT |
static String |
NAME_SPACE |
static String |
REDUCE |
static int |
SHARED_MEM |
static String |
SHARED_MEM_KEY |
static int |
THREADS |
static String |
THREADS_KEY |
| Modifier and Type | Method and Description |
|---|---|
static JCudaBuffer |
alloc(double[] data)
Allocate a pointer of a given data type
|
static JCudaBuffer |
alloc(float[] data)
Allocate a pointer of a given data type
|
static JCudaBuffer |
alloc(int[] data)
Allocate a pointer of a given data type
|
static void |
invoke(GpuMetrics metrics,
boolean sync,
String functionName,
String dataType,
CudaContext cudaContext,
Object... kernelParameters)
Invoke a function
|
static void |
register()
Called at initialization in the static context.
|
public static final String NAME_SPACE
public static final String DOUBLE
public static final String FLOAT
public static final String REDUCE
public static final String SHARED_MEM_KEY
public static final String THREADS_KEY
public static final String BLOCKS_KEY
public static int SHARED_MEM
public static int THREADS
public static int BLOCKS
public static void register()
throws Exception
IOExceptionExceptionpublic static void invoke(GpuMetrics metrics, boolean sync, String functionName, String dataType, CudaContext cudaContext, Object... kernelParameters)
metrics - functionName - dataType - cudaContext - kernelParameters - public static JCudaBuffer alloc(int[] data)
data - the data for the pointerpublic static JCudaBuffer alloc(double[] data)
data - the data for the pointerpublic static JCudaBuffer alloc(float[] data)
data - the data for the pointerCopyright © 2015. All Rights Reserved.