public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/
Date: Mon,  8 Jul 2024 11:43:27 +0000 (UTC)	[thread overview]
Message-ID: <1720438981.8d0ba00c09c570d1cffbcb59883e48282030f4af.sam@gentoo> (raw)

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"
 


             reply	other threads:[~2024-07-08 11:43 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-08 11:43 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-20 17:21 [gentoo-commits] repo/gentoo:master commit in: dev-libs/pocl/ Patrick Lauer
2024-07-15  1:39 Sam James
2024-07-15  0:20 Sam James
2024-07-08 11:39 Sam James
2024-01-07 11:38 Michał Górny
2023-09-27 13:29 Arthur Zamarin
2023-09-27  7:21 Sam James
2023-08-26  3:51 Sam James
2023-02-27  0:20 Sam James
2023-02-23 20:14 Arthur Zamarin
2023-01-21  6:53 Sam James
2022-12-10  4:48 Sam James
2022-08-08  6:08 Sam James
2022-07-26  4:49 Sam James
2022-07-26  4:49 Sam James
2022-07-24  1:07 Sam James
2022-07-20  5:10 Sam James
2022-04-17 16:44 Sam James
2022-01-03  8:02 Sam James
2022-01-03  7:41 Sam James
2021-10-29 22:44 Sam James
2021-10-13  1:12 Sam James
2021-09-23  6:38 Sam James
2021-09-23  6:36 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1720438981.8d0ba00c09c570d1cffbcb59883e48282030f4af.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox