Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 681806 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-libs/libomp/libomp-9.0.0.ebuild (-1 / +10 lines)
Lines 4-10 Link Here
4
EAPI=7
4
EAPI=7
5
5
6
PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
6
PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
7
inherit cmake-multilib linux-info llvm.org multiprocessing python-any-r1
7
inherit cmake-multilib linux-info llvm.org llvm multiprocessing python-any-r1
8
8
9
DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
9
DESCRIPTION="OpenMP runtime library for LLVM/clang compiler"
10
HOMEPAGE="https://openmp.llvm.org"
10
HOMEPAGE="https://openmp.llvm.org"
Lines 67-74 Link Here
67
}
67
}
68
68
69
multilib_src_configure() {
69
multilib_src_configure() {
70
	local llvm_prefix=$(get_llvm_prefix -b)
70
	local libdir="$(get_libdir)"
71
	local libdir="$(get_libdir)"
71
	local mycmakeargs=(
72
	local mycmakeargs=(
73
		-DCMAKE_INSTALL_PREFIX="${llvm_prefix}"
72
		-DOPENMP_LIBDIR_SUFFIX="${libdir#lib}"
74
		-DOPENMP_LIBDIR_SUFFIX="${libdir#lib}"
73
75
74
		-DLIBOMP_USE_HWLOC=$(usex hwloc)
76
		-DLIBOMP_USE_HWLOC=$(usex hwloc)
Lines 81-86 Link Here
81
		# disable unnecessary hack copying stuff back to srcdir
83
		# disable unnecessary hack copying stuff back to srcdir
82
		-DLIBOMP_COPY_EXPORTS=OFF
84
		-DLIBOMP_COPY_EXPORTS=OFF
83
	)
85
	)
86
	if use cuda; then
87
		export CC="${llvm_prefix}/bin/clang"
88
		export CXX="${llvm_prefix}/bin/clang++"
89
		mycmakeargs+=(
90
			-DLIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES=35,60,70
91
		)
92
	fi
84
	use offload && mycmakeargs+=(
93
	use offload && mycmakeargs+=(
85
		# this is non-fatal and libomp checks for CUDA conditionally
94
		# this is non-fatal and libomp checks for CUDA conditionally
86
		# to ABI, so we can just ignore passing the wrong value
95
		# to ABI, so we can just ignore passing the wrong value

Return to bug 681806