public class CudaArgs extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CudaArgs.ArgsAndReferences |
Modifier and Type | Method and Description |
---|---|
static CudaArgs.ArgsAndReferences |
argsAndReference(CudaContext context,
Object... kernelParams) |
static int |
convertMPtoCores(int ccMajor,
int ccMinor,
int numberOfProcessors)
Returns number of SMs, based on device compute capability and number of processors.
|
static String |
getModuleNameFor(Op op)
For invoking a cuda kernel
this returns the module name for the given op
|
static int |
getOpCode(Op op) |
public static String getModuleNameFor(Op op)
op
- the op to get the module name forpublic static int getOpCode(Op op)
public static int convertMPtoCores(int ccMajor, int ccMinor, int numberOfProcessors)
ccMajor
- ccMinor
- public static CudaArgs.ArgsAndReferences argsAndReference(CudaContext context, Object... kernelParams)
context
- kernelParams
- Copyright © 2016. All Rights Reserved.