public class DMLScript extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DMLScript.EvictionPolicy
Eviction policies for eviction of GPU objects.
|
static class |
DMLScript.RUNTIME_PLATFORM |
Modifier and Type | Field and Description |
---|---|
static boolean |
_activeAM |
static boolean |
_suppressPrint2Stdout |
static String |
_uuid |
static String |
DML_FILE_PATH_ANTLR_PARSER |
static boolean |
EAGER_CUDA_FREE |
static boolean |
ENABLE_DEBUG_MODE |
static long |
EVICTION_SHADOW_BUFFER_CURR_BYTES |
static long |
EVICTION_SHADOW_BUFFER_MAX_BYTES |
static org.apache.sysml.utils.Explain.ExplainType |
EXPLAIN |
static boolean |
FINEGRAINED_STATISTICS |
static String |
FLOATING_POINT_PRECISION |
static boolean |
FORCE_ACCELERATOR |
static DMLScript.EvictionPolicy |
GPU_EVICTION_POLICY |
static String |
GPU_MEMORY_ALLOCATOR |
static double |
GPU_MEMORY_UTILIZATION_FACTOR |
static boolean |
JMLC_MEM_STATISTICS |
static boolean |
PRINT_GPU_MEMORY_INFO |
static DMLScript.RUNTIME_PLATFORM |
rtplatform |
static ScriptType |
SCRIPT_TYPE
Global variable indicating the script type (DML or PYDML).
|
static boolean |
STATISTICS |
static int |
STATISTICS_COUNT |
static int |
STATISTICS_MAX_WRAP_LEN |
static boolean |
SYNCHRONIZE_GPU |
static boolean |
USE_ACCELERATOR |
static boolean |
USE_LOCAL_SPARK_CONFIG |
static boolean |
VALIDATOR_IGNORE_ISSUES
If true, allow DMLProgram to be generated while not halting due to validation errors/warnings
|
Constructor and Description |
---|
DMLScript() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanupHadoopExecution(org.apache.sysml.conf.DMLConfig config) |
static boolean |
executeScript(org.apache.hadoop.conf.Configuration conf,
String[] args)
Single entry point for all public invocation alternatives (e.g.,
main, executeScript, JaqlUdf etc)
|
static String |
getUUID() |
static void |
initHadoopExecution(org.apache.sysml.conf.DMLConfig config) |
static boolean |
isActiveAM() |
static void |
main(String[] args) |
protected static String |
readDMLScript(boolean isFile,
String scriptOrFilename)
Reads the DML/PyDML script into a String
|
static void |
setActiveAM() |
static void |
setGlobalFlags(org.apache.sysml.conf.DMLConfig dmlconf)
Sets the global flags in DMLScript based on user provided configuration
|
static void |
setUUID(String uuid)
Used to set master UUID on all nodes (in parfor remote_mr, where DMLScript passed)
in order to simplify cleanup of scratch_space and local working dirs.
|
static boolean |
suppressPrint2Stdout() |
public static DMLScript.RUNTIME_PLATFORM rtplatform
public static boolean STATISTICS
public static boolean FINEGRAINED_STATISTICS
public static boolean JMLC_MEM_STATISTICS
public static int STATISTICS_COUNT
public static int STATISTICS_MAX_WRAP_LEN
public static boolean ENABLE_DEBUG_MODE
public static org.apache.sysml.utils.Explain.ExplainType EXPLAIN
public static String DML_FILE_PATH_ANTLR_PARSER
public static String FLOATING_POINT_PRECISION
public static DMLScript.EvictionPolicy GPU_EVICTION_POLICY
public static boolean PRINT_GPU_MEMORY_INFO
public static long EVICTION_SHADOW_BUFFER_MAX_BYTES
public static long EVICTION_SHADOW_BUFFER_CURR_BYTES
public static double GPU_MEMORY_UTILIZATION_FACTOR
public static String GPU_MEMORY_ALLOCATOR
public static ScriptType SCRIPT_TYPE
public static boolean USE_ACCELERATOR
public static boolean FORCE_ACCELERATOR
public static boolean SYNCHRONIZE_GPU
public static boolean EAGER_CUDA_FREE
public static boolean _suppressPrint2Stdout
public static boolean USE_LOCAL_SPARK_CONFIG
public static boolean _activeAM
public static boolean VALIDATOR_IGNORE_ISSUES
public static String _uuid
public static String getUUID()
public static void setUUID(String uuid)
uuid
- master UUID to set on all nodespublic static boolean suppressPrint2Stdout()
public static void setActiveAM()
public static boolean isActiveAM()
public static void main(String[] args) throws IOException
args
- command-line argumentsIOException
- if an IOException occurspublic static boolean executeScript(org.apache.hadoop.conf.Configuration conf, String[] args)
conf
- Hadoop configurationargs
- argumentsprotected static String readDMLScript(boolean isFile, String scriptOrFilename) throws IOException
isFile
- Whether the string argument is a path to a file or the script itselfscriptOrFilename
- script or filenameIOException
- if errorpublic static void setGlobalFlags(org.apache.sysml.conf.DMLConfig dmlconf)
dmlconf
- user provided configurationpublic static void initHadoopExecution(org.apache.sysml.conf.DMLConfig config) throws IOException, org.apache.sysml.parser.ParseException, DMLRuntimeException
IOException
org.apache.sysml.parser.ParseException
DMLRuntimeException
public static void cleanupHadoopExecution(org.apache.sysml.conf.DMLConfig config) throws IOException, org.apache.sysml.parser.ParseException
IOException
org.apache.sysml.parser.ParseException
Copyright © 2018 The Apache Software Foundation. All rights reserved.