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 by
Aparapi
here. Please consider updating this class if you wish
to add new properties which control Aparapi
s behavior.- Author:
- gfrost
-
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 String
executionMode
Allows the user to request a specific Kernel.EXECUTION_MODE enum value for all Kernels.static Config.InstructionListener
instructionListener
static String
instructionListenerClassName
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
-
Constructor Summary
Constructors Constructor Description Config()
-
Method Summary
Modifier and Type Method Description static String
getLoggerName()
-
Field Details
-
useAgent
public static final boolean useAgentAllows 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 disableUnsafeDisable Unsafe -
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 enableExecutionModeReportingAllows 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 enableShowGeneratedOpenCLAllows the user to request that generated OpenCL code is dumped to standard out. Usage -Dcom.codegen.enableShowGeneratedOpenCL={true|false} -
dumpProfilesOnExit
public static final boolean dumpProfilesOnExitUpon exiting the JVM, dumps kernel profiling info to standard out. Usage -Dcom.codegen.dumpProfilesOnExit={true|false} -
dumpProfileOnExecution
public static final boolean dumpProfileOnExecutionDumps 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
-
instructionListener
-
-
Constructor Details
-
Config
public Config()
-
-
Method Details