Skip to content

Commit

Permalink
sys-libs/libomp: Add hwloc support
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Sep 29, 2016
1 parent c5d27ec commit de0ea1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sys-libs/libomp/libomp-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ EGIT_REPO_URI="http://llvm.org/git/openmp.git
LICENSE="UoI-NCSA"
SLOT="0"
KEYWORDS=""
IUSE="test"
IUSE="hwloc test"

RDEPEND="hwloc? ( sys-apps/hwloc:0= )"
# tests:
# - dev-python/lit provides the test runner
# - sys-devel/llvm provide test utils (e.g. FileCheck)
# - sys-devel/clang provides the compiler to run tests
DEPEND="dev-lang/perl
DEPEND="${RDEPEND}
dev-lang/perl
test? (
$(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]')
sys-devel/llvm
Expand All @@ -43,6 +45,7 @@ multilib_src_configure() {
local libdir="$(get_libdir)"
local mycmakeargs=(
-DLIBOMP_LIBDIR_SUFFIX="${libdir#lib}"
-DLIBOMP_USE_HWLOC=$(usex hwloc)
# do not install libgomp.so & libiomp5.so aliases
-DLIBOMP_INSTALL_ALIASES=OFF
# disable unnecessary hack copying stuff back to srcdir
Expand Down
3 changes: 3 additions & 0 deletions sys-libs/libomp/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
<maintainer type="project">
<email>[email protected]</email>
</maintainer>
<use>
<flag name='hwloc'>Enable CPU affinity support via hwloc</flag>
</use>
<longdescription>The OpenMP subproject of LLVM is intended to contain all of the components required to build an executing OpenMP program that are outside the compiler itself.</longdescription>
</pkgmetadata>

0 comments on commit de0ea1f

Please sign in to comment.