Code Monkey home page Code Monkey logo

hep-spack's Introduction

Spack package repo for HEP software packaging

This holds a set of Spack packages for common HEP software. It relies on Spack and the builtin Spack packages, some of which are overridden by this repo.

Getting started

Initial setup like:

cd /path/to/big/disk
git clone https://github.com/LLNL/spack.git
cd spack/var/spack/repos
git clone https://github.com/HEP-SF/hep-spack.git
cd -
./spack/bin/spack compiler add /usr/bin/gcc
./spack/bin/spack repo add spack/var/spack/repos/hep-spack

To not have to type a full path to spack and to gain some other shell-level features do

$ source spack/share/spack/setup-env.sh

This is assumed below.

Some Exercises

Install ROOT

$ spack info root
$ spack install root

Setup environment

If you have Environment Modules installed:

$ spack load root
$ root
   --------------------------------------------------------------------------
  | Welcome to ROOT 6.07/02                              http://root.cern.ch |
  |                                             (c) 1995-2014, The ROOT Team |
  | Built for linuxx8664gcc                                                  |
  | From heads/master@v6-07-01-ROOTaaS-1-123-gb5924cd, Dec 18 2015, 11:21:36 |
  | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'               |
   --------------------------------------------------------------------------

Create Geant4 packaging

$ spack create -r /path/to/big/disk/hep-spack -N hsf -n geant4 http://geant4.cern.ch/support/source/geant4.10.01.p03.tar.gz

Your $EDITOR will open. Close the file to continue. Later, you locate the file manually or do:

$ spack edit geant4
$ spack install geant4

This fails first time failing to download Xerces-C:

$ spack versions xerces-c
==> Safe versions (already checksummed):
  3.1.2
==> Remote versions (not yet checksummed):
  256  5  3.1.3  1  c
$ spack checksum [email protected]
...
How many would you like to checksum? (default is 5, q to abort) 3
...
      version('3.1.3', '70320ab0e3269e47d978a6ca0c0e1e2d')
$ spack edit xerces-c

Paste that version line into the xerces-c package.

$ spack install geant4
...
==> Successfully installed geant4.
  Fetch: 0.00s.  Build: 11m 51.38s.  Total: 11m 51.38s.

Now this picks up the newer Xerces-C 3.1.3, builds it and starts building Geant4.

hep-spack's People

Contributors

gartung avatar jlingema avatar hegner avatar brettviren avatar bcouturi avatar drbenmorgan avatar kwierman avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.