Package schrodinger :: Package application :: Package desmond :: Module gui :: Class DesmondGuiConfigDialog
[hide private]
[frames] | no frames]

Class DesmondGuiConfigDialog

ui.qt.config_dialog.ConfigDialog --+
                                   |
                                  DesmondGuiConfigDialog
Known Subclasses:

This Config Dialog supports enumerating GPGPU's and showing them to the user. GPUs are selected automatically.

Instance Methods [hide private]
 
__init__(self, parent, title='', jobname='', checkcommand=None, multi_gpgpu_allowed=True, **kw)
See class docstring.
 
addAutoGpuCbToLayout(self, layout=None, count=None)
 
validateNumProcs(self, silent=False)
See ConfigDialog.validateNumProcs docstring.
 
validate(self)
Checks the panel to make sure settings are valid.
 
getHosts(self, ncpus=True, excludeGPGPUs=False)
Returns list of host entries from appropriate schrodinger.hosts file, with parenthetical entry of the number of available processors (if 'ncpus' is True).
 
getHostType(self)
 
isGPUHost(self)
 
isCPUHost(self)
 
createGPGPUTable(self, multi_gpgpu_allowed)
 
addGPGPUTableToLayout(self, t)
This can be overridden to place the gpgputable somewhere else in the dialog.
 
onHostMenuChanged(self, index)
 
setupGPGPUTable(self, host=None)
After the regular GPU table setup, customize the state of checkbox and table
 
getSettings(self, extra_kws=None)
Return dialog state by saving the state of the checkbox and then calling the base class
 
applySettings(self, settings)
See parent class docstring
 
setupHostLayout(self)
Setup the host layout, including hostlist/table and numbers of cpus (including cpus3).
 
addGPGPUGroupToLayout(self, layout=None, count=None, add_autogpu=True)

Inherited from ui.qt.config_dialog.ConfigDialog: activate, cpus3Edited, currentHost, getTotalOpenMPCPUs, savePressed, setupHostCombo, showHelp, startPressed, updateOpenMPInfo, updateOpenMPLabel, updateQueueResources, validateAndAccept, validateNumCpus, validateNumGpus, validateNumOpenMP, warning

Inherited from ui.qt.config_dialog.ConfigDialog (private): _applySetting, _queueMemoryFixup, _queueWalltimeFixup, _selectComboText, _setupOpenMPWidgets, _setupQueueWidgets, _stripProcs, _updateQArgs, _validateNumProcs

Class Methods [hide private]

Inherited from ui.qt.config_dialog.ConfigDialog: getGPGPUs

Inherited from ui.qt.config_dialog.ConfigDialog (private): _getLocalGPGPUs, _getRemoteGPGPUs

Class Variables [hide private]

Inherited from ui.qt.config_dialog.ConfigDialog: CANCEL, CPU_UNIT_LABEL, GPU_UNIT_LABEL, HELP, SAVE, START

Method Details [hide private]

__init__(self, parent, title='', jobname='', checkcommand=None, multi_gpgpu_allowed=True, **kw)
(Constructor)

 

See class docstring. Raises an Exception if the disposition specified as the default is not recognized.

If pre_close_command is specified, it will be run when the user presses the Start button. The dialog is only closed if that function returns 0.

Overrides: ui.qt.config_dialog.ConfigDialog.__init__
(inherited documentation)

validateNumProcs(self, silent=False)

 

See ConfigDialog.validateNumProcs docstring.

Parameters:
  • menu - The menu specifying the host selection to be validated
  • numfield - The widget specifying the requested # of processors
  • silent - suppresses warning dialogs when set to True
Overrides: ui.qt.config_dialog.ConfigDialog.validateNumProcs

validate(self)

 

Checks the panel to make sure settings are valid. Return False if any validation test fails, otherwise return True.

Overrides: ui.qt.config_dialog.ConfigDialog.validate
(inherited documentation)

getHosts(self, ncpus=True, excludeGPGPUs=False)

 

Returns list of host entries from appropriate schrodinger.hosts file, with parenthetical entry of the number of available processors (if 'ncpus' is True). If excludeGPGPUs is True, hosts with GPGPUs will be excluded from the list

Overrides: ui.qt.config_dialog.ConfigDialog.getHosts
(inherited documentation)

getSettings(self, extra_kws=None)

 

Return dialog state by saving the state of the checkbox and then calling the base class

Overrides: ui.qt.config_dialog.ConfigDialog.getSettings

applySettings(self, settings)

 

See parent class docstring

Parameters:
  • settings - saved dialog settings
Overrides: ui.qt.config_dialog.ConfigDialog.applySettings

setupHostLayout(self)

 

Setup the host layout, including hostlist/table and numbers of cpus (including cpus3).

Overrides: ui.qt.config_dialog.ConfigDialog.setupHostLayout
(inherited documentation)