Functions | |
| def | initializeSALOME () |
| def | SALOMEInitializationNeeded (func) |
| def | loadGraph (xmlFileName) |
| def | patchGraph (proc, squeezeMemory, initPorts, xmlSchema, loadStateXmlFile, reset, display) |
| def | prepareExecution (proc, isStop, dumpErrorFile) |
| def | executeGraph (executor, xmlfilename, proc, dump, finalDump, display, shutdown, CPUMemContainerTimeRes, HTopOfThisProcessFile, HTopTimeRes, HTopOfAllServersFile, HTopOfAllServersTimeRes, DirectoriesToMonitor) |
| def | EntryFromCoarseEntry (entry) |
| def | toDict (args) |
| def | reprAfterArgParsing (args) |
| def | getArgumentParser () |
| def | mainRun (args, xmlFileName) |
| def | parseArgs () |
Variables | |
| string | DisplayEntryInCMD = "--display" |
| string | VerboseEntryInCMD = "--verbose" |
| string | VerboseLevelEntryInCMD = "--verbose-level" |
| string | StopOnErrorEntryInCMD = "--stop-on-error" |
| string | DumpOnErrorEntryInCMD = "--dump-on-error" |
| string | DumpEntryInCMD = "--dump" |
| string | KernelTraceEntryInCMD = "--kerneltrace" |
| string | DumpStateEntryInCMD = "--dump-final" |
| string | LoadStateEntryInCMD = "--load-state" |
| string | SaveXMLSchemaEntryInCMD = "--save-xml-schema" |
| string | ShutdownEntryInCMD = "--shutdown" |
| string | ResetEntryInCMD = "--reset" |
| string | InitPortEntryInCMD = "--init-port" |
| string | DoNotSqueezeEntryInCMD = "--donotsqueeze" |
| string | IOREntryInCMD = "--ior-ns" |
| string | CPUTimeResOfContainerEntryInCMD = "--cpu-mem-container-time-res" |
| string | HTOPFileEntryInCMD = "--htop-of-yacs-engine-process-file" |
| string | HTOPServerFileEntryInCMD = "--htop-of-servers" |
| string | HTOPFileTimeResEntryInCMD = "--htop-of-yacs-engine-process-time-res" |
| string | HTOPServerFileTimeResEntryInCMD = "--htop-of-servers-time-res" |
| string | MonitoringDirsEntryInCMD = "--monitoring-dirs-content" |
| string | MonitoringDirsResEntryInCMD = "--monitoring-dirs-content-res" |
| string | MonitoringDirsTimeResEntryInCMD = "--monitoring-dirs-content-time-res" |
| string | ReplayOnErrorEntryInCMD = "--replay-on-error" |
| string | ReplayDirInCMD = "--replay-dir" |
| string | BigObjDirInCMD = "--bigobj-dir" |
| string | BigObjThresInCMD = "--bigobj-thres" |
| string | CustomOverridesInCMD = "--activate-custom-overrides" |
| string | DisplayKeyInARGS = "display" |
| string | VerboseKeyInARGS = "verbose" |
| string | VerboseLevelKeyInARGS = "verbose_level" |
| string | StopOnErrorKeyInARGS = "stop" |
| string | DumpOnErrorKeyInARGS = "dumpErrorFile" |
| string | DumpKeyInARGS = "dump" |
| string | KernelTraceKeyInARGS = "kerneltrace" |
| string | DumpStateKeyInARGS = "finalDump" |
| string | LoadStateKeyInARGS = "loadState" |
| string | SaveXMLSchemaKeyInARGS = "saveXMLSchema" |
| string | ShutdownKeyInARGS = "shutdown" |
| string | ResetKeyInARGS = "reset" |
| string | InitPortKeyInARGS = "init_port" |
| string | DoNotSqueezeKeyInARGS = "donotsqueeze" |
| string | IORKeyInARGS = "iorNS" |
| string | CPUTimeResOfContainerKeyInARGS = "cpu_mem_container_time_res" |
| string | HTOPFileKeyInARGS = "htop_of_yacs_engine_process_file" |
| string | HTOPServerFileKeyInARGS = "htop_of_servers" |
| string | HTOPFileTimeResKeyInARGS = "htop_of_yacs_engine_process_time_res" |
| string | HTOPServerFileTimeResKeyInARGS = "htop_of_servers_time_res" |
| string | MonitoringDirsInARGS = "monitoring_dirs_content" |
| string | MonitoringDirsResInARGS = "monitoring_dirs_content_res" |
| string | MonitoringDirsTimeResInARGS = "monitoring_dirs_content_time_res" |
| string | ReplayOnErrorEntryInARGS = "replay_on_error" |
| string | ReplayDirInARGS = "replay_dir" |
| string | BigObjDirInARGS = "bigobj_dir" |
| string | BigObjThresInARGS = "bigobj_thres" |
| string | CustomOverridesInARGS = "activate_custom_overrides" |
| list | KeyValnARGS |
| my_runtime_yacs = None | |
| my_ior_ns = None | |
| bool | my_replay_on_error = False |
| string | my_replay_dir = "" |
| args | |
| xmlFileName | |
| _proc | |
| _shutdown | |
| _dumpFile | |
| _lockFile | |
| _dump_thread | |
| def driver_internal.EntryFromCoarseEntry | ( | entry | ) |
Definition at line 338 of file driver_internal.py.
Referenced by parseArgs(), and toDict().
| def driver_internal.executeGraph | ( | executor, | |
| xmlfilename, | |||
| proc, | |||
| dump, | |||
| finalDump, | |||
| display, | |||
| shutdown, | |||
| CPUMemContainerTimeRes, | |||
| HTopOfThisProcessFile, | |||
| HTopTimeRes, | |||
| HTopOfAllServersFile, | |||
| HTopOfAllServersTimeRes, | |||
| DirectoriesToMonitor | |||
| ) |
Args: ----- executor (pilot.ExecutorSwig) : Executor in charge of evaluation. proc ( SALOMERuntime.SalomeProc ) : YACS Proc instance to be evaluated xmlfilename (string) dump (int) : time interval between 2 dump state finalDump ( string ) : filename containing final result of graph, if any. display (int) : shutdown (int) : shutdown level CPUMemContainerTimeRes (int) : time in second between two measures of CPU/Mem in container processes HTopOfThisProcessFile (str) : file name (if not empty) containing the result of measure of current process HTopTimeRes (int) : time in second between two measures of CPU/Mem of current process HTopOfAllServersFile (str) : file name (if not empty) containing the result of measure of all servers HTopOfAllServersTimeRes (int) : time in second between two measures of CPU/Mem of any of server
Definition at line 236 of file driver_internal.py.
Referenced by mainRun().
| def driver_internal.getArgumentParser | ( | ) |
Definition at line 358 of file driver_internal.py.
Referenced by parseArgs().
| def driver_internal.initializeSALOME | ( | ) |
Definition at line 119 of file driver_internal.py.
Referenced by SALOMEInitializationNeeded().
| def driver_internal.loadGraph | ( | xmlFileName | ) |
Args: ----- xmlFileName : XML file containing YACS schema Returns ------- SALOMERuntime.SalomeProc : YACS graph instance
Definition at line 145 of file driver_internal.py.
Referenced by mainRun().
| def driver_internal.mainRun | ( | args, | |
| xmlFileName | |||
| ) |
Args: ----- args (dict) : options for treatment
Definition at line 394 of file driver_internal.py.
References executeGraph(), loadGraph(), patchGraph(), prepareExecution(), and reprAfterArgParsing().
| def driver_internal.parseArgs | ( | ) |
Returns ------- - args (dict) : dictionnary containing all args taken into account. If json, the params in json will override entries - xmlFileName (str) : XML YACS schema
Definition at line 445 of file driver_internal.py.
References EntryFromCoarseEntry(), getArgumentParser(), and toDict().
| def driver_internal.patchGraph | ( | proc, | |
| squeezeMemory, | |||
| initPorts, | |||
| xmlSchema, | |||
| loadStateXmlFile, | |||
| reset, | |||
| display | |||
| ) |
Args: ----- proc ( SALOMERuntime.SalomeProc ) : YACS Proc instance to be evaluated squeezeMemory ( bool ) : squeezememory to be activated initPorts (list<string>) : list of bloc.node.port=value. xmlSchema (string) : loadStateXmlFile (string) : file if any of state to be loaded inside proc reset (int) : display (int) :
Definition at line 161 of file driver_internal.py.
References parse_init_port().
Referenced by mainRun().
| def driver_internal.prepareExecution | ( | proc, | |
| isStop, | |||
| dumpErrorFile | |||
| ) |
Returns ------- pilot.ExecutorSwig : Instance of executor
Definition at line 221 of file driver_internal.py.
Referenced by mainRun().
| def driver_internal.reprAfterArgParsing | ( | args | ) |
Args: ----- args (argparse.Namespace) : instance after parsing
Definition at line 349 of file driver_internal.py.
Referenced by mainRun().
| def driver_internal.SALOMEInitializationNeeded | ( | func | ) |
Definition at line 138 of file driver_internal.py.
References initializeSALOME().
| def driver_internal.toDict | ( | args | ) |
Convert argparse.Namespace to dict
Definition at line 343 of file driver_internal.py.
References EntryFromCoarseEntry().
Referenced by parseArgs().
|
private |
Definition at line 289 of file driver_internal.py.
|
private |
Definition at line 285 of file driver_internal.py.
|
private |
Definition at line 286 of file driver_internal.py.
|
private |
Definition at line 263 of file driver_internal.py.
Referenced by Proc_i.getIds(), YACS::ENGINE::Container.getProc(), YACS::HMI::GuiContext.getProc(), YACS::HMI::GuiExecutor.GuiExecutor(), Proc_i.Proc_i(), YACS::HMI::GuiExecutor.registerStatusObservers(), Proc_i.RunW(), YACS::ENGINE::Container.setProc(), and YACS::HMI::GuiExecutor.updateSchema().
|
private |
Definition at line 264 of file driver_internal.py.
| driver_internal.args |
Definition at line 473 of file driver_internal.py.
Referenced by YACS::parser.error(), xmlParserBase.error(), YACS::ENGINE.evalFuncPyWithNoParams(), YACS::ENGINE::DistributedPythonNode.execute(), YACS::ENGINE::SalomePythonNode.execute(), YACS::ENGINE::PyFuncNode.executeLocal(), YACS::ENGINE::PythonNode.executeRemote(), YACS::ENGINE::PyFuncNode.executeRemote(), YACS::parser.fatal_error(), xmlParserBase.fatal_error(), YACS::ENGINE::Executor.functionForTaskExecution(), YACS::ENGINE::Executor.functionForTaskLoad(), YACS::ENGINE::RuntimeSALOME.init(), YACS::ENGINE::Executor.launchTask(), YACS::ENGINE::Executor.loadParallelTasks(), main(), YACS::ENGINE.PyStdOut_write(), YACS::parser.warning(), and xmlParserBase.warning().
| string driver_internal.BigObjDirInARGS = "bigobj_dir" |
Definition at line 78 of file driver_internal.py.
| string driver_internal.BigObjDirInCMD = "--bigobj-dir" |
Definition at line 49 of file driver_internal.py.
| string driver_internal.BigObjThresInARGS = "bigobj_thres" |
Definition at line 79 of file driver_internal.py.
| string driver_internal.BigObjThresInCMD = "--bigobj-thres" |
Definition at line 50 of file driver_internal.py.
| string driver_internal.CPUTimeResOfContainerEntryInCMD = "--cpu-mem-container-time-res" |
Definition at line 39 of file driver_internal.py.
| string driver_internal.CPUTimeResOfContainerKeyInARGS = "cpu_mem_container_time_res" |
Definition at line 68 of file driver_internal.py.
| string driver_internal.CustomOverridesInARGS = "activate_custom_overrides" |
Definition at line 80 of file driver_internal.py.
| string driver_internal.CustomOverridesInCMD = "--activate-custom-overrides" |
Definition at line 51 of file driver_internal.py.
| string driver_internal.DisplayEntryInCMD = "--display" |
Definition at line 24 of file driver_internal.py.
| string driver_internal.DisplayKeyInARGS = "display" |
Definition at line 53 of file driver_internal.py.
| string driver_internal.DoNotSqueezeEntryInCMD = "--donotsqueeze" |
Definition at line 37 of file driver_internal.py.
| string driver_internal.DoNotSqueezeKeyInARGS = "donotsqueeze" |
Definition at line 66 of file driver_internal.py.
| string driver_internal.DumpEntryInCMD = "--dump" |
Definition at line 29 of file driver_internal.py.
| string driver_internal.DumpKeyInARGS = "dump" |
Definition at line 58 of file driver_internal.py.
| string driver_internal.DumpOnErrorEntryInCMD = "--dump-on-error" |
Definition at line 28 of file driver_internal.py.
| string driver_internal.DumpOnErrorKeyInARGS = "dumpErrorFile" |
Definition at line 57 of file driver_internal.py.
| string driver_internal.DumpStateEntryInCMD = "--dump-final" |
Definition at line 31 of file driver_internal.py.
| string driver_internal.DumpStateKeyInARGS = "finalDump" |
Definition at line 60 of file driver_internal.py.
| string driver_internal.HTOPFileEntryInCMD = "--htop-of-yacs-engine-process-file" |
Definition at line 40 of file driver_internal.py.
| string driver_internal.HTOPFileKeyInARGS = "htop_of_yacs_engine_process_file" |
Definition at line 69 of file driver_internal.py.
| string driver_internal.HTOPFileTimeResEntryInCMD = "--htop-of-yacs-engine-process-time-res" |
Definition at line 42 of file driver_internal.py.
| string driver_internal.HTOPFileTimeResKeyInARGS = "htop_of_yacs_engine_process_time_res" |
Definition at line 71 of file driver_internal.py.
| string driver_internal.HTOPServerFileEntryInCMD = "--htop-of-servers" |
Definition at line 41 of file driver_internal.py.
| string driver_internal.HTOPServerFileKeyInARGS = "htop_of_servers" |
Definition at line 70 of file driver_internal.py.
| string driver_internal.HTOPServerFileTimeResEntryInCMD = "--htop-of-servers-time-res" |
Definition at line 43 of file driver_internal.py.
| string driver_internal.HTOPServerFileTimeResKeyInARGS = "htop_of_servers_time_res" |
Definition at line 72 of file driver_internal.py.
| string driver_internal.InitPortEntryInCMD = "--init-port" |
Definition at line 36 of file driver_internal.py.
| string driver_internal.InitPortKeyInARGS = "init_port" |
Definition at line 65 of file driver_internal.py.
| string driver_internal.IOREntryInCMD = "--ior-ns" |
Definition at line 38 of file driver_internal.py.
| string driver_internal.IORKeyInARGS = "iorNS" |
Definition at line 67 of file driver_internal.py.
| string driver_internal.KernelTraceEntryInCMD = "--kerneltrace" |
Definition at line 30 of file driver_internal.py.
| string driver_internal.KernelTraceKeyInARGS = "kerneltrace" |
Definition at line 59 of file driver_internal.py.
| list driver_internal.KeyValnARGS |
Definition at line 82 of file driver_internal.py.
| string driver_internal.LoadStateEntryInCMD = "--load-state" |
Definition at line 32 of file driver_internal.py.
| string driver_internal.LoadStateKeyInARGS = "loadState" |
Definition at line 61 of file driver_internal.py.
| string driver_internal.MonitoringDirsEntryInCMD = "--monitoring-dirs-content" |
Definition at line 44 of file driver_internal.py.
| string driver_internal.MonitoringDirsInARGS = "monitoring_dirs_content" |
Definition at line 73 of file driver_internal.py.
| string driver_internal.MonitoringDirsResEntryInCMD = "--monitoring-dirs-content-res" |
Definition at line 45 of file driver_internal.py.
| string driver_internal.MonitoringDirsResInARGS = "monitoring_dirs_content_res" |
Definition at line 74 of file driver_internal.py.
| string driver_internal.MonitoringDirsTimeResEntryInCMD = "--monitoring-dirs-content-time-res" |
Definition at line 46 of file driver_internal.py.
| string driver_internal.MonitoringDirsTimeResInARGS = "monitoring_dirs_content_time_res" |
Definition at line 75 of file driver_internal.py.
| driver_internal.my_ior_ns = None |
Definition at line 113 of file driver_internal.py.
| string driver_internal.my_replay_dir = "" |
Definition at line 117 of file driver_internal.py.
| bool driver_internal.my_replay_on_error = False |
Definition at line 115 of file driver_internal.py.
| driver_internal.my_runtime_yacs = None |
Definition at line 111 of file driver_internal.py.
| string driver_internal.ReplayDirInARGS = "replay_dir" |
Definition at line 77 of file driver_internal.py.
| string driver_internal.ReplayDirInCMD = "--replay-dir" |
Definition at line 48 of file driver_internal.py.
| string driver_internal.ReplayOnErrorEntryInARGS = "replay_on_error" |
Definition at line 76 of file driver_internal.py.
| string driver_internal.ReplayOnErrorEntryInCMD = "--replay-on-error" |
Definition at line 47 of file driver_internal.py.
| string driver_internal.ResetEntryInCMD = "--reset" |
Definition at line 35 of file driver_internal.py.
| string driver_internal.ResetKeyInARGS = "reset" |
Definition at line 64 of file driver_internal.py.
| string driver_internal.SaveXMLSchemaEntryInCMD = "--save-xml-schema" |
Definition at line 33 of file driver_internal.py.
| string driver_internal.SaveXMLSchemaKeyInARGS = "saveXMLSchema" |
Definition at line 62 of file driver_internal.py.
| string driver_internal.ShutdownEntryInCMD = "--shutdown" |
Definition at line 34 of file driver_internal.py.
| string driver_internal.ShutdownKeyInARGS = "shutdown" |
Definition at line 63 of file driver_internal.py.
| string driver_internal.StopOnErrorEntryInCMD = "--stop-on-error" |
Definition at line 27 of file driver_internal.py.
| string driver_internal.StopOnErrorKeyInARGS = "stop" |
Definition at line 56 of file driver_internal.py.
| string driver_internal.VerboseEntryInCMD = "--verbose" |
Definition at line 25 of file driver_internal.py.
| string driver_internal.VerboseKeyInARGS = "verbose" |
Definition at line 54 of file driver_internal.py.
| string driver_internal.VerboseLevelEntryInCMD = "--verbose-level" |
Definition at line 26 of file driver_internal.py.
| string driver_internal.VerboseLevelKeyInARGS = "verbose_level" |
Definition at line 55 of file driver_internal.py.
| driver_internal.xmlFileName |
Definition at line 473 of file driver_internal.py.