qthreads: Convert to AutoTools package (#4176)
This commit is contained in:
parent
0e02f99323
commit
44440d023d
@ -25,7 +25,7 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Qthreads(Package):
|
class Qthreads(AutotoolsPackage):
|
||||||
"""The qthreads API is designed to make using large numbers of
|
"""The qthreads API is designed to make using large numbers of
|
||||||
threads convenient and easy, and to allow portable access to
|
threads convenient and easy, and to allow portable access to
|
||||||
threading constructs used in massively parallel shared memory
|
threading constructs used in massively parallel shared memory
|
||||||
@ -48,10 +48,10 @@ class Qthreads(Package):
|
|||||||
|
|
||||||
depends_on("hwloc")
|
depends_on("hwloc")
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def configure_args(self):
|
||||||
configure("--prefix=%s" % prefix,
|
spec = self.spec
|
||||||
"--enable-guard-pages",
|
args = [
|
||||||
"--with-topology=hwloc",
|
"--enable-guard-pages",
|
||||||
"--with-hwloc=%s" % spec["hwloc"].prefix)
|
"--with-topology=hwloc",
|
||||||
make()
|
"--with-hwloc=%s" % spec["hwloc"].prefix]
|
||||||
make("install")
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user