Updated gromacs for 2021.rc1. Updated GMX_GPU values (#20797)
This commit is contained in:
parent
ddf022d308
commit
cc006a7847
1 changed files with 17 additions and 4 deletions
|
@ -23,7 +23,8 @@ class Gromacs(CMakePackage):
|
||||||
maintainers = ['junghans', 'marvinbernhardt']
|
maintainers = ['junghans', 'marvinbernhardt']
|
||||||
|
|
||||||
version('master', branch='master')
|
version('master', branch='master')
|
||||||
version('2020.5', sha256='7b6aff647f7c8ee1bf12204d02cef7c55f44402a73195bd5f42cf11850616478')
|
version('2021-rc1', sha256='baab9f9c7a659f0777f0ff06866e88685a4b06d22c0f431f5688a9a559f0a1e1')
|
||||||
|
version('2020.5', sha256='7b6aff647f7c8ee1bf12204d02cef7c55f44402a73195bd5f42cf11850616478', preferred=True)
|
||||||
version('2020.4', sha256='5519690321b5500c7951aaf53ff624042c3edd1a5f5d6dd1f2d802a3ecdbf4e6')
|
version('2020.4', sha256='5519690321b5500c7951aaf53ff624042c3edd1a5f5d6dd1f2d802a3ecdbf4e6')
|
||||||
version('2020.3', sha256='903183691132db14e55b011305db4b6f4901cc4912d2c56c131edfef18cc92a9')
|
version('2020.3', sha256='903183691132db14e55b011305db4b6f4901cc4912d2c56c131edfef18cc92a9')
|
||||||
version('2020.2', sha256='7465e4cd616359d84489d919ec9e4b1aaf51f0a4296e693c249e83411b7bd2f3')
|
version('2020.2', sha256='7465e4cd616359d84489d919ec9e4b1aaf51f0a4296e693c249e83411b7bd2f3')
|
||||||
|
@ -61,6 +62,7 @@ class Gromacs(CMakePackage):
|
||||||
variant('plumed', default=False, description='Enable PLUMED support')
|
variant('plumed', default=False, description='Enable PLUMED support')
|
||||||
variant('cuda', default=False, description='Enable CUDA support')
|
variant('cuda', default=False, description='Enable CUDA support')
|
||||||
variant('opencl', default=False, description='Enable OpenCL support')
|
variant('opencl', default=False, description='Enable OpenCL support')
|
||||||
|
variant('sycl', default=False, description='Enable SYCL support')
|
||||||
variant('nosuffix', default=False, description='Disable default suffixes')
|
variant('nosuffix', default=False, description='Disable default suffixes')
|
||||||
variant('build_type', default='RelWithDebInfo',
|
variant('build_type', default='RelWithDebInfo',
|
||||||
description='The build type to build',
|
description='The build type to build',
|
||||||
|
@ -100,6 +102,7 @@ class Gromacs(CMakePackage):
|
||||||
depends_on('cmake@3.13.0:3.99.99', type='build', when='@master')
|
depends_on('cmake@3.13.0:3.99.99', type='build', when='@master')
|
||||||
depends_on('cmake@3.13.0:3.99.99', type='build', when='%fj')
|
depends_on('cmake@3.13.0:3.99.99', type='build', when='%fj')
|
||||||
depends_on('cuda', when='+cuda')
|
depends_on('cuda', when='+cuda')
|
||||||
|
depends_on('sycl', when='+sycl')
|
||||||
depends_on('lapack', when='+lapack')
|
depends_on('lapack', when='+lapack')
|
||||||
depends_on('blas', when='+blas')
|
depends_on('blas', when='+blas')
|
||||||
|
|
||||||
|
@ -140,6 +143,16 @@ def cmake_args(self):
|
||||||
else:
|
else:
|
||||||
options.append('-DGMX_HWLOC:BOOL=OFF')
|
options.append('-DGMX_HWLOC:BOOL=OFF')
|
||||||
|
|
||||||
|
if self.version >= Version('2021'):
|
||||||
|
if '+cuda' in self.spec:
|
||||||
|
options.append('-DGMX_GPU:STRING=CUDA')
|
||||||
|
elif '+opencl' in self.spec:
|
||||||
|
options.append('-DGMX_GPU:STRING=OpenCL')
|
||||||
|
elif '+sycl' in self.spec:
|
||||||
|
options.append('-DGMX_GPU:STRING=SYCL')
|
||||||
|
else:
|
||||||
|
options.append('-DGMX_GPU:STRING=OFF')
|
||||||
|
else:
|
||||||
if '+cuda' in self.spec or '+opencl' in self.spec:
|
if '+cuda' in self.spec or '+opencl' in self.spec:
|
||||||
options.append('-DGMX_GPU:BOOL=ON')
|
options.append('-DGMX_GPU:BOOL=ON')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue