Add piglit and opencl support
cover Add piglit and opencl support
From: Randolph Sapp <[email protected]>
Add the piglit test utility and some conformance tests it wraps to the ti-test package group.
Also enable opencl now that rogue umlibs properly provide that feature.
Randolph Sapp (2):
arago.conf: add opencl as a distro feature
ti-test: add piglit to ARAGO_TEST
meta-arago-distro/conf/distro/arago.conf | 5 ++++- meta-arago-distro/recipes-core/packagegroups/ti-test.bb | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-)
Signature · 1 line
2.40.1
PATCH 1/2 arago.conf: add opencl as a distro feature
From: Randolph Sapp <[email protected]>
Rogue devices now have limited support for opencl. Further testing is required but this is safe to enable now.
--- meta-arago-distro/conf/distro/arago.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-distro/conf/distro/arago.conf +1 -1
@@ -47,7 +47,7 @@ DISTRO_FEATURES = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}" # Add additional distro features DISTRO_FEATURES:append = " pam wayland opengl" -#DISTRO_FEATURES:append = " opencl" +DISTRO_FEATURES:append = " opencl" DISTRO_FEATURES:append = " vulkan" DISTRO_FEATURES:append = " opencv" DISTRO_FEATURES:append = " openmp"
Signature · 1 line
2.40.1
Re: [meta-arago][master/kirkstone][PATCH 1/2] arago.conf: add opencl as a distro feature
Quoted 15 lines · On 5/30/2023 4:47 PM, [email protected] wrote:
From: Randolph Sapp <[email protected]>
Rogue devices now have limited support for opencl. Further testing is required but this is safe to enable now.
Signed-off-by Randolph Sapp <[email protected]>--- meta-arago-distro/conf/distro/arago.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-arago-distro/conf/distro/arago.conf +0
-0
meta-arago-distro/conf/distro/arago.conf DISTRO_FEATURES = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}" · line 50
Quoted 5 lines
meta-arago-distro/conf/distro/arago.conf +1
-1@@ -47,7 +47,7 @@ DISTRO_FEATURES = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}" # Add additional distro features DISTRO_FEATURES:append = " pam wayland opengl" -#DISTRO_FEATURES:append = " opencl" +DISTRO_FEATURES:append = " opencl"
This change has opened a can of worms. A lot of build failures. Some of the dependent recipes were not migrated over from dunfell to kirkstone and those dependencies were hidden behind this feature being turned off.
If you want to recreate the build failures you can run:
MACHINE=am57xx-evm bitbake -k tisdk-core-bundle tisdk-tiny-image ti-world
We need to either prune out some more older recipes that are depending on the missing packages, restore the missing packages and clean them up per the kirkstone rules and machine renames, or option C (yet to be thought of).
Needless to say, no quick fix for this one. So I'm holding off accepting this patch series.
Quoted 3 lines
meta-arago-distro/conf/distro/arago.conf +0
-0DISTRO_FEATURES:append = " vulkan" DISTRO_FEATURES:append = " opencv" DISTRO_FEATURES:append = " openmp"
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
Re: [meta-arago][master/kirkstone][PATCH 1/2] arago.conf: add opencl as a distro feature
Quoted 33 lines · Ryan Eatmon via lists.yoctoproject.org
Quoted 15 lines · On 5/30/2023 4:47 PM, [email protected] wrote:
From: Randolph Sapp <[email protected]>
Rogue devices now have limited support for opencl. Further testing is required but this is safe to enable now.
Signed-off-by Randolph Sapp <[email protected]>--- meta-arago-distro/conf/distro/arago.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-arago-distro/conf/distro/arago.conf +0
-0meta-arago-distro/conf/distro/arago.conf DISTRO_FEATURES = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}" · line 49
Quoted 4 lines
meta-arago-distro/conf/distro/arago.conf +1
-1@@ -47,7 +47,7 @@ DISTRO_FEATURES = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}" # Add additional distro features DISTRO_FEATURES:append = " pam wayland opengl" -#DISTRO_FEATURES:append = " opencl" +DISTRO_FEATURES:append = " opencl"This change has opened a can of worms. A lot of build failures. Some of the dependent recipes were not migrated over from dunfell to kirkstone and those dependencies were hidden behind this feature being turned off.
If you want to recreate the build failures you can run:
MACHINE=am57xx-evm bitbake -k tisdk-core-bundle tisdk-tiny-image ti-world
Quoted 12 lines
We need to either prune out some more older recipes that are depending on the missing packages, restore the missing packages and clean them up per the kirkstone rules and machine renames, or option C (yet to be thought of).
Needless to say, no quick fix for this one. So I'm holding off accepting this patch series.
Quoted 3 lines
meta-arago-distro/conf/distro/arago.conf +0
-0DISTRO_FEATURES:append = " vulkan" DISTRO_FEATURES:append = " opencv" DISTRO_FEATURES:append = " openmp"
There are several old components in meta-arago-extras that are keyed off of "opencl" distro feature, that were doing task offloading to DSPs and EVEs on older platforms, like K2 and AM57x. Those are TI forks of OpenCL, OpenMP, OpenVX to work with old version of TIDL for EdgeAI back in the day:
https://www.cnx-software.com/2019/02/28/ti-am5729-beaglebone-ai-dsp-eve/
And when meta-ti was being restructured for Kirkstone and lower level dependencies were deprecated couple years ago, the fate of these components wasn't decided yet. If there are no downstream consumers of these pieces now, I guess they can be removed:
https://git.yoctoproject.org/meta-arago/tree/meta-arago-extras/recipes-ti
Signature · 1 line
Denys
PATCH 2/2 ti-test: add piglit to ARAGO_TEST
In reply to [email protected]From: Randolph Sapp <[email protected]>
Piglit is an OpenGL test suite and test-suite runner with support for OpenGLES, Vulkan, OpenCL compliance tests. This in particular is very nice in tracking feature regressions and driver conformance.
--- meta-arago-distro/conf/distro/arago.conf | 3 +++ meta-arago-distro/recipes-core/packagegroups/ti-test.bb | 3 +++ 2 files changed, 6 insertions(+)
meta-arago-distro/conf/distro/arago.conf +3 -0
@@ -95,6 +95,9 @@ PACKAGECONFIG:pn-curl = "${@bb.utils.contains("DISTRO_FEATURES", "ipv6", "ipv6", PACKAGECONFIG:pn-glmark2 = "drm-gles2 wayland-gles2" +# Enable testing for opencl and vulkan with piglit +PACKAGECONFIG:append:pn-piglit = " opencl vulkan" + # Enable encryption support in open62541 PACKAGECONFIG:append:pn-open62541 = " encrypt"
meta-arago-distro/recipes-core/packagegroups/ti-test.bb +3 -0
@@ -39,6 +39,9 @@ ARAGO_TEST = "\ nbench-byte \ stream \ cryptodev-tests \ + piglit \ + opengl-es-cts \ + vulkan-cts \ " ARAGO_TEST:append:armv7a = " \
Signature · 1 line
2.40.1