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 byAparapihere. Please consider updating this class if you wish to add new properties which controlAparapis behavior.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConfig.InstructionListener
-
Field Summary
Fields Modifier and Type Field Description static booleandisableUnsafeDisable Unsafestatic booleandumpFlagsstatic booleandumpProfileOnExecutionDumps profiling info (for a single execution) after every Kernel execution.static booleandumpProfilesOnExitUpon exiting the JVM, dumps kernel profiling info to standard out.static booleanenableARETURNstatic booleanenableARRAYstatic booleanenableARRAYLENGTHstatic booleanenableATHROWstatic booleanenableAtomic32static booleanenableAtomic64static booleanenableByteWritesstatic booleanenableDoublesstatic booleanenableExecutionModeReportingAllows the user to request that the execution mode of each kernel invocation be reported to stdout.static booleanenableGETSTATICstatic booleanenableInstructionDecodeViewerstatic booleanenableINVOKEINTERFACEstatic booleanenableMETHODARRAYPASSINGstatic booleanenableMONITORstatic booleanenableNEWstatic booleanenablePUTFIELDstatic booleanenablePUTSTATICstatic booleanenableShowFakeLocalVariableTablestatic booleanenableShowGeneratedOpenCLAllows the user to request that generated OpenCL code is dumped to standard out.static booleanenableSWITCHstatic java.lang.StringexecutionModeAllows the user to request a specific Kernel.EXECUTION_MODE enum value for all Kernels.static Config.InstructionListenerinstructionListenerstatic java.lang.StringinstructionListenerClassNameprivate static java.util.logging.Loggerloggerprivate static java.lang.StringlogPropNamestatic booleanuseAgentAllows the user to request to use a jvmti agent to access JNI code rather than loading explicitly.static booleanverboseComparitor-
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.StringgetLoggerName()
-
-
-
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
-
-