Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added easy site configuration to choose virtual package implementations #473

Closed
wants to merge 2 commits into from

Conversation

citibeth
Copy link
Member

@citibeth citibeth commented Mar 2, 2016

Added a simple way to configure a site to use a particular choice for virtual packages, while maintainig backwards compatibility. It may be used by putting in spack/init.py, for example:

 choose_hints = {'mpi' : 'openmpi'}
 from spack.concretize import DefaultConcretizer
 concretizer = DefaultConcretizer(choose_hints=choose_hints)

This produces the following result:

$ spack spec netcdf

Concretized
------------------------------
  netcdf@4.4.0%gcc@4.9.3~fortran~hdf4+mpi=linux-x86_64
      ^curl@7.46.0%gcc@4.9.3=linux-x86_64
          ^zlib@1.2.8%gcc@4.9.3=linux-x86_64
      ^hdf5@1.8.16%gcc@4.9.3~cxx~debug+fortran+mpi+shared~szip~threadsafe+unsupported=linux-x86_64
          ^openmpi@1.10.2%gcc@4.9.3~psm~tm~verbs=linux-x86_64
              ^hwloc@1.11.2%gcc@4.9.3=linux-x86_64
                  ^libpciaccess@0.13.4%gcc@4.9.3=linux-x86_64
                      ^libtool@2.4.6%gcc@4.9.3=linux-x86_64

on branches efischer/160301-ChooseHints, origin/efischer/160301-ChooseHints
branches efischer/160301-ChooseHints, origin/efischer/160301-ChooseHints

Elizabeth F added 2 commits March 1, 2016 23:36
… virtual packages, while maintainig backwards compatibility. It may be used by putting in spack/__init__.py, for example:

     choose_hints = {'mpi' : 'openmpi'}
     from spack.concretize import DefaultConcretizer
     concretizer = DefaultConcretizer(choose_hints=choose_hints)

This produces the following result:

    $ spack spec netcdf

    Concretized
    ------------------------------
      netcdf@4.4.0%gcc@4.9.3~fortran~hdf4+mpi=linux-x86_64
          ^curl@7.46.0%gcc@4.9.3=linux-x86_64
              ^zlib@1.2.8%gcc@4.9.3=linux-x86_64
          ^hdf5@1.8.16%gcc@4.9.3~cxx~debug+fortran+mpi+shared~szip~threadsafe+unsupported=linux-x86_64
              ^openmpi@1.10.2%gcc@4.9.3~psm~tm~verbs=linux-x86_64
                  ^hwloc@1.11.2%gcc@4.9.3=linux-x86_64
                      ^libpciaccess@0.13.4%gcc@4.9.3=linux-x86_64
                          ^libtool@2.4.6%gcc@4.9.3=linux-x86_64
@tgamblin
Copy link
Member

tgamblin commented Mar 2, 2016

This one is a good idea -- I am actually going to be merging #120 tomorrow, which includes a more detailed form of concretization preferences. Can you look at that one and see if it will do what you need? One nice thing about it is that the prefs go in a config file, not in __init__.py

@citibeth
Copy link
Member Author

citibeth commented Mar 2, 2016

I agree, #120 looks like it's heading in the right direction.

@citibeth citibeth closed this Mar 2, 2016
@citibeth citibeth deleted the efischer/160301-ChooseHints branch March 2, 2016 23:38
matz-e added a commit to matz-e/spack that referenced this pull request Apr 27, 2020
In upstream since April, should fix some MODULEPATH issues.
climbfuji pushed a commit to climbfuji/spack that referenced this pull request Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants