forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
2b89879
commit 6ab9a2e
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ spack: | |
tcl: | ||
whitelist: | ||
- asciitoh5 | ||
- hpctm-1459 | ||
- model-neocortex | ||
- nest | ||
- neurodamus-core | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |