Erik:
Pretty soon here we're going to merge the new architecture features, and I
hope that will give you a way to auto-detect things like this per
platform. We've talked a bit about it in the telcons but basically Matt's
and my idea is this:
- The newarch branch give you three fields: platform, os, and target.
e.g.:
- platform: BG/Q, Cray
- os: rhel6, rhel7, mavericks, yosemite, ubuntu14, etc
- target: haswell, ivybridge, ppc64, etc.
Spack will auto-detect the above stuff based on criteria in the platform
class. For example, on the BG/Q platform, you could auto detect by
noticing /bgsys. You could do something else for a TACC-specific platform.
Now, at the same time Spack has the `packages.yaml` file. Currently
that's either a spack-wide setting in $spack/etc, or it's overridden in
the ~/.spack/packages.yaml file. Neither of these gives you a good way to
export some sensible defaults *and* allow customization.
We are proposing to add a few levels to the configuration, namely:
${spack}/etc/spack/
defaults/ # spack default config (in git repo)
site/ # site-specific customizations (NOT in main spack git, overrides
defaults)
~/.spack/ # user settings (overrides above two options)
So basically now we would ship a default packages.yaml that is versioned
with Spack, but sites can override with their own file that won't get
clobbered by spack's changes. Users can still override both.
Within *each* of those config directories you could put configs like so:
$config_dir
packages.yaml
<platform>/
packages.yaml
...
Where things in <platform> would override packages.yaml per-platform.
That may seem complicated but the idea would be that we could do something
like this:
$spack/etc/spack/
defaults/
stampede/
packages.yaml # this would contain preferred
variants/parameters/overrides for TACC
Obviously you could make that more/less specific -- depends on how general
/opt/ofed is. I think that is actually used on more than just TACC's
systems so it could probably get hoisted up into some higher level
platform file.
So now you can add your variant and say where it is to be preferred. Or
you could set some parameter value in there -- we only have boolean
parameters right now (variants) but may have string-valued ones within the
year, so that is another thing to consider.
Finally, I have talked a bit with massimiliano about adding more support
parameterizing the architecture by network type; this might help as well.
Anyway, I hope that gives you some idea of where I would like to be. We
don't really have a good way to exports "hints" or site knowledge like
this now, but I would *like* to make it so that there are sensible
defaults for different platforms. Managing all the places preferences can
come from is actually pretty tough, so feedback on this idea would be
appreciated.
-Todd
On 4/28/16, 7:33 AM, "
sp...@googlegroups.com on behalf of Erik Schnetter"
>>>>
http://secure-web.cisco.com/1ZK6VGY8-A4fOI2GpL9jlrjI9mOgTY9WPoSVsuVsoHv
>>>>Jvk6-yAueTrA7MTNNthglPHpVdSVUzDJWtSpmTKZcfiFwEhptFhjvX-qf1pcWvsPN3pk8nw
>>>>mv7Rrzv6VnU4zu_q0rcgJ4LRHGeRVuIlMSJx36lCQ-ramLL9IfPLcEf0prOwzaXdbP3Z9Fe
>>>>Zv68e99wOL-ypwhQPwxnQDIToIiGkZcCFDswjbhjkMc5tlVTQHSUrIYuLe8nv5K1PEE8oUG
>>>>wrzoAL1OTZJKbNKeeU9gPcilZ98NHuslxw4amTj9W6lUGh6IIoPhP6FsrNHeYJGBuHokXHF
>>>>YCtUaYv89DldirboXNnm2CmJ3q6YyJ6QG4lHM/http%3A%2F%2Fwww.perimeterinstitu
>>>>
te.ca%2Fpersonal%2Feschnetter%2F
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>>Groups
>>>> "Spack" group.
>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>send an
>>>> email to
spack+un...@googlegroups.com.
>>>> To post to this group, send email to
sp...@googlegroups.com.
>>>> Visit this group at
>>>>
https://secure-web.cisco.com/1XBiZGP2ga_TJp1b8YuIfUC7JOsNMbftDAaHA3A-_u
>>>>733qLbGkTdgTrbLZRki5A1n0NkT4seqzLfvdMqjrYcftjINS4QD2soJQlcIgSDKc1f5e55U
>>>>J20p1cVmAmomTAw_0bEyyUec2FOR2KLOmh94KkFh1QF5HciteOjenniWINSKXIOiDo2RpVQ
>>>>IjIg_mZdYhysSeQIa2lA45vxnS7NV6QZTRa08VfX_IqmIDjbMY7Qw8ATEkoQpa4aaIw-ugP
>>>>uKowQUjCtg6OFX6_8u2dfyGk9HxYkd5CAEOiGkzmpIsCMjATbfFTjt3nDKXmxd7I778auFC
>>>>xyIZh_1_EsHdhc_N2t05ZMKvVYux80tSvhJJm3_tUOgHHfEgRmXtxQfcGqm/https%3A%2F
>>>>%
2Fgroups.google.com%2Fgroup%2Fspack.
>>>> For more options, visit
>>>>
https://secure-web.cisco.com/1wLr272QtnAg_9VqHqbGhd7iIHVaWUV4r6IwIQPQxC
>>>>U2-hMFxjYQfr52r_pHjLg6822aKLbxWTe_FpPDYJ6pGzuXQHMZ3v_uaYQVEcLDpHQYYMhSm
>>>>hDZsa1R8_3TwEk3TdeyA3ONgCHwjTcx7fHSBwsbyTkarNwU8HIiNS-kUHtNl6wFX8G7kitm
>>>>YF6P90xDI_BW0kP3whzj-N-D6lcXF2XEejXY1_Of7T4uhJLaT-GW7jN6oX6Lg4d91pTBFCC
>>>>XbhlzQFzftrUV6nOAHw2nnxa0loca-728hRv-wiDRG58gyGd1oUywIRIqufusptCFA6SQcC
>>>>RK3_u2LyADhlNqdLl3x0YoREDRg4JmW3KHyWjX_815Z9BHt_265r7AI6yXR/https%3A%2F
>>>>%
2Fgroups.google.com%2Fd%2Foptout.
>>>
>>>
>>
>
>
>
>--
>Erik Schnetter <
schn...@gmail.com>
>
http://secure-web.cisco.com/1ZK6VGY8-A4fOI2GpL9jlrjI9mOgTY9WPoSVsuVsoHvJvk
>6-yAueTrA7MTNNthglPHpVdSVUzDJWtSpmTKZcfiFwEhptFhjvX-qf1pcWvsPN3pk8nwmv7Rrz
>v6VnU4zu_q0rcgJ4LRHGeRVuIlMSJx36lCQ-ramLL9IfPLcEf0prOwzaXdbP3Z9FeZv68e99wO
>L-ypwhQPwxnQDIToIiGkZcCFDswjbhjkMc5tlVTQHSUrIYuLe8nv5K1PEE8oUGwrzoAL1OTZJK
>bNKeeU9gPcilZ98NHuslxw4amTj9W6lUGh6IIoPhP6FsrNHeYJGBuHokXHFYCtUaYv89Dldirb
>oXNnm2CmJ3q6YyJ6QG4lHM/http%3A%2F%
2Fwww.perimeterinstitute.ca%2Fpersonal%2
>Feschnetter%2F
>
>--
>You received this message because you are subscribed to the Google Groups
>"Spack" group.
>To unsubscribe from this group and stop receiving emails from it, send an
>email to
spack+un...@googlegroups.com.
>To post to this group, send email to
sp...@googlegroups.com.
>Visit this group at
>
https://secure-web.cisco.com/1XBiZGP2ga_TJp1b8YuIfUC7JOsNMbftDAaHA3A-_u733
>qLbGkTdgTrbLZRki5A1n0NkT4seqzLfvdMqjrYcftjINS4QD2soJQlcIgSDKc1f5e55UJ20p1c
>VmAmomTAw_0bEyyUec2FOR2KLOmh94KkFh1QF5HciteOjenniWINSKXIOiDo2RpVQIjIg_mZdY
>hysSeQIa2lA45vxnS7NV6QZTRa08VfX_IqmIDjbMY7Qw8ATEkoQpa4aaIw-ugPuKowQUjCtg6O
>FX6_8u2dfyGk9HxYkd5CAEOiGkzmpIsCMjATbfFTjt3nDKXmxd7I778auFCxyIZh_1_EsHdhc_
>N2t05ZMKvVYux80tSvhJJm3_tUOgHHfEgRmXtxQfcGqm/https%3A%2F%2Fgroups.google.c
>om%2Fgroup%2Fspack.
>For more options, visit
>
https://secure-web.cisco.com/1wLr272QtnAg_9VqHqbGhd7iIHVaWUV4r6IwIQPQxCU2-
>hMFxjYQfr52r_pHjLg6822aKLbxWTe_FpPDYJ6pGzuXQHMZ3v_uaYQVEcLDpHQYYMhSmhDZsa1
>R8_3TwEk3TdeyA3ONgCHwjTcx7fHSBwsbyTkarNwU8HIiNS-kUHtNl6wFX8G7kitmYF6P90xDI
>_BW0kP3whzj-N-D6lcXF2XEejXY1_Of7T4uhJLaT-GW7jN6oX6Lg4d91pTBFCCXbhlzQFzftrU
>V6nOAHw2nnxa0loca-728hRv-wiDRG58gyGd1oUywIRIqufusptCFA6SQcCRK3_u2LyADhlNqd
>Ll3x0YoREDRg4JmW3KHyWjX_815Z9BHt_265r7AI6yXR/https%3A%2F%2Fgroups.google.c
>om%2Fd%2Foptout.
>