Skip to contentSkip to conversation

opencl-icd-loader: Add RPROVIDES:${PN} = "virtual/opencl-icd"

PATCH In review Zoltán Böszörményi 2 participants 6 messages Mar 9, 2023 – May 8, 2023 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 opencl-icd-loader: Add RPROVIDES:${PN} = "virtual/opencl-icd"

Some programs dlopen libOpenCL.so.1, they use RDEPENDS.

---
 meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb | 1 +
 1 file changed, 1 insertion(+)
meta-oe/recipes-core/opencl/opencl-icd-loader_git.bb +1 -0
index 67437732d..fc04cb55f 100644
@@ -9,6 +9,7 @@ inherit pkgconfig cmake
 DEPENDS += "opencl-headers"
 
 PROVIDES = "virtual/opencl-icd"
+RPROVIDES:${PN} = "virtual/opencl-icd"
 
 S = "${WORKDIR}/git"
 PV = "v2022.01.04+git${SRCPV}"
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/3 ocl-icd: Add PROVIDES and RPROVIDES for virtual/opencl-icd

Some programs dlopen libOpenCL.so.1, they use RDEPENDS. This will allow selecting between ocl-icd and opencl-icd-loader.

---
 meta-oe/recipes-core/opencl/ocl-icd_2.3.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-core/opencl/ocl-icd_2.3.1.bb +2 -0
index 250cb6883..b1980e368 100644
@@ -14,5 +14,7 @@ S = "${WORKDIR}/git"
 inherit autotools
 
 DEPENDS = "ruby-native"
+PROVIDES = "virtual/opencl-icd"
+RPROVIDES:${PN} = "virtual/opencl-icd"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.39.2
#2 lore raw

PATCH 3/3 meta-oe/conf/layer.conf: Add PREFERRED_[R]PROVIDER_virtual/opencl-icd

In reply to Zoltán Böszörményi

Select opencl-icd-loader as the preferred provider for both build and runtime.

---
 meta-oe/conf/layer.conf | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/conf/layer.conf +2 -0
index a1f50879e..aee1fa786 100644
@@ -50,6 +50,8 @@ PREFERRED_RPROVIDER_libdevmapper = "lvm2"
 PREFERRED_PROVIDER_android-tools-conf ?= "android-tools-conf"
 # Configures whether coreutils or uutils-coreutils is used.
 PREFERRED_PROVIDER_coreutils = "coreutils"
+PREFERRED_PROVIDER_virtual/opencl-icd ?= "opencl-icd-loader"
+PREFERRED_RPROVIDER_virtual/opencl-icd ?= "opencl-icd-loader"
 
 SIGGEN_EXCLUDERECIPES_ABISAFE += " \
   fbset-modes \
Signature · 1 line
2.39.2
#3 lore raw

RE: [oe] [meta-oe][PATCH 3/3] meta-oe/conf/layer.conf: Add PREFERRED_[R]PROVIDER_virtual/opencl-icd

Quoted 20 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Zoltan Boszormenyi
Sent: den 9 mars 2023 09:11
To: [email protected]
Cc: Zoltán Böszörményi <[email protected]>
Subject: [oe] [meta-oe][PATCH 3/3] meta-oe/conf/layer.conf: Add PREFERRED_[R]PROVIDER_virtual/opencl-icd

Select opencl-icd-loader as the preferred provider for both build and runtime.

---
 meta-oe/conf/layer.conf | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/conf/layer.conf +0 -0
index a1f50879e..aee1fa786 100644

meta-oe/conf/layer.conf PREFERRED_RPROVIDER_libdevmapper = "lvm2" · line 54

Quoted 5 lines
meta-oe/conf/layer.conf +2 -0
@@ -50,6 +50,8 @@ PREFERRED_RPROVIDER_libdevmapper = "lvm2"
 PREFERRED_PROVIDER_android-tools-conf ?= "android-tools-conf"
 # Configures whether coreutils or uutils-coreutils is used.
 PREFERRED_PROVIDER_coreutils = "coreutils"
+PREFERRED_PROVIDER_virtual/opencl-icd ?= "opencl-icd-loader"
+PREFERRED_RPROVIDER_virtual/opencl-icd ?= "opencl-icd-loader"

There are no runtime dependencies on virtual/opencl-icd in meta-openembedded. Runtime dependencies on virtual/... are also considered wrong as they do not work as expected (they only work as long as you do not try to create a package feed AFAIUI, which is why OE-Core uses VIRTUAL-RUNTIME_... instead). So why do you need to set PREFERRED_RPROVIDER_virtual/opencl-icd (and add the corresponding RPROVIDES:${PN} to ocl-icd and opencl-icd-loader)?

Quoted 5 lines
meta-oe/conf/layer.conf +0 -1
 SIGGEN_EXCLUDERECIPES_ABISAFE += " \
   fbset-modes \
--

2.39.2

//Peter

#4 lore raw

Re: [oe] [meta-oe][PATCH 3/3] meta-oe/conf/layer.conf: Add PREFERRED_[R]PROVIDER_virtual/opencl-icd

2023. 04. 26. 19:29 keltezéssel, Peter Kjellerstedt írta:

Quoted 15 lines
Quoted 15 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Zoltan Boszormenyi
Sent: den 9 mars 2023 09:11
To: [email protected]
Cc: Zoltán Böszörményi <[email protected]>
Subject: [oe] [meta-oe][PATCH 3/3] meta-oe/conf/layer.conf: Add PREFERRED_[R]PROVIDER_virtual/opencl-icd

Select opencl-icd-loader as the preferred provider for both build and runtime.

---
  meta-oe/conf/layer.conf | 2 ++
  1 file changed, 2 insertions(+)
Quoted 16 lines

meta-oe/conf/layer.conf PREFERRED_RPROVIDER_libdevmapper = "lvm2" · line 54

Quoted 10 lines
meta-oe/conf/layer.conf +2 -0
index a1f50879e..aee1fa786 100644
@@ -50,6 +50,8 @@ PREFERRED_RPROVIDER_libdevmapper = "lvm2"
  PREFERRED_PROVIDER_android-tools-conf ?= "android-tools-conf"
  # Configures whether coreutils or uutils-coreutils is used.
  PREFERRED_PROVIDER_coreutils = "coreutils"
+PREFERRED_PROVIDER_virtual/opencl-icd ?= "opencl-icd-loader"
+PREFERRED_RPROVIDER_virtual/opencl-icd ?= "opencl-icd-loader"

There are no runtime dependencies on virtual/opencl-icd in meta-openembedded. Runtime dependencies on virtual/... are also considered wrong as they do not work as expected (they only work as long as you do not try to create a package feed AFAIUI, which is why OE-Core uses VIRTUAL-RUNTIME_... instead). So why do you need to set PREFERRED_RPROVIDER_virtual/opencl-icd (and add the corresponding RPROVIDES:${PN} to ocl-icd and opencl-icd-loader)?

See this mail thread:

https://lists.openembedded.org/g/openembedded-core/topic/97477512#178183

Quoted 7 lines
Quoted 5 lines
meta-oe/conf/layer.conf +0 -1
  SIGGEN_EXCLUDERECIPES_ABISAFE += " \
    fbset-modes \
--

2.39.2

//Peter

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

RE: [oe] [meta-oe][PATCH 3/3] meta-oe/conf/layer.conf: Add PREFERRED_[R]PROVIDER_virtual/opencl-icd

Zoltan: Any comments to my question below?

//Peter

Quoted 47 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Peter Kjellerstedt
Sent: den 26 april 2023 19:30
To: Zoltan Boszormenyi <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [meta-oe][PATCH 3/3] meta-oe/conf/layer.conf: Add PREFERRED_[R]PROVIDER_virtual/opencl-icd

Quoted 20 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Zoltan Boszormenyi
Sent: den 9 mars 2023 09:11
To: [email protected]
Cc: Zoltán Böszörményi <[email protected]>
Subject: [oe] [meta-oe][PATCH 3/3] meta-oe/conf/layer.conf: Add PREFERRED_[R]PROVIDER_virtual/opencl-icd

Select opencl-icd-loader as the preferred provider for both build and runtime.

---
 meta-oe/conf/layer.conf | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/conf/layer.conf +0 -0
index a1f50879e..aee1fa786 100644

meta-oe/conf/layer.conf PREFERRED_RPROVIDER_libdevmapper = "lvm2" · line 54

Quoted 5 lines
meta-oe/conf/layer.conf +2 -0
@@ -50,6 +50,8 @@ PREFERRED_RPROVIDER_libdevmapper = "lvm2"
 PREFERRED_PROVIDER_android-tools-conf ?= "android-tools-conf"
 # Configures whether coreutils or uutils-coreutils is used.
 PREFERRED_PROVIDER_coreutils = "coreutils"
+PREFERRED_PROVIDER_virtual/opencl-icd ?= "opencl-icd-loader"
+PREFERRED_RPROVIDER_virtual/opencl-icd ?= "opencl-icd-loader"

There are no runtime dependencies on virtual/opencl-icd in meta-openembedded. Runtime dependencies on virtual/... are also considered wrong as they do not work as expected (they only work as long as you do not try to create a package feed AFAIUI, which is why OE-Core uses VIRTUAL-RUNTIME_... instead). So why do you need to set PREFERRED_RPROVIDER_virtual/opencl-icd (and add the corresponding RPROVIDES:${PN} to ocl-icd and opencl-icd-loader)?

Quoted 5 lines
meta-oe/conf/layer.conf +0 -1
 SIGGEN_EXCLUDERECIPES_ABISAFE += " \
   fbset-modes \
--

2.39.2

//Peter