Module sysinfo
Access to system information on machine, which could be Linux, Mac or Windows,
and could be local or remote. In general, the L{REMOTE} and L{LOCAL}
attributes of this module should be used. They contain L{_SysInfo} objects
with information about, respectively, the remote and local host. The
jobcontrol interface is used to determine the remote host - it is pulled from
the HOST argument, and is equivalent to the localhost if no remote host is
requested. Because of the reporting that this module is used for, the remote
host only cares about the FIRST host supplied to the HOST argument.
Contains the L{_SysInfo} class, which determines a variety of system information
and stores it. Information includes: 64/32 bit, OS, mmshare #, and processor
details.
Use like this::
>>> import sysinfo
>>> sysinfo.LOCAL.host
'localhost'
or:
$SCHRODINGER/run python -m schrodinger.test.stu.sysinfo -h
Can be called directly to determine system information for all command line
arguments.
@TODO: Reduce the number of imports.
@TODO: Make this a subclass of schrodinger.job.jobcontrol.Host
@copyright: Schrodinger, Inc. All rights reserved.
|
is_gpgpu_available(minimum_compute_capability=( 3, 5) )
Is a GPGPU (of at least minimum_compute_capability )
available on this machine? |
|
|
|
is_scipy_pff_broken()
PYTHON-3168: some scipy interpolate functions are broken on certain
Darwin platforms. |
|
|
|
|
|
_version = ' $Revision 1.0 $ '
|
|
_PLATFORMS = ( ' Linux-x86_64 ' , ' Linux-x86 ' , ' Windows-x64 ' , ' WIN ...
|
|
LOCAL = platform: Linux-x86...
Information about the localhost in a _SysInfo object.
|
|
REMOTE = platform: Linux-x86...
Information about the first remote host supplied to -HOST in a _SysInfo object.
|
|
__package__ = ' schrodinger.test.stu '
|
is_gpgpu_available(minimum_compute_capability=( 3, 5) )
|
|
Is a GPGPU (of at least minimum_compute_capability )
available on this machine?
- Parameters:
minimum_compute_capability (tuple (int, int)) - (major version, minor version)
|
_PLATFORMS
- Value:
( ' Linux-x86_64 ' ,
' Linux-x86 ' ,
' Windows-x64 ' ,
' WIN32-x86 ' ,
' Darwin-x86_64 ' )
|
|
LOCAL
Information about the localhost in a _SysInfo object.
- Value:
platform: Linux-x86_64
os version: CentOS release 6.6 (Final)
mmshare version: 37008
release: 2017-1
processor: 64 bit, Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz
SCHRODINGER: /scr/buildbot/savedbuilds/NB/2017-1/build-123
|
|
REMOTE
Information about the first remote host supplied to -HOST in a _SysInfo object.
- Value:
platform: Linux-x86_64
os version: CentOS release 6.6 (Final)
mmshare version: 37008
release: 2017-1
processor: 64 bit, Intel(R) Xeon(R) CPU E5-2697 v2 @ 2.70GHz
SCHRODINGER: /scr/buildbot/savedbuilds/NB/2017-1/build-123
|
|