diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2017-11-25 19:40:12 +0100 |
---|---|---|
committer | Christoph Junghans <christoph.junghans@gmail.com> | 2017-11-25 11:40:12 -0700 |
commit | ed685b0262c51ca30ce1da69dcc1ee4e141f6f52 (patch) | |
tree | 95f137cf99485ca377ec5f34ee2901f7a09f9f35 | |
parent | 86e771bdb36d1e21c67747735cecf92a8e6f0425 (diff) | |
download | spack-ed685b0262c51ca30ce1da69dcc1ee4e141f6f52.tar.gz spack-ed685b0262c51ca30ce1da69dcc1ee4e141f6f52.tar.bz2 spack-ed685b0262c51ca30ce1da69dcc1ee4e141f6f52.tar.xz spack-ed685b0262c51ca30ce1da69dcc1ee4e141f6f52.zip |
gearshifft: enable OpenCL (#6441)
With pocl builds fixed, we can now also use the OpenCL
implementations in gearshifft :)
-rw-r--r-- | var/spack/repos/builtin/packages/gearshifft/package.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/var/spack/repos/builtin/packages/gearshifft/package.py b/var/spack/repos/builtin/packages/gearshifft/package.py index 8b6f5c8a31..a2c3942347 100644 --- a/var/spack/repos/builtin/packages/gearshifft/package.py +++ b/var/spack/repos/builtin/packages/gearshifft/package.py @@ -35,8 +35,8 @@ class Gearshifft(CMakePackage): variant('cufft', default=True, description='Compile gearshifft_cufft') - # variant('clfft', default=True, - # description='Compile gearshifft_clfft') + variant('clfft', default=True, + description='Compile gearshifft_clfft') variant('fftw', default=True, description='Compile gearshifft_fftw') variant('openmp', default=True, @@ -48,8 +48,8 @@ class Gearshifft(CMakePackage): depends_on('cmake@2.8.0:', type='build') depends_on('boost@1.56.0:') depends_on('cuda@8.0:', when='+cufft') - # depends_on('opencl@1.2:', when='+clfft') - # depends_on('clfft@2.12.0:', when='+clfft') + depends_on('opencl@1.2:', when='+clfft') + depends_on('clfft@2.12.0:', when='+clfft') depends_on('fftw@3.3.4:~mpi~openmp', when='+fftw~openmp') depends_on('fftw@3.3.4:~mpi+openmp', when='+fftw+openmp') @@ -67,8 +67,8 @@ class Gearshifft(CMakePackage): '-DGEARSHIFFT_FFTW_OPENMP:BOOL={0}'.format(( 'ON' if '+openmp' in spec else 'OFF')), '-DGEARSHIFFT_CUFFT:BOOL={0}'.format(( - 'ON' if '+cufft' in spec else 'OFF')) - # '-DGEARSHIFFT_CLFFT:BOOL={0}'.format(( - # 'ON' if '+clfft' in spec else 'OFF')) + 'ON' if '+cufft' in spec else 'OFF')), + '-DGEARSHIFFT_CLFFT:BOOL={0}'.format(( + 'ON' if '+clfft' in spec else 'OFF')) ]) return args |