Commit graph

1050 commits

Author SHA1 Message Date
Todd Gamblin
3f3ceb24c4 Add some comments b/c I didn't understand my own test. 2015-06-07 15:39:40 -07:00
Todd Gamblin
0fc3b58890 SPACK-38: Allow specs to be indexed by virtual dependencies.
- The following now work differently:

      spec['mpi']
      spec['blas']

  This can return a spec for openmpi, mpich, mvapich, etc., EVEN if
  the spec is already concretized.  This means that in a package that
  `depends_on('mpi')`, you can do `spec['mpi']` to see what it was
  concretized to.  This should simplify MPI and BLAS packages.

      'mpi' in spec
      'blas' in spec

  Previously, if the spec had been concretized, these would be `False`
  because there was not a dependency in the DAG with either of these
  names. These will now be `True` even if the spec has been
  concretized.  So, e.g., this will print "YES"

      s = Spec('callpath ^mpich')
      if 'mpi' in spec:
          print "YES"

- Similarly, this will be True:

      Spec('mpich').satisfies('mpi')

- Because of the way virtual dependencies are currently implemented,
  the above required some fiddling around with `package.py` so that it
  would never call `Spec.__contains__` (and result in endless
  recursion).

- This should be fixed by allowing virutal dependnecies to have their
  own package class.
  - This would allow a quicker check for vdeps, without a call to
    `all_packages`.
  - For the time being, `package.py` shouldn't call `__contains__`
2015-06-07 15:36:53 -07:00
Todd Gamblin
0570660d81 Make blas a virtual dependency, default netlib-blas. 2015-06-06 18:23:12 -07:00
Todd Gamblin
26b9592780 Add disablement of cpu throttle check. 2015-06-06 18:19:05 -07:00
Todd Gamblin
8b9dcfe635 Delete lapack/atlas combined package. 2015-06-06 18:18:51 -07:00
Todd Gamblin
5d94864b6c Rename netlib_blas -> netlib-blas 2015-06-06 18:18:44 -07:00
Todd Gamblin
50d7b3df2b Merge branch 'psaravan-fastmath' into features/fastmath
Conflicts:
	var/spack/packages/lapack/package.py
2015-06-06 18:17:59 -07:00
Todd Gamblin
8215c85619 Merge branch 'develop' into features/fastmath 2015-06-06 18:15:52 -07:00
Todd Gamblin
c43b5d670b Remove dummy fastmath package. 2015-06-06 17:48:33 -07:00
Todd Gamblin
b6ad37557f fix up Saravan's petsc install 2015-06-06 17:41:15 -07:00
Todd Gamblin
d266bf0184 Working Hypre, PARPACK. 2015-06-06 17:21:11 -07:00
Todd Gamblin
5294e2b9b9 CGM package working on cab. 2015-06-06 16:56:59 -07:00
Todd Gamblin
c5ab3f4e82 CBLAS package working and patching in spack compilers. 2015-06-06 16:29:37 -07:00
Todd Gamblin
f29fc5822b Working boxlib package. 2015-06-06 16:16:19 -07:00
Todd Gamblin
eb9859ce75 Executables now have a useful __str__ function. 2015-06-06 16:15:52 -07:00
Todd Gamblin
53feb12ea0 Cleanup and consolidate error handling 2015-06-06 15:50:01 -07:00
Todd Gamblin
b9746de52e Working ARPACK package. 2015-06-06 15:26:54 -07:00
Todd Gamblin
03780ea105 Remove autosave files from saravan's PR 2015-06-06 15:26:54 -07:00
Todd Gamblin
422a75e4b8 Clean up arpack build, use the Spack f77 compiler. 2015-06-06 15:26:54 -07:00
Todd Gamblin
5d7a6c0c46 Add FileFilter convenience class to llnl.util.filesystem. 2015-06-06 15:26:48 -07:00
Saravan Pantham
1f0246f970 Updated HDF5 to use MPI. 2015-06-06 15:26:43 -07:00
Saravan Pantham
9d71093500 Updated Zoltan. 2015-06-06 15:26:42 -07:00
Saravan Pantham
fd34f4b119 Added more FASTMath packages. 2015-06-06 15:26:38 -07:00
Saravan Pantham
454d06c25c Removed autosave files from previous commit. 2015-06-06 15:26:37 -07:00
Saravan Pantham
c174fe6199 Fixed BLAS and Lapack installations 2015-06-06 15:26:31 -07:00
Saravan Pantham
d461aa3722 Added Lapack package 2015-06-06 13:06:18 -07:00
Saravan Pantham
a23e1579e3 Added BLAS package 2015-06-06 13:06:17 -07:00
Todd Gamblin
ab31f989db Merge Alfredo's Mitos changes from github with Greg's Python changes. 2015-06-06 12:53:28 -07:00
Gregory L. Lee
96ec75f7fe Merge branch 'develop' of ssh://cz-stash.llnl.gov:7999/scale/spack into develop 2015-06-04 15:49:57 -07:00
Gregory L. Lee
5ac5c021b8 new package versions 2015-06-04 15:49:55 -07:00
Todd Gamblin
0cf9e0698c Merge pull request #50 from alfredo-gimenez/develop
Thanks!
2015-06-03 22:08:22 -07:00
Alfredo Gimenez
dae33a31c0 Dyninst 8.2.1+ dependency for cmake 2015-06-03 22:02:47 -07:00
Alfredo Gimenez
15aee0de1a Mitos updated with new release 2015-06-03 21:58:44 -07:00
Gregory L. Lee
c158012655 Merge branch 'develop' of ssh://cz-stash.llnl.gov:7999/scale/spack into develop 2015-06-03 14:22:10 -07:00
Gregory L. Lee
c4f5a881e6 new Python extensions 2015-06-03 10:08:07 -07:00
Gregory L. Lee
6dffe2ddd1 updated url 2015-06-03 10:07:21 -07:00
Todd Gamblin
be3e8170de Fix #48: Merge branch 'bugfix/mac-metadata' into develop 2015-06-01 10:33:28 -07:00
Todd Gamblin
d19538af07 Fix #48: Ignore hidden files when deciding how to stage.
- Expanding archvies like MAGMA 1.6.2 creates extra hidden files that
  confuse Spack's staging mechanism.

- Added a special case to ignore hidden files when checking whether
  the tarball exploded.
2015-06-01 10:25:58 -07:00
Todd Gamblin
123778dec2 Add -S/--stages option to spack cd/spack location.
- can now change dir to top-level stage
2015-06-01 09:56:35 -07:00
Gregory L. Lee
37aa88ba2a Merge branch 'develop' of ssh://cz-stash.llnl.gov:7999/scale/spack into develop 2015-06-01 08:39:07 -07:00
Gregory L. Lee
74b0a9c059 updated Python extension versions 2015-06-01 08:39:01 -07:00
Gregory L. Lee
83af842a74 fixed cython activation conflict 2015-06-01 08:38:32 -07:00
Todd Gamblin
16c2588635 Fix #46: make(parallel=False) regression.
- Added some tests to make sure this stays in place.
2015-05-31 13:03:30 -07:00
Todd Gamblin
bf6a73fa3e Fix SPACK-69: Merge branch 'features/build-logging' into develop 2015-05-29 17:28:33 -07:00
Todd Gamblin
ea7b65e2f2 SPACK-69: spack install now logs build output to install directory.
- spack install suppresses build output by default.
  - use install -v to show build output on the console too

- package.py uses log_output context to redirect output and log it to a file
  - filters color codes out of output written to file
  - optionally echos to the terminal

- YAML directory layout knows about its build log.
  - can get path to install build log to from directory layout
  - Package.install now copies the build log to $prefix/.spack/build.out

- Error message from failed install execution now includes build log location
2015-05-29 17:22:33 -07:00
Todd Gamblin
92c21d7134 debug instead of info logging in llnl.util.filesystem 2015-05-29 17:21:30 -07:00
Todd Gamblin
0035100186 SPACK-69: Add context manager to fork and log output in a with block. 2015-05-29 17:20:08 -07:00
Todd Gamblin
9b40d93fc2 Add ability to force color mode even if terminal is NOT a tty 2015-05-29 17:19:03 -07:00
Todd Gamblin
ceecd2ce41 Add ability to test whether tty verbose or debug is enabled. 2015-05-29 17:18:33 -07:00
Todd Gamblin
5676cb0dd1 Add spack find -L to show full hashes. 2015-05-28 17:13:57 -07:00