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

Class DesmondGuiConfigDialog

 ui.qt.appframework.ConfigDialog --+    
                                   |    
ui.qt.appframework.GPGPUConfigDialog --+
                                       |
                                      DesmondGuiConfigDialog

MultiGPGPU dialog with Desmond-specific customization - automatic GPU selection

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.
 
checkGPGPUSelection(self)
Checks that GPU selection is taken care of, either manually or automatically.
 
autoGpuToggled(self, checked)
Update dialog state in response to toggling of the auto gpu checkbox
 
setupHostLayout(self)
Setup the host layout, including hostlist/table and numbers of cpus (including cpus3).
 
onGpuTableChanged(self)
 
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
 
addGPGPUGroupToLayout(self, layout=None, count=None, add_autogpu=True)
 
addGPGPUTableToLayout(self, t)
This can be overridden to place the gpgputable somewhere else in the dialog.

Inherited from ui.qt.appframework.GPGPUConfigDialog: createGPGPUTable, getCheckedGPGPUIDs, getHostType, getHosts, isCPUHost, isGPUHost, onHostMenuChanged, setCheckedGPGPUIDs

Inherited from ui.qt.appframework.ConfigDialog: activate, cpus3Edited, currentHost, getTotalMPICPUs, savePressed, setupHostCombo, showHelp, startPressed, updateMPIInfo, updateMPILabel, updateQueueResources, validateAndAccept, validateNumCpus, validateNumGpus, validateNumMPI, warning

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

Class Methods [hide private]

Inherited from ui.qt.appframework.ConfigDialog: getGPGPUs

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

Class Variables [hide private]
  no_gpgpu_warning = 'Enable automatic GPU selection or select a...

Inherited from ui.qt.appframework.GPGPUConfigDialog: local_no_gpgpu_warning

Inherited from ui.qt.appframework.ConfigDialog: CPU_UNIT_LABEL, GPU_UNIT_LABEL

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.appframework.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.appframework.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.appframework.ConfigDialog.validate
(inherited documentation)

checkGPGPUSelection(self)

 

Checks that GPU selection is taken care of, either manually or automatically.

Overrides: ui.qt.appframework.GPGPUConfigDialog.checkGPGPUSelection

setupHostLayout(self)

 

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

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

setupGPGPUTable(self, host=None)

 

After the regular GPU table setup, customize the state of checkbox and table

Overrides: ui.qt.appframework.GPGPUConfigDialog.setupGPGPUTable

getSettings(self, extra_kws=None)

 

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

Overrides: ui.qt.appframework.ConfigDialog.getSettings

applySettings(self, settings)

 

See parent class docstring

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

addGPGPUTableToLayout(self, t)

 

This can be overridden to place the gpgputable somewhere else in the dialog.

Overrides: ui.qt.appframework.GPGPUConfigDialog.addGPGPUTableToLayout
(inherited documentation)

Class Variable Details [hide private]

no_gpgpu_warning

Value:
'Enable automatic GPU selection or select at least ' 'one GPU from the\
 table.'