Commit graph

1570 commits

Author SHA1 Message Date
Mike Nolta
e403576cf9 new package: cfitsio 2015-12-19 18:38:23 -05:00
Mike Nolta
527154e6df fix env module sys_type on non-LLNL systems 2015-12-19 16:34:24 -05:00
Mike Nolta
429e15c4a6 spack python: add -c option
Allows passing program in as a string. Example:

    $ spack python -c 'print 2+3'
    5

Also imports spack module by default into the environment.
2015-12-19 16:32:17 -05:00
Gregory Lee
df5dc1c9bb Merge pull request #253 from LLNL/bugfix/244-uninstall-errors
Bugfix/244 uninstall errors
2015-12-19 08:06:36 -08:00
Gregory L. Lee
a62f590653 Merge branch 'develop' of https://github.com/llnl/spack into develop 2015-12-19 07:44:12 -08:00
Gregory L. Lee
8dd1f3ffa5 added mrnet 5.0.1 2015-12-19 07:43:34 -08:00
Todd Gamblin
7cc4d88726 Fix #254: libtool & distutils want certain compiler names.
This changes the compiler wrappers so that they are called by the same
name as the wrapped compiler.  Many builds make assumptions about
compiler names, and we need the spack compilers to be recognizable so
that build systems will get their flags right.

This adds per-compiler subdirectories to lib/spack/spack/env directory
that contain symlinks to cc for the C, C++, F77, and F90
compilers. The build now sets CC, CXX, F77, and F90 to point to these
links instead of to the generically named cc, c++, f77, and f90
wrappers.
2015-12-19 02:06:47 -08:00
Todd Gamblin
5f9a61616b Merge pull request #252 from JohnWestlund/develop
remove possible trailing slash in _sp_prefix or _sp_share_dir
2015-12-18 22:31:18 -08:00
Todd Gamblin
52e3364efa Fix #244: errors on uninstall
- Extension logic didn't take conditional deps into account.

- Extension methods now check for whether the extnesion is
  in the extendee map AND whether the dependency is actually present
  in the spec yet.
2015-12-18 22:24:35 -08:00
Todd Gamblin
b7e926eef6 minor formatting. 2015-12-18 22:24:22 -08:00
Todd Gamblin
ce8bd20944 Fix import error. 2015-12-18 22:23:51 -08:00
John Westlund
3e1ba6cc24 remove possible trailing slash in _sp_prefix or _sp_share_dir 2015-12-18 21:28:44 -08:00
Todd Gamblin
abd3d3946d Format to 80 char width. 2015-12-18 19:23:45 -08:00
alalazo
f3837dd686 tau : removed direct otf2 support 2015-12-18 16:15:30 +01:00
alalazo
dfbf1b2205 Merge branch 'develop' of https://github.com/alalazo/spack into packages/tau 2015-12-18 13:00:43 +01:00
alalazo
8dc32aeedb Improved tau build and added optional dependencies 2015-12-18 12:58:29 +01:00
Todd Gamblin
3198522a7f Merge pull request #236 from nolta/cmake-enable-ssl
cmake: enable ssl, for https downloads
2015-12-17 23:03:31 -08:00
Todd Gamblin
a173324069 Merge pull request #205 from trws/shell-arg-handling-fix
fix for the shell arg handling issues
2015-12-17 23:01:46 -08:00
Todd Gamblin
ffd1d95806 Merge pull request #250 from davidbeckingsale/features/lmod
Added Lmod package
2015-12-17 22:37:46 -08:00
David Beckingsale
f91e1ae83f Added Lmod package 2015-12-17 15:26:47 -08:00
Todd Gamblin
4d982f5aca Merge pull request #86 from jgalarowicz/develop
Add support for Krell Institute related products.
2015-12-17 12:35:30 -08:00
Jim Galarowicz
c02cbaecd8 Change back the previous boost change and change the mrnet variant name to lwthreads. 2015-12-17 07:41:49 -08:00
Todd Gamblin
6b6a82c147 Merge pull request #246 from LLNL/features/245-pdb-debug
added option to enable pdb debug
2015-12-16 16:08:09 -08:00
Gregory L. Lee
107c0dd1a8 added option to enable pdb debug 2015-12-16 15:54:15 -08:00
Todd Gamblin
85c02dbe7b Merge pull request #167 from mathstuf/hdf5-fix-mpi-dependency
Hdf5 fix mpi dependency
2015-12-16 12:03:22 -08:00
Gregory Lee
9cab88071b Merge pull request #239 from LLNL/bugfix/238-db-specs-not-concrete
Fix #238: Database specs need to be concrete when read in as well.
2015-12-16 11:37:51 -08:00
Todd Gamblin
9ac4c730fb Merge pull request #241 from epfl-scitas/packages/gnuplot
gnuplot : added package
2015-12-16 11:37:26 -08:00
Todd Gamblin
09b6e8e804 Merge pull request #242 from epfl-scitas/packages/gsl
gsl : added package
2015-12-16 11:36:09 -08:00
Todd Gamblin
5b665226a2 Merge pull request #243 from nolta/patch-2
minor comment tweak in modules.py
2015-12-16 11:33:56 -08:00
Mike Nolta
82aa366adf minor comment tweak in modules.py 2015-12-16 11:43:07 -05:00
alalazo
cc9266e56c gsl : added package 2015-12-16 12:45:58 +01:00
Massimiliano Culpo
d5018e77a3 gnuplot : modifications to build on RHLE 6 2015-12-16 09:32:48 +01:00
Todd Gamblin
2f9ee88408 Fix #238: Database specs need to be concrete when read in as well. 2015-12-15 17:15:37 -08:00
Mike Nolta
917fb328bb cmake: enable ssl, for https downloads
By default cmake builds its own curl, without SSL support. This
patch enables SSL when building cmake, fixing the following error:

  error: downloading 'https://...' failed

    status_code: 1
    status_string: "Unsupported protocol"
    log: Protocol "https" not supported or disabled in libcurl
2015-12-15 12:39:30 -05:00
alalazo
0a0cd4b9d3 gnuplot : added package 2015-12-15 16:29:36 +01:00
Todd Gamblin
dc3b54a681 Merge pull request #233 from LLNL/bugfix/206-value-error
Fix #206: need to make deps AND root concrete when read in.
2015-12-14 21:17:10 -08:00
Todd Gamblin
6e074a196a Fix #206: need to make deps AND root concrete when read in. 2015-12-14 21:06:32 -08:00
Todd Gamblin
3d39d035c1 Merge pull request #232 from LLNL/bugfix/package-cache-217
Bugfix/package cache 217
2015-12-14 19:54:57 -08:00
Nicolas Richart
ed7db8e489 adding external dependencies + variants for mpi, shared and compression 2015-12-14 21:59:40 +01:00
Todd Gamblin
26b3d15ea0 Merge pull request #229 from epfl-scitas/packages/fftw
fftw : added package
2015-12-14 10:12:22 -08:00
alalazo
1bfb16592b fftw : added package 2015-12-14 16:31:02 +01:00
Jim Galarowicz
8df4fd9e94 Fix build of krell tools to use spack with minimal impact on rest of spack packages. 2015-12-13 17:13:34 -08:00
Jim Galarowicz
0fc83ba999 Fix merge conflict with papi package. 2015-12-11 17:23:54 -08:00
Todd Gamblin
afbd0e77d0 Make internal hash dep sort order match external one. 2015-12-11 16:47:34 -08:00
Todd Gamblin
3dd6cbc556 Fix #217: update spec_dag test for new _cmp_key. 2015-12-11 13:07:20 -08:00
Todd Gamblin
6ee2eb21dd Fix #217: Use MUCH faster hashing, reduce number of DAG copies.
This changes the hash algorithm so that it does much less object
allocation and copying, and so that it is correct.

The old version of `_cmp_key()` would call `sorted_deps`, which would
call `flat_dependencies` to get a list of dependencies so that it
could sort them in alphabetical order.  This isn't necessary in the
`_cmp_key()`, and in fact we want more DAG structure than that to be
included in the `_cmp_key()`.

The new version constructs a tuple without copying the Spec DAG, and
the tuple contains hashes of sub-DAGs that are computed recursively
in-place.  This is way faster than the previous algorithm and reduces
the numebr of copies significantly. It is also a correct DAG hash.

Example timing and copy counts for the different hashing algorithms
we've tried:

Original (wrong) Spec hash:
```
106,170 copies
real    0m5.024s
user    0m4.949s
sys     0m0.104s
```

Spec hash using YAML `dag_hash()`:
```
3,794 copies
real    0m5.024s
user    0m4.949s
sys     0m0.104s

New no-copy, no-YAML hash:
```
3,594 copies
real    0m2.543s
user    0m2.435s
sys     0m0.104s
```

So now we have a hash that is correct AND faster.

The remaining ~3k copies happen mostly during concretization, and as
all packages are initially loaded.  I believe this is because Spack
currently has to load all packages to figure out virtual dependency
information; it could also be becasue there ar a lot of lookups of
partial specs in concretize.  I can investigate this further.
2015-12-11 12:40:27 -08:00
Todd Gamblin
7526a89463 Fix #217: Make package cache use DAG hash instead of sorted deps.
- Gets rid of last vestige of old-style specs.
- Uses new hashing for lookup
2015-12-11 02:17:17 -08:00
Tom Scogland
281a869ef6 fix path resolution for mirror packages, especially with dependency fetching 2015-12-10 09:24:01 -08:00
Ben Boeckel
6f978af77b hdf5: update dependents to declare MPI support 2015-12-10 11:53:40 -05:00
Ben Boeckel
79a641ccf1 paraview: update hdf5 comment 2015-12-10 11:51:54 -05:00