diff options
author | Tracy-Pantleo <91685320+Tracy-Pantleo@users.noreply.github.com> | 2021-11-19 20:09:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-19 22:09:56 -0500 |
commit | 49b0952371566c3b57702d2c65d278e39eb96918 (patch) | |
tree | 6103c1b9de7ed8c4ad5edbe3151f983de0eda612 /var/spack/repos/builtin/packages/portage/package.py | |
parent | e47fa05eb88e70beb2b9738966ac152b77154f1f (diff) | |
download | spack-49b0952371566c3b57702d2c65d278e39eb96918.tar.gz spack-49b0952371566c3b57702d2c65d278e39eb96918.tar.bz2 spack-49b0952371566c3b57702d2c65d278e39eb96918.tar.xz spack-49b0952371566c3b57702d2c65d278e39eb96918.zip |
portage, tangram, wonton: update dependencies (#26886)
* tangram/wonton spack
* portage spack update
* wonton spack updated
* tangram spack updated
* white space removed
* Update package.py
* Update package.py
* Update package.py
* Update package.py
portage spack upstream
* Update package.py
for loop test
* Update package.py
style errors
* Update package.py
* tangram
* Update package.py
* Update package.py
* Update package.py
* Update package.py
* Update package.py
edits
* Update package.py
* Update package.py
remove @master
* Update package.py
remove @master
* Update var/spack/repos/builtin/packages/portage/package.py
Co-authored-by: Seth R. Johnson <johnsonsr@ornl.gov>
* Update var/spack/repos/builtin/packages/wonton/package.py
Co-authored-by: Seth R. Johnson <johnsonsr@ornl.gov>
* Update package.py
* Update package.py
* Update package.py
* Update package.py
Co-authored-by: Tracy Nicole Pantleo <tpantleo@varan.lanl.gov>
Co-authored-by: Tracy Nicole Pantleo - 361537 <tpantleo@darwin-fe1.lanl.gov>
Co-authored-by: Seth R. Johnson <johnsonsr@ornl.gov>
Diffstat (limited to 'var/spack/repos/builtin/packages/portage/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/portage/package.py | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/var/spack/repos/builtin/packages/portage/package.py b/var/spack/repos/builtin/packages/portage/package.py index 331e4aed48..3ec7cca307 100644 --- a/var/spack/repos/builtin/packages/portage/package.py +++ b/var/spack/repos/builtin/packages/portage/package.py @@ -25,7 +25,6 @@ class Portage(CMakePackage): variant('mpi', default=True, description='Support MPI') variant('tangram', default=False, description='Use Tangram interface reconstruction package') variant('jali', default=False, description='Include support for Jali mesh framework') - variant('flecsisp', default=False, description='Include support for FleCSI mesh framework') variant('thrust', default=False, description='Enable on-node parallelism using NVidia Thrust library') variant('kokkos', default=False, description='Enable on-node or device parallelism with Kokkos') variant('openmp', default=False, description="Enable on-node parallelism using OpenMP") @@ -34,23 +33,23 @@ class Portage(CMakePackage): depends_on("cmake@3.13:", type='build') depends_on('mpi', when='+mpi') + depends_on('kokkos', when='+kokkos') + depends_on('thrust', when='+thrust') + depends_on('jali', when='+jali') depends_on('tangram', when='+tangram') - depends_on('tangram+mpi', when='+tangram+mpi') - depends_on('tangram+jali', when='+tangram+jali') - depends_on('tangram+flecsisp', when='+tangram+flecsisp') - depends_on('tangram+thrust', when='+tangram+thrust') - depends_on('tangram+kokkos', when='+tangram+kokkos') - depends_on('tangram+cuda', when='+tangram+cuda') + + for _variant in ['mpi', 'jali', 'openmp', 'thrust', 'kokkos', 'cuda']: + depends_on('tangram+' + _variant, when='+tangram+' + _variant) + depends_on('tangram~' + _variant, when='+tangram~' + _variant) depends_on('wonton') - depends_on('wonton+mpi', when='+mpi') - depends_on('wonton+jali', when='+jali') - depends_on('wonton+flecsisp', when='+flecsisp') - depends_on('wonton+thrust', when='+thrust') - depends_on('wonton+kokkos', when='+kokkos') - depends_on('wonton+openmp', when='+openmp') - depends_on('wonton+cuda', when='+cuda') + # Wonton depends array + wonton_variant = ['mpi', 'jali', 'openmp', 'thrust', 'kokkos', 'cuda'] + + for _variant in wonton_variant: + depends_on('wonton+' + _variant, when='+' + _variant) + depends_on('wonton~' + _variant, when='~' + _variant) # Jali needs MPI conflicts('+jali ~mpi') @@ -84,7 +83,7 @@ class Portage(CMakePackage): else: options.append('-DPORTAGE_ENABLE_Jali=OFF') - if '+flecsi' in self.spec: + if '+flecsisp' in self.spec: options.append('-DPORTAGE_ENABLE_FleCSI=ON') else: options.append('-DPORTAGE_ENABLE_FleCSI=OFF') @@ -103,3 +102,8 @@ class Portage(CMakePackage): options.append('-DENABLE_APP_TESTS=OFF') return options + + def check(self): + if self.run_tests: + with working_dir(self.build_directory): + make("test") |