berkeleygw: force openmp propagation on some providers of blas / ffw-api (#26918)
This commit is contained in:
parent
dfcd5d4c81
commit
1e90160d68
1 changed files with 8 additions and 7 deletions
|
@ -14,6 +14,8 @@ class Berkeleygw(MakefilePackage):
|
||||||
|
|
||||||
homepage = "https://berkeleygw.org"
|
homepage = "https://berkeleygw.org"
|
||||||
|
|
||||||
|
maintainers = ['migueldiascosta']
|
||||||
|
|
||||||
version('3.0.1',
|
version('3.0.1',
|
||||||
'7d8c2cc1ee679afb48efbdd676689d4d537226b50e13a049dbcb052aaaf3654f',
|
'7d8c2cc1ee679afb48efbdd676689d4d537226b50e13a049dbcb052aaaf3654f',
|
||||||
url='https://berkeley.box.com/shared/static/m1dgnhiemo47lhxczrn6si71bwxoxor8.gz',
|
url='https://berkeley.box.com/shared/static/m1dgnhiemo47lhxczrn6si71bwxoxor8.gz',
|
||||||
|
@ -67,13 +69,12 @@ class Berkeleygw(MakefilePackage):
|
||||||
msg='elpa is a parallel library and needs MPI support'
|
msg='elpa is a parallel library and needs MPI support'
|
||||||
)
|
)
|
||||||
|
|
||||||
# the concretizer is selecting non threaded versions of fftw and openblas
|
# Force openmp propagation on some providers of blas / fftw-api
|
||||||
# even though +openmp is set... as a workaround, the conflicts below force
|
with when('+openmp'):
|
||||||
# the user to spec ^fftw+openmp ^openblas threads=openmp
|
depends_on('fftw+openmp', when='^fftw')
|
||||||
# but this may also happen for other providers of fftw and blas...
|
depends_on('amdfftw+openmp', when='^amdfftw')
|
||||||
conflicts('^fftw~openmp', when='+openmp')
|
depends_on('openblas threads=openmp', when='^openblas')
|
||||||
conflicts('^openblas threads=none', when='+openmp')
|
depends_on('amdblis threads=openmp', when='^amdblis')
|
||||||
conflicts('^openblas threads=pthreads', when='+openmp')
|
|
||||||
|
|
||||||
parallel = False
|
parallel = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue