Merge branch 'features/spackathon' of https://github.com/NERSC/spack into features/spackathon
This commit is contained in:
commit
8c259859ab
@ -27,7 +27,7 @@
|
|||||||
import platform as py_platform
|
import platform as py_platform
|
||||||
import inspect
|
import inspect
|
||||||
|
|
||||||
from llnl.util.lang import memoized, list_modules
|
from llnl.util.lang import memoized, list_modules, key_ordering
|
||||||
from llnl.util.filesystem import join_path
|
from llnl.util.filesystem import join_path
|
||||||
import llnl.util.tty as tty
|
import llnl.util.tty as tty
|
||||||
|
|
||||||
@ -47,6 +47,7 @@ def __init__(self):
|
|||||||
super(NoSysTypeError, self).__init__("Could not determine sys_type for this machine.")
|
super(NoSysTypeError, self).__init__("Could not determine sys_type for this machine.")
|
||||||
|
|
||||||
|
|
||||||
|
@key_ordering
|
||||||
class Target(object):
|
class Target(object):
|
||||||
""" Target is the processor of the host machine. The host machine may have different front-end
|
""" Target is the processor of the host machine. The host machine may have different front-end
|
||||||
and back-end targets, especially if it is a Cray machine. The target will have a name and
|
and back-end targets, especially if it is a Cray machine. The target will have a name and
|
||||||
@ -86,6 +87,10 @@ def from_dict(d):
|
|||||||
# target.architecture = d['architecture']
|
# target.architecture = d['architecture']
|
||||||
return target
|
return target
|
||||||
|
|
||||||
|
|
||||||
|
def _cmp_key(self):
|
||||||
|
return (self.name, self.module_name)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return self.__str__()
|
return self.__str__()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user