...
- A class passed as wrapper arguments
- Tree (of classes) describing job settings
- ToolNameJobSettings class:
- batch_job - class ToolNameBatchJob:
- queue
- ???
- debug - class ToolNameDebug
- debugger - TotalView/gdb
- mode - attach/standalone
- mpi - class ToolNameMPI
- mpi parameters - TBD
- ???
- open_mp - class ToolNameOpenMP
- openMP parameters - TBD
- ???
- sandbox
- path to sandbox
- sandbox 'lifetime'
- batch_job - class ToolNameBatchJob:
Wrapper outcome
Code Block |
---|
class ToolNameJobSettings :
def __init__(self):
self.batch_job = ToolNameBatchJob()
self.debug = ToolNameDebug()
self.mpi = ToolNameMPI()
self.open_mp = ToolNameOpenMP()
self.sandbox = ToolNameSandbox()
self.????? #any other info needed?
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
class ToolNameBatchJob :
def __init__(self):
self.queue =
self.TBD
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
class ToolNameDebug :
def __init__(self):
self.debugger #TotalView/gdb
self.mode #attach/standalone
self.TBD
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
class ToolNameMPI :
def __init__(self):
self.TBD
self.debug_switch
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
class ToolNameOpenMP :
def __init__(self):
self.TBD
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
class ToolNameSandbox :
def __init__(self):
self.path
self.lifetime
self.TBD
|
Wrapper outcome
- To be discussed - PREFERRED: OUT arguments - wrapper will update fields of <ActorName>Arguments class
- Returned values - packed within a class:
- autogenerated
- a part of wrapper package
Open points
- Programming conventions (PEP 8?)
- Incompatibility with existing Python actors!
- Only IN and OUT arguments (no INOUT arguments)
- Arrays as an inout of user method- only "dynamic" - i.e. of variable size
- Wrapper results:
- OUT arguments - wrapper will update fields of <ActorName>Arguments classReturned
- values - packed within a classINCOMPATIBILITY
- Diagnostic info
- Info returned from user method
- status flag
- user defined message
- 'Q: can it be mandatory in user sbrt?
- Info returned from user method
- Sandbox:
- Do we need this feature?
- Alternative library:
- Do we need this feature?
...