commit: 8d0ba00c09c570d1cffbcb59883e48282030f4af Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Jul 8 11:42:21 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Jul 8 11:43:01 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d0ba00c
dev-libs/pocl: add CUDA dep, use cuda.eclass I'm not sure if need to specify CUDA_TOOLKIT_ROOT_DIR with this or not (or what the right way to get it is). I can't check CUDA on this machine either, although I have another I can on. Closes: https://bugs.gentoo.org/919271 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/pocl/pocl-6.0.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dev-libs/pocl/pocl-6.0.ebuild b/dev-libs/pocl/pocl-6.0.ebuild index f88860b92181..c16b713bd7c3 100644 --- a/dev-libs/pocl/pocl-6.0.ebuild +++ b/dev-libs/pocl/pocl-6.0.ebuild @@ -4,7 +4,7 @@ EAPI=8 LLVM_COMPAT=( {15..18} ) -inherit cmake llvm-r1 +inherit cmake cuda llvm-r1 DESCRIPTION="Portable Computing Language (an implementation of OpenCL)" HOMEPAGE="http://portablecl.org https://github.com/pocl/pocl" @@ -35,6 +35,7 @@ RDEPEND=" dev-libs/libltdl virtual/opencl debug? ( dev-util/lttng-ust:= ) + cuda? ( dev-util/nvidia-cuda-toolkit:= ) hwloc? ( sys-apps/hwloc:=[cuda?] ) " DEPEND="${RDEPEND}" @@ -43,6 +44,11 @@ BDEPEND=" virtual/pkgconfig " +src_prepare() { + use cuda && cuda_src_prepare + cmake_src_prepare +} + src_configure() { local host_cpu_variants="generic"
