openmp needs to be an option for clang build
This commit is contained in:
parent
c926214640
commit
a588a1fd84
1 changed files with 4 additions and 3 deletions
|
@ -42,7 +42,7 @@ class Fftw(Package):
|
||||||
variant('float', default=True, description='Produces a single precision version of the library')
|
variant('float', default=True, description='Produces a single precision version of the library')
|
||||||
variant('long_double', default=True, description='Produces a long double precision version of the library')
|
variant('long_double', default=True, description='Produces a long double precision version of the library')
|
||||||
variant('quad', default=False, description='Produces a quad precision version of the library (works only with GCC and libquadmath)')
|
variant('quad', default=False, description='Produces a quad precision version of the library (works only with GCC and libquadmath)')
|
||||||
|
variant('openmp', default=True, description="Enable OpenMP support.")
|
||||||
variant('mpi', default=False, description='Activate MPI support')
|
variant('mpi', default=False, description='Activate MPI support')
|
||||||
|
|
||||||
depends_on('mpi', when='+mpi')
|
depends_on('mpi', when='+mpi')
|
||||||
|
@ -52,8 +52,9 @@ class Fftw(Package):
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
options = ['--prefix=%s' % prefix,
|
options = ['--prefix=%s' % prefix,
|
||||||
'--enable-shared',
|
'--enable-shared',
|
||||||
'--enable-threads',
|
'--enable-threads']
|
||||||
'--enable-openmp']
|
if '+openmp' in spec:
|
||||||
|
options.append('--enable-openmp')
|
||||||
if not self.compiler.f77 or not self.compiler.fc:
|
if not self.compiler.f77 or not self.compiler.fc:
|
||||||
options.append("--disable-fortran")
|
options.append("--disable-fortran")
|
||||||
if '+mpi' in spec:
|
if '+mpi' in spec:
|
||||||
|
|
Loading…
Reference in a new issue