Package org.apache.sysds.conf
Class DMLConfig
- java.lang.Object
- 
- org.apache.sysds.conf.DMLConfig
 
- 
 public class DMLConfig extends Object 
- 
- 
Field Summary
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DMLConfigclone()booleangetBooleanValue(String tagName)StringgetConfigInfo()static StringgetDefaultTextValue(String key)doublegetDoubleValue(String tagName)intgetIntValue(String tagName)StringgetTextValue(String tagName)Method to get string value of a configuration parameter Handles processing of configuration parametersstatic DMLConfigparseDMLConfig(String content)static DMLConfigreadConfigurationFile(String configPath)Start with the internal default settings, then merge in the settings from any specified configuration file, if available.StringserializeDMLConfig()voidset(DMLConfig dmlconf)voidsetTextValue(String paramName, String paramValue)Method to update the key value
 
- 
- 
- 
Field Detail- 
DEFAULT_SYSTEMDS_CONFIG_FILEPATHpublic static final String DEFAULT_SYSTEMDS_CONFIG_FILEPATH - See Also:
- Constant Field Values
 
 - 
LOCAL_TMP_DIRpublic static final String LOCAL_TMP_DIR - See Also:
- Constant Field Values
 
 - 
SCRATCH_SPACEpublic static final String SCRATCH_SPACE - See Also:
- Constant Field Values
 
 - 
OPTIMIZATION_LEVELpublic static final String OPTIMIZATION_LEVEL - See Also:
- Constant Field Values
 
 - 
DEFAULT_BLOCK_SIZEpublic static final String DEFAULT_BLOCK_SIZE - See Also:
- Constant Field Values
 
 - 
CP_PARALLEL_OPSpublic static final String CP_PARALLEL_OPS - See Also:
- Constant Field Values
 
 - 
CP_PARALLEL_IOpublic static final String CP_PARALLEL_IO - See Also:
- Constant Field Values
 
 - 
PARALLEL_ENCODEpublic static final String PARALLEL_ENCODE - See Also:
- Constant Field Values
 
 - 
PARALLEL_ENCODE_STAGEDpublic static final String PARALLEL_ENCODE_STAGED - See Also:
- Constant Field Values
 
 - 
PARALLEL_ENCODE_APPLY_BLOCKSpublic static final String PARALLEL_ENCODE_APPLY_BLOCKS - See Also:
- Constant Field Values
 
 - 
PARALLEL_ENCODE_BUILD_BLOCKSpublic static final String PARALLEL_ENCODE_BUILD_BLOCKS - See Also:
- Constant Field Values
 
 - 
PARALLEL_ENCODE_NUM_THREADSpublic static final String PARALLEL_ENCODE_NUM_THREADS - See Also:
- Constant Field Values
 
 - 
COMPRESSED_LINALGpublic static final String COMPRESSED_LINALG - See Also:
- Constant Field Values
 
 - 
COMPRESSED_LOSSYpublic static final String COMPRESSED_LOSSY - See Also:
- Constant Field Values
 
 - 
COMPRESSED_VALID_COMPRESSIONSpublic static final String COMPRESSED_VALID_COMPRESSIONS - See Also:
- Constant Field Values
 
 - 
COMPRESSED_OVERLAPPINGpublic static final String COMPRESSED_OVERLAPPING - See Also:
- Constant Field Values
 
 - 
COMPRESSED_SAMPLING_RATIOpublic static final String COMPRESSED_SAMPLING_RATIO - See Also:
- Constant Field Values
 
 - 
COMPRESSED_COCODEpublic static final String COMPRESSED_COCODE - See Also:
- Constant Field Values
 
 - 
COMPRESSED_COST_MODELpublic static final String COMPRESSED_COST_MODEL - See Also:
- Constant Field Values
 
 - 
COMPRESSED_TRANSPOSEpublic static final String COMPRESSED_TRANSPOSE - See Also:
- Constant Field Values
 
 - 
NATIVE_BLASpublic static final String NATIVE_BLAS - See Also:
- Constant Field Values
 
 - 
NATIVE_BLAS_DIRpublic static final String NATIVE_BLAS_DIR - See Also:
- Constant Field Values
 
 - 
DAG_LINEARIZATIONpublic static final String DAG_LINEARIZATION - See Also:
- Constant Field Values
 
 - 
CODEGENpublic static final String CODEGEN - See Also:
- Constant Field Values
 
 - 
CODEGEN_APIpublic static final String CODEGEN_API - See Also:
- Constant Field Values
 
 - 
CODEGEN_COMPILERpublic static final String CODEGEN_COMPILER - See Also:
- Constant Field Values
 
 - 
CODEGEN_OPTIMIZERpublic static final String CODEGEN_OPTIMIZER - See Also:
- Constant Field Values
 
 - 
CODEGEN_PLANCACHEpublic static final String CODEGEN_PLANCACHE - See Also:
- Constant Field Values
 
 - 
CODEGEN_LITERALSpublic static final String CODEGEN_LITERALS - See Also:
- Constant Field Values
 
 - 
STATS_MAX_WRAP_LENpublic static final String STATS_MAX_WRAP_LEN - See Also:
- Constant Field Values
 
 - 
AVAILABLE_GPUSpublic static final String AVAILABLE_GPUS - See Also:
- Constant Field Values
 
 - 
SYNCHRONIZE_GPUpublic static final String SYNCHRONIZE_GPU - See Also:
- Constant Field Values
 
 - 
EAGER_CUDA_FREEpublic static final String EAGER_CUDA_FREE - See Also:
- Constant Field Values
 
 - 
GPU_EVICTION_POLICYpublic static final String GPU_EVICTION_POLICY - See Also:
- Constant Field Values
 
 - 
USE_LOCAL_SPARK_CONFIGpublic static final String USE_LOCAL_SPARK_CONFIG - See Also:
- Constant Field Values
 
 - 
LOCAL_SPARK_NUM_THREADSpublic static final String LOCAL_SPARK_NUM_THREADS - See Also:
- Constant Field Values
 
 - 
LINEAGECACHESPILLpublic static final String LINEAGECACHESPILL - See Also:
- Constant Field Values
 
 - 
COMPILERASSISTED_RWpublic static final String COMPILERASSISTED_RW - See Also:
- Constant Field Values
 
 - 
BUFFERPOOL_LIMITpublic static final String BUFFERPOOL_LIMIT - See Also:
- Constant Field Values
 
 - 
MEMORY_MANAGERpublic static final String MEMORY_MANAGER - See Also:
- Constant Field Values
 
 - 
GPU_MEMORY_UTILIZATION_FACTORpublic static final String GPU_MEMORY_UTILIZATION_FACTOR - See Also:
- Constant Field Values
 
 - 
GPU_MEMORY_ALLOCATORpublic static final String GPU_MEMORY_ALLOCATOR - See Also:
- Constant Field Values
 
 - 
FLOATING_POINT_PRECISIONpublic static final String FLOATING_POINT_PRECISION - See Also:
- Constant Field Values
 
 - 
PRINT_GPU_MEMORY_INFOpublic static final String PRINT_GPU_MEMORY_INFO - See Also:
- Constant Field Values
 
 - 
EVICTION_SHADOW_BUFFERSIZEpublic static final String EVICTION_SHADOW_BUFFERSIZE - See Also:
- Constant Field Values
 
 - 
USE_SSL_FEDERATED_COMMUNICATIONpublic static final String USE_SSL_FEDERATED_COMMUNICATION - See Also:
- Constant Field Values
 
 - 
DEFAULT_FEDERATED_INITIALIZATION_TIMEOUTpublic static final String DEFAULT_FEDERATED_INITIALIZATION_TIMEOUT - See Also:
- Constant Field Values
 
 - 
FEDERATED_TIMEOUTpublic static final String FEDERATED_TIMEOUT - See Also:
- Constant Field Values
 
 - 
FEDERATED_PLANNERpublic static final String FEDERATED_PLANNER - See Also:
- Constant Field Values
 
 - 
FEDERATED_PAR_INSTpublic static final String FEDERATED_PAR_INST - See Also:
- Constant Field Values
 
 - 
FEDERATED_PAR_CONNpublic static final String FEDERATED_PAR_CONN - See Also:
- Constant Field Values
 
 - 
DEFAULT_FEDERATED_PORTpublic static final int DEFAULT_FEDERATED_PORT - See Also:
- Constant Field Values
 
 - 
DEFAULT_NUMBER_OF_FEDERATED_WORKER_THREADSpublic static final int DEFAULT_NUMBER_OF_FEDERATED_WORKER_THREADS - See Also:
- Constant Field Values
 
 - 
DEFAULT_SHARED_DIR_PERMISSIONpublic static final String DEFAULT_SHARED_DIR_PERMISSION - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
DMLConfigpublic DMLConfig() 
 - 
DMLConfigpublic DMLConfig(String fileName) throws FileNotFoundException - Throws:
- FileNotFoundException
 
 - 
DMLConfigpublic DMLConfig(String fileName, boolean silent) throws FileNotFoundException - Throws:
- FileNotFoundException
 
 - 
DMLConfigpublic DMLConfig(Element root) 
 - 
DMLConfigpublic DMLConfig(DMLConfig dmlconf) 
 
- 
 - 
Method Detail- 
setpublic void set(DMLConfig dmlconf) 
 - 
getTextValuepublic String getTextValue(String tagName) Method to get string value of a configuration parameter Handles processing of configuration parameters- Parameters:
- tagName- the name of the DMLConfig parameter being retrieved
- Returns:
- a string representation of the DMLConfig parameter value.
 
 - 
getIntValuepublic int getIntValue(String tagName) 
 - 
getBooleanValuepublic boolean getBooleanValue(String tagName) 
 - 
getDoubleValuepublic double getDoubleValue(String tagName) 
 - 
setTextValuepublic void setTextValue(String paramName, String paramValue) Method to update the key value- Parameters:
- paramName- parameter name
- paramValue- parameter value
 
 - 
serializeDMLConfigpublic String serializeDMLConfig() 
 - 
readConfigurationFilepublic static DMLConfig readConfigurationFile(String configPath) throws FileNotFoundException Start with the internal default settings, then merge in the settings from any specified configuration file, if available. If it is not explicitly given, then merge in settings from the default configuration file location, if available.- Parameters:
- configPath- User-defined path of the configuration file.
- Returns:
- dml configuration
- Throws:
- FileNotFoundException- if FileNotFoundException occurs
 
 - 
getConfigInfopublic String getConfigInfo() 
 - 
clonepublic DMLConfig clone() 
 
- 
 
-