Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 8bfdb54ed154d372dc07dcad27e092ea0b4e6ea7
Author: Sergio <[email protected]>
Date:   Tue Apr 19 14:27:09 2022 +0200

    Add support for version at compile time

commit 6cde2acb840f8522675b73d545e0b94cb6a418fe
Author: Sergio <[email protected]>
Date:   Wed Jan 26 12:10:39 2022 +0100

    Add HPCTM-1459 recipe to new deployment
  • Loading branch information
sergiorg-hpc committed Apr 22, 2022
1 parent 2b89879 commit 6ab9a2e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bluebrain/deployment/environments/applications_hpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ spack:
tcl:
whitelist:
- asciitoh5
- hpctm-1459
- model-neocortex
- nest
- neurodamus-core
Expand Down Expand Up @@ -35,6 +36,7 @@ spack:
- coreneuron%intel+tests+nmodl+sympy
- coreneuron%nvhpc+tests+gpu+openmp
- coreneuron%nvhpc+tests+gpu+openmp+nmodl+sympy
- hpctm-1459
- model-neocortex%intel
- [email protected]
- neurodamus-core~common%intel
Expand Down
32 changes: 32 additions & 0 deletions bluebrain/repo-bluebrain/packages/hpctm-1459/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
##############################################################################
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *


class Hpctm1459(CMakePackage):
"""HPCTM1459"""

homepage = "https://bbpteam.epfl.ch/project/issues/browse/HPCTM-1459"
url = "[email protected]:hpc/personal/hpctm-1459.git"
git = "[email protected]:hpc/personal/hpctm-1459.git"

version('develop', branch='main', submodules=False)
version('1.0.2', tag='1.0.2', submodules=False)
version('1.0.1', tag='1.0.1', submodules=False)
version('1.0', tag='1.0', submodules=False)

variant('tests', default=False, description="Enable GitLab CI tests")

depends_on('cmake', type='build')

def cmake_args(self):
args = ['-DHPCTM1459_ENABLE_TESTS=%s'
% ('ON' if '+tests' in self.spec else 'OFF')]

if self.spec.satisfies('@1.0.3:'):
args.extend(['-DCMAKE_CXX_FLAGS=-DHPCTM1459_VERSION=%s' % self.version])

return args

0 comments on commit 6ab9a2e

Please sign in to comment.