GithubHelp home page GithubHelp logo

fluiddyn / spack-packages Goto Github PK

View Code? Open in Web Editor NEW
0.0 4.0 1.0 25 KB

A repository of spack packages for FluidDyn

License: GNU Lesser General Public License v2.1

Python 100.00%
spack packages

spack-packages's Introduction

spack-packages

Build Status

A repository of spack packages for FluidDyn

Assuming spack is already setup, to add this repo:

  git clone https://github.com/fluiddyn/spack-packages.git
  spack repo add spack-packages

This will add a new repository with the namespace fluiddyn.

Spack cheatsheet

First install Spack

  git clone https://github.com/spack/spack.git

Set the .bashrc or similar with the path to where you cloned spack.

  export SPACK_ROOT=$HOME/spack
  . $SPACK_ROOT/share/spack/setup-env.sh

or atleast add $SPACK_ROOT/bin to the $PATH environment variable.

Read more on how to get started with Spack. Here are some examples of useful spack commands::

  # List and try to detect compilers 
  spack compilers
  spack compiler find

  # Configure system-wide installed packages that you would like to use
  spack config edit packages

  # Integrate with or install environment-modules / lmod / dotkit
  spack bootstrap

  # To enforce different options, check and install
  spack spec fftw%gcc+openmp cflags="-O3"
  spack install fftw%gcc+openmp cflags="-O3"

  # Clean temporary builds
  spack clean

Configuration example

# ~/.spack/packages.yml

packages:
  openmpi:
    paths:
      openmpi: /usr/
  python:
    paths:
      [email protected]: /usr/
    buildable: False
  zlib:
    paths:
      zlib: /usr/
  automake:
    paths:
      automake: /usr/
  libtool:
    paths:
      libtool: /usr/
  autoconf:
    paths:
      autoconf: /usr/
  tcl:
    paths:
      tcl: /usr/

Installation examples

In ArchLinux

spack install fftw+openmp+pfft_patches
spack install pfft ldflags="-L/usr/lib/openmpi" ^fftw/y4cx47m
spack install p3dfft ^fftw/y4cx47m

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.