Removed references to BlueGene/Q in docs and comments
This commit is contained in:
parent
f128e7de54
commit
1dba0ce81b
@ -695,11 +695,11 @@ Here is an example of a much longer spec than we've seen thus far:
|
|||||||
|
|
||||||
.. code-block:: none
|
.. code-block:: none
|
||||||
|
|
||||||
mpileaks @1.2:1.4 %gcc@4.7.5 +debug -qt arch=bgq_os ^callpath @1.1 %gcc@4.7.2
|
mpileaks @1.2:1.4 %gcc@4.7.5 +debug -qt target=x86_64 ^callpath @1.1 %gcc@4.7.2
|
||||||
|
|
||||||
If provided to ``spack install``, this will install the ``mpileaks``
|
If provided to ``spack install``, this will install the ``mpileaks``
|
||||||
library at some version between ``1.2`` and ``1.4`` (inclusive),
|
library at some version between ``1.2`` and ``1.4`` (inclusive),
|
||||||
built using ``gcc`` at version 4.7.5 for the Blue Gene/Q architecture,
|
built using ``gcc`` at version 4.7.5 for a generic ``x86_64`` architecture,
|
||||||
with debug options enabled, and without Qt support. Additionally, it
|
with debug options enabled, and without Qt support. Additionally, it
|
||||||
says to link it with the ``callpath`` library (which it depends on),
|
says to link it with the ``callpath`` library (which it depends on),
|
||||||
and to build callpath with ``gcc`` 4.7.2. Most specs will not be as
|
and to build callpath with ``gcc`` 4.7.2. Most specs will not be as
|
||||||
|
@ -48,8 +48,8 @@ platform, all on the command line.
|
|||||||
# Add compiler flags using the conventional names
|
# Add compiler flags using the conventional names
|
||||||
$ spack install mpileaks@1.1.2 %gcc@4.7.3 cppflags="-O3 -floop-block"
|
$ spack install mpileaks@1.1.2 %gcc@4.7.3 cppflags="-O3 -floop-block"
|
||||||
|
|
||||||
# Cross-compile for a different architecture with arch=
|
# Cross-compile for a different micro-architecture with target=
|
||||||
$ spack install mpileaks@1.1.2 arch=bgqos_0
|
$ spack install mpileaks@1.1.2 target=icelake
|
||||||
|
|
||||||
Users can specify as many or few options as they care about. Spack
|
Users can specify as many or few options as they care about. Spack
|
||||||
will fill in the unspecified values with sensible defaults. The two listed
|
will fill in the unspecified values with sensible defaults. The two listed
|
||||||
|
@ -22,24 +22,25 @@
|
|||||||
def index_by(objects, *funcs):
|
def index_by(objects, *funcs):
|
||||||
"""Create a hierarchy of dictionaries by splitting the supplied
|
"""Create a hierarchy of dictionaries by splitting the supplied
|
||||||
set of objects on unique values of the supplied functions.
|
set of objects on unique values of the supplied functions.
|
||||||
|
|
||||||
Values are used as keys. For example, suppose you have four
|
Values are used as keys. For example, suppose you have four
|
||||||
objects with attributes that look like this::
|
objects with attributes that look like this::
|
||||||
|
|
||||||
a = Spec(name="boost", compiler="gcc", arch="bgqos_0")
|
a = Spec("boost %gcc target=skylake")
|
||||||
b = Spec(name="mrnet", compiler="intel", arch="chaos_5_x86_64_ib")
|
b = Spec("mrnet %intel target=zen2")
|
||||||
c = Spec(name="libelf", compiler="xlc", arch="bgqos_0")
|
c = Spec("libelf %xlc target=skylake")
|
||||||
d = Spec(name="libdwarf", compiler="intel", arch="chaos_5_x86_64_ib")
|
d = Spec("libdwarf %intel target=zen2")
|
||||||
|
|
||||||
list_of_specs = [a,b,c,d]
|
list_of_specs = [a,b,c,d]
|
||||||
index1 = index_by(list_of_specs, lambda s: s.arch,
|
index1 = index_by(list_of_specs, lambda s: str(s.target),
|
||||||
lambda s: s.compiler)
|
lambda s: s.compiler)
|
||||||
index2 = index_by(list_of_specs, lambda s: s.compiler)
|
index2 = index_by(list_of_specs, lambda s: s.compiler)
|
||||||
|
|
||||||
``index1`` now has two levels of dicts, with lists at the
|
``index1`` now has two levels of dicts, with lists at the
|
||||||
leaves, like this::
|
leaves, like this::
|
||||||
|
|
||||||
{ 'bgqos_0' : { 'gcc' : [a], 'xlc' : [c] },
|
{ 'zen2' : { 'gcc' : [a], 'xlc' : [c] },
|
||||||
'chaos_5_x86_64_ib' : { 'intel' : [b, d] }
|
'skylake' : { 'intel' : [b, d] }
|
||||||
}
|
}
|
||||||
|
|
||||||
And ``index2`` is a single level dictionary of lists that looks
|
And ``index2`` is a single level dictionary of lists that looks
|
||||||
@ -50,7 +51,7 @@ def index_by(objects, *funcs):
|
|||||||
'xlc' : [c]
|
'xlc' : [c]
|
||||||
}
|
}
|
||||||
|
|
||||||
If any elemnts in funcs is a string, it is treated as the name
|
If any elements in funcs is a string, it is treated as the name
|
||||||
of an attribute, and acts like getattr(object, name). So
|
of an attribute, and acts like getattr(object, name). So
|
||||||
shorthand for the above two indexes would be::
|
shorthand for the above two indexes would be::
|
||||||
|
|
||||||
@ -59,9 +60,9 @@ def index_by(objects, *funcs):
|
|||||||
|
|
||||||
You can also index by tuples by passing tuples::
|
You can also index by tuples by passing tuples::
|
||||||
|
|
||||||
index1 = index_by(list_of_specs, ('arch', 'compiler'))
|
index1 = index_by(list_of_specs, ('target', 'compiler'))
|
||||||
|
|
||||||
Keys in the resulting dict will look like ('gcc', 'bgqos_0').
|
Keys in the resulting dict will look like ('gcc', 'skylake').
|
||||||
"""
|
"""
|
||||||
if not funcs:
|
if not funcs:
|
||||||
return objects
|
return objects
|
||||||
|
@ -201,7 +201,7 @@ class Compiler(object):
|
|||||||
fc_names = []
|
fc_names = []
|
||||||
|
|
||||||
# Optional prefix regexes for searching for this type of compiler.
|
# Optional prefix regexes for searching for this type of compiler.
|
||||||
# Prefixes are sometimes used for toolchains, e.g. 'powerpc-bgq-linux-'
|
# Prefixes are sometimes used for toolchains
|
||||||
prefixes = []
|
prefixes = []
|
||||||
|
|
||||||
# Optional suffix regexes for searching for this type of compiler.
|
# Optional suffix regexes for searching for this type of compiler.
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
|
|
||||||
$ spack install mpileaks ^openmpi @1.2:1.4 +debug %intel @12.1 =bgqos_0
|
$ spack install mpileaks ^openmpi @1.2:1.4 +debug %intel @12.1 target=zen
|
||||||
0 1 2 3 4 5 6
|
0 1 2 3 4 5 6
|
||||||
|
|
||||||
The first part of this is the command, 'spack install'. The rest of the
|
The first part of this is the command, 'spack install'. The rest of the
|
||||||
|
Loading…
Reference in New Issue
Block a user