starpu: add papi and blocking variants (#33580)
This commit is contained in:
parent
c772b662c9
commit
b89f6226f8
@ -69,6 +69,8 @@ class Starpu(AutotoolsPackage):
|
|||||||
variant("simgrid", default=False, description="Enable SimGrid support")
|
variant("simgrid", default=False, description="Enable SimGrid support")
|
||||||
variant("simgridmc", default=False, description="Enable SimGrid model checker support")
|
variant("simgridmc", default=False, description="Enable SimGrid model checker support")
|
||||||
variant("examples", default=True, description="Enable Examples")
|
variant("examples", default=True, description="Enable Examples")
|
||||||
|
variant("papi", default=False, description="Enable PAPI support", when="@master:")
|
||||||
|
variant("blocking", default=False, description="Enable blocking drivers support")
|
||||||
|
|
||||||
depends_on("pkgconfig", type="build")
|
depends_on("pkgconfig", type="build")
|
||||||
depends_on("autoconf", type="build")
|
depends_on("autoconf", type="build")
|
||||||
@ -84,11 +86,14 @@ class Starpu(AutotoolsPackage):
|
|||||||
depends_on("simgrid", when="+simgrid")
|
depends_on("simgrid", when="+simgrid")
|
||||||
depends_on("simgrid+smpi", when="+simgrid+mpi")
|
depends_on("simgrid+smpi", when="+simgrid+mpi")
|
||||||
depends_on("simgrid+mc", when="+simgridmc")
|
depends_on("simgrid+mc", when="+simgridmc")
|
||||||
|
depends_on("papi", when="+papi")
|
||||||
|
|
||||||
conflicts(
|
conflicts(
|
||||||
"+shared", when="+mpi+simgrid", msg="Simgrid MPI cannot be built with a shared library"
|
"+shared", when="+mpi+simgrid", msg="Simgrid MPI cannot be built with a shared library"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
conflicts("+papi", when="+simgrid")
|
||||||
|
|
||||||
def autoreconf(self, spec, prefix):
|
def autoreconf(self, spec, prefix):
|
||||||
if not os.path.isfile("./configure"):
|
if not os.path.isfile("./configure"):
|
||||||
autogen = Executable("./autogen.sh")
|
autogen = Executable("./autogen.sh")
|
||||||
@ -125,6 +130,8 @@ def configure_args(self):
|
|||||||
"--%s-build-examples" % ("enable" if "+examples" in spec else "disable"),
|
"--%s-build-examples" % ("enable" if "+examples" in spec else "disable"),
|
||||||
"--%s-fortran" % ("enable" if "+fortran" in spec else "disable"),
|
"--%s-fortran" % ("enable" if "+fortran" in spec else "disable"),
|
||||||
"--%s-openmp" % ("enable" if "+openmp" in spec else "disable"),
|
"--%s-openmp" % ("enable" if "+openmp" in spec else "disable"),
|
||||||
|
"--%s-blocking-drivers" % ("enable" if "+blocking" in spec else "disable"),
|
||||||
|
"--%s-papi" % ("enable" if "+papi" in spec else "disable"),
|
||||||
"--%s-opencl"
|
"--%s-opencl"
|
||||||
% ("disable" if "~opencl" in spec or "+simgrid" in spec else "enable"),
|
% ("disable" if "~opencl" in spec or "+simgrid" in spec else "enable"),
|
||||||
"--%s-cuda" % ("disable" if "~cuda" in spec or "+simgrid" in spec else "enable"),
|
"--%s-cuda" % ("disable" if "~cuda" in spec or "+simgrid" in spec else "enable"),
|
||||||
|
Loading…
Reference in New Issue
Block a user