hwloc: Disable OpenCL (#2854)

* hwloc: Disable OpenCL

* hwloc: Convert `install` to `configure_args`
This commit is contained in:
Erik Schnetter 2017-03-11 21:59:06 -05:00 committed by Adam J. Stewart
parent 41a3957540
commit 02db630985

View file

@ -53,3 +53,9 @@ class Hwloc(AutotoolsPackage):
def url_for_version(self, version): def url_for_version(self, version):
return "http://www.open-mpi.org/software/hwloc/v%s/downloads/hwloc-%s.tar.gz" % (version.up_to(2), version) return "http://www.open-mpi.org/software/hwloc/v%s/downloads/hwloc-%s.tar.gz" % (version.up_to(2), version)
def configure_args(self):
# Disable OpenCL, since hwloc might pick up an OpenCL library
# at build time that is then not found at run time
# (Alternatively, we could require OpenCL as dependency.)
return ["--disable-opencl"]