Package com.aparapi
Class Config
- java.lang.Object
-
- com.aparapi.internal.jni.ConfigJNI
-
- com.aparapi.Config
-
public class Config extends ConfigJNI
A central location for holding all runtime configurable properties as well as logging configuration. Ideally we will find all properties used byAparapi
here. Please consider updating this class if you wish to add new properties which controlAparapi
s behavior.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Config.InstructionListener
-
Field Summary
Fields Modifier and Type Field Description static boolean
disableUnsafe
Disable Unsafestatic boolean
dumpFlags
static boolean
dumpProfileOnExecution
Dumps profiling info (for a single execution) after every Kernel execution.static boolean
dumpProfilesOnExit
Upon exiting the JVM, dumps kernel profiling info to standard out.static boolean
enableARETURN
static boolean
enableARRAY
static boolean
enableARRAYLENGTH
static boolean
enableATHROW
static boolean
enableAtomic32
static boolean
enableAtomic64
static boolean
enableByteWrites
static boolean
enableDoubles
static boolean
enableExecutionModeReporting
Allows the user to request that the execution mode of each kernel invocation be reported to stdout.static boolean
enableGETSTATIC
static boolean
enableInstructionDecodeViewer
static boolean
enableINVOKEINTERFACE
static boolean
enableMETHODARRAYPASSING
static boolean
enableMONITOR
static boolean
enableNEW
static boolean
enablePUTFIELD
static boolean
enablePUTSTATIC
static boolean
enableShowFakeLocalVariableTable
static boolean
enableShowGeneratedOpenCL
Allows the user to request that generated OpenCL code is dumped to standard out.static boolean
enableSWITCH
static java.lang.String
executionMode
Allows the user to request a specific Kernel.EXECUTION_MODE enum value for all Kernels.static Config.InstructionListener
instructionListener
static java.lang.String
instructionListenerClassName
private static java.util.logging.Logger
logger
private static java.lang.String
logPropName
static boolean
useAgent
Allows the user to request to use a jvmti agent to access JNI code rather than loading explicitly.static boolean
verboseComparitor
-
Fields inherited from class com.aparapi.internal.jni.ConfigJNI
enableProfiling, enableProfilingCSV, enableVerboseJNI, enableVerboseJNIOpenCLResourceTracking, propPkgName
-
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getLoggerName()
-
-
-
Field Detail
-
logPropName
private static final java.lang.String logPropName
-
logger
private static final java.util.logging.Logger logger
-
useAgent
public static final boolean useAgent
Allows the user to request to use a jvmti agent to access JNI code rather than loading explicitly. Usage -agentpath=/full/path/to/agent.dll -Dcom.codegen.useAgent=true
-
disableUnsafe
public static final boolean disableUnsafe
Disable Unsafe
-
executionMode
public static final java.lang.String executionMode
Allows the user to request a specific Kernel.EXECUTION_MODE enum value for all Kernels. Usage -Dcom.codegen.executionMode={SEQ|JTP|CPU|GPU|ACC}- See Also:
Kernel.EXECUTION_MODE
-
enableExecutionModeReporting
public static final boolean enableExecutionModeReporting
Allows the user to request that the execution mode of each kernel invocation be reported to stdout. Usage -Dcom.codegen.enableExecutionModeReporting={true|false}
-
enableShowGeneratedOpenCL
public static final boolean enableShowGeneratedOpenCL
Allows the user to request that generated OpenCL code is dumped to standard out. Usage -Dcom.codegen.enableShowGeneratedOpenCL={true|false}
-
dumpProfilesOnExit
public static final boolean dumpProfilesOnExit
Upon exiting the JVM, dumps kernel profiling info to standard out. Usage -Dcom.codegen.dumpProfilesOnExit={true|false}
-
dumpProfileOnExecution
public static final boolean dumpProfileOnExecution
Dumps profiling info (for a single execution) after every Kernel execution. Usage -Dcom.codegen.dumpProfileOnExecution={true|false}
-
enableAtomic32
public static final boolean enableAtomic32
-
enableAtomic64
public static final boolean enableAtomic64
-
enableByteWrites
public static final boolean enableByteWrites
-
enableDoubles
public static final boolean enableDoubles
-
verboseComparitor
public static final boolean verboseComparitor
-
dumpFlags
public static final boolean dumpFlags
-
enablePUTFIELD
public static final boolean enablePUTFIELD
-
enableARETURN
public static final boolean enableARETURN
-
enablePUTSTATIC
public static final boolean enablePUTSTATIC
-
enableGETSTATIC
public static final boolean enableGETSTATIC
- See Also:
- Constant Field Values
-
enableINVOKEINTERFACE
public static final boolean enableINVOKEINTERFACE
-
enableMONITOR
public static final boolean enableMONITOR
-
enableARRAY
public static final boolean enableARRAY
-
enableNEW
public static final boolean enableNEW
-
enableATHROW
public static final boolean enableATHROW
-
enableMETHODARRAYPASSING
public static final boolean enableMETHODARRAYPASSING
-
enableARRAYLENGTH
public static final boolean enableARRAYLENGTH
-
enableSWITCH
public static final boolean enableSWITCH
-
enableShowFakeLocalVariableTable
public static boolean enableShowFakeLocalVariableTable
-
enableInstructionDecodeViewer
public static final boolean enableInstructionDecodeViewer
-
instructionListenerClassName
public static java.lang.String instructionListenerClassName
-
instructionListener
public static Config.InstructionListener instructionListener
-
-