From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 598761581C1 for ; Mon, 8 Jul 2024 11:43:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E1D82BC018; Mon, 8 Jul 2024 11:43:30 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 482892BC018 for ; Mon, 8 Jul 2024 11:43:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 791CA34300D for ; Mon, 8 Jul 2024 11:43:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DA6D59E8 for ; Mon, 8 Jul 2024 11:43:27 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1720438981.8d0ba00c09c570d1cffbcb59883e48282030f4af.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/pocl/pocl-6.0.ebuild X-VCS-Directories: dev-libs/pocl/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 8d0ba00c09c570d1cffbcb59883e48282030f4af X-VCS-Branch: master Date: Mon, 8 Jul 2024 11:43:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 81055b31-0d4d-4d5e-affc-f5ae68c93676 X-Archives-Hash: 19a3e73036c665e0accc9fdc6ca3cc0b commit: 8d0ba00c09c570d1cffbcb59883e48282030f4af Author: Sam James gentoo org> AuthorDate: Mon Jul 8 11:42:21 2024 +0000 Commit: Sam James gentoo 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 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"