Package schrodinger :: Package ui :: Package qt :: Module appframework :: Class GPGPUConfigDialog
[hide private]
[frames] | no frames]

Class GPGPUConfigDialog

ConfigDialog --+
               |
              GPGPUConfigDialog
Known Subclasses:

This Config Dialog supports enumerating GPGPU's and allowing the user to select which GPGPU(s) they'd like to use.

Instance Methods [hide private]
 
__init__(self, parent, title='', jobname='', checkcommand=None, multi_gpgpu_allowed=False, **kw)
See class 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)
 
checkGPGPUSelection(self)
Base method for checking whether a user has selected any GPUs.
 
addGPGPUTableToLayout(self, t)
This can be overridden to place the gpgputable somewhere else in the dialog.
 
onHostMenuChanged(self, index)
 
setupGPGPUTable(self, host=None)
 
getCheckedGPGPUIDs(self)
This should be called after the panel returns successful.
 
setCheckedGPGPUIDs(self, idlist)
 
getSettings(self, extra_kws=None)
 
applySettings(self, settings)
Set dialog state using previously-saved parameters

Inherited from ConfigDialog: activate, cpus3Edited, currentHost, getTotalOpenMPCPUs, savePressed, setupHostCombo, setupHostLayout, showHelp, startPressed, updateOpenMPInfo, updateOpenMPLabel, updateQueueResources, validateAndAccept, validateNumCpus, validateNumGpus, validateNumOpenMP, validateNumProcs, warning

Class Methods [hide private]

Inherited from ConfigDialog: getGPGPUs

Inherited from ConfigDialog (private): _getLocalGPGPUs, _getRemoteGPGPUs

Class Variables [hide private]
  no_gpgpu_warning = 'At least one GPU must be selected.'
  local_no_gpgpu_warning = 'No GPU selected on local host; using...

Inherited from 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=False, **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: ConfigDialog.__init__
(inherited documentation)

validate(self)

 

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

Overrides: 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: ConfigDialog.getHosts
(inherited documentation)

getSettings(self, extra_kws=None)

 
Overrides: ConfigDialog.getSettings

applySettings(self, settings)

 

Set dialog state using previously-saved parameters

Parameters:
  • settings - saved dialog settings
Overrides: ConfigDialog.applySettings
(inherited documentation)

Class Variable Details [hide private]

local_no_gpgpu_warning

Value:
'No GPU selected on local host; using CPU.'