# Copyright (c) 2017, Lawrence Livermore National Security, LLC. Produced at
# the Lawrence Livermore National Laboratory. LLNL-CODE-734707. All Rights
# reserved. See files LICENSE and NOTICE for details.
#
# This file is part of CEED, a collection of benchmarks, miniapps, software
# libraries and APIs for efficient high-order finite element and spectral
# element discretizations for exascale applications. For more information and
# source code availability see http://github.com/ceed.
#
# The CEED research is supported by the Exascale Computing Project 17-SC-20-SC,
# a collaborative effort of two U.S. Department of Energy organizations (Office
# of Science and the National Nuclear Security Administration) responsible for
# the planning and preparation of a capable exascale ecosystem, including
# software, applications, hardware, advanced system engineering and early
# testbed platforms, in support of the nation's exascale computing imperative.
#
# By default, the Spack-based CEED installation will build all required packages
# from scratch, which can take a long time. The file ~/.spack/packages.yaml, or
# ~/.spack/<platform>/packages.yaml allows you to list packages already
# installed on your system for Spack to use instead of compiling them itself.
#
# This is an example of a packages.yaml file for the Titan machine at OLCF,
# arch=cray-CNL-interlagos.

packages:
    all:
        compiler: [cce/8.6.4]
        providers:
            mpi: [mpich]
    mpich:
        modules:
            mpich@7.6.3%cce@8.6.4 arch=cray-CNL-interlagos: cray-mpich
        buildable: False

    cmake:
        paths:
            cmake@3.9.0%cce@8.6.4: /autofs/nccs-svm1_sw/titan/.swci/0-login/opt/spack/20170612/linux-suse_linux11-x86_64/gcc-4.3.4/cmake-3.9.0-owxiriblogovogl5zbrg45ulm3ln34cx/bin
        buildable: False
    libx11:
        paths:
            libx11@system: /usr
        version: [system]
        buildable: False
    libxt:
        paths:
            libxt@system: /usr
        version: [system]
        buildable: False
    python:
        modules:
            python@2.7.9%cce@8.6.4 arch=cray-CNL-interlagos: python
        buildable: False
    zlib:
        paths:
            zlib@1.2.17: /usr/lib64
        buildable: False

    # Not needed for CEED
    autoconf:
        modules:
            autoconf@2.69%cce@8.6.4 arch=cray-CNL-interlagos: autoconf
        buildable: False
    automake:
        modules:
            automake@1.14%cce@8.6.4 arch=cray-CNL-interlagos: automake/1.14
        buildable: False
    boost:
        modules:
            boost@1.57.0%cce@8.6.4 arch=cray-CNL-interlagos: boost
        buildable: False
    curl:
        paths:
            curl@7.50.3: /autofs/nccs-svm1_sw/titan/.swci/0-login/opt/spack/20170612/linux-suse_linux11-x86_64/gcc-5.3.0/curl-7.50.3-jf6srof6abdrlr6yhanx7yykq65e3rbf/bin/
        buildable: False
    libpciaccess:
        paths:
            libpciaccess@0.10.8: /usr/lib64
        buildable: False
    libtool:
        paths:
            libtool@2.2.6: /usr/
        buildable: False
    m4:
        modules:
            m4@1.4.16%cce@8.6.4 arch=cray-CNL-interlagos: m4
        buildable: False
    openssl:
        paths:
            openssl@0.9.8h%cce@8.6.4 arch=cray-CNL-interlagos: /usr
        buildable: False
    pkgconf:
        paths:
            pkgconfig@0.28: /usr/
        buildable: False
    xz:
        paths:
            xz@5.0.3: /usr/
        buildable: False
