Re: [meta-intel] OpenCL stalls on Apollo Lake GPU
Sorry for the delay in getting back to you. On Mon, 2017-01-16 at 12:27 +, Tony Whittam wrote: > Hi everyone, > > I don't know if this is too specialised for this list. I was directed > to the Yocto Resources by Intel Premier Support. Anyway, no harm in > asking the question :-) > Right, it was a little more complex since the we generally work with the core BSP, but we want to help just took trying to find the right people. > Preamble > Build: Yocto from the Apollo Lake BSP release gold, > Hardware: Oxbow Hill Rev B CRB with Intel Atom E3950 and 4GB DDR3 RAM > (one SODIMM) > Build: core-image-sato-sdk > Installed on the onboard eMMC. > OpenCL: installed user space drivers from SRB4 https://software.intel > .com/file/533571/download > Have you looked at the Beignet (https://01.org/beignet)? I am still tracking information down. Sau! > I'm currently evaluating the Apollo Lake platform as a candidate to > run our embedded application. We already have this application > running on less powerful ARM based Linux systems with Mali GPU using > OpenCL 1.2. We're now evaluating the E3950 as a faster alternative. > To evaluate the application I need OpenCL 1.2 or later. > > To verify the OpenCL installation I have built and run the Intel demo > apps: CapsBasic and Bitonic Sort. CapsBasic sees two devices: CPU and > GPU and Bitonic sort can run its kernels correctly on both the CPU > and the GPU. > > The issue > Simply put, the application has > thread 1 (feeder): has a loop that feeds data into OpenCL and queues > kernels > thread 2 (consumer): waits for results and reads output data. > an OpenCL Host command queue with out-of-order execution enabled > When I run my app and select the GPU OpenCL device, the feeder thread > stalls inside a blocking call to clEnqueueMapBuffer(). At this point > only one thing has been queued on the command queue: a buffer unmap > command for a different buffer. This unmap is waiting for an OpenCL > event that will indicate data ready to be processed. > > When I run my app and select the CPU OpenCL device, it works > perfectly. > > Does anyone have any ideas on > what might be causing this? > how to debug this on the Yocto platform? > Best regards, > > Tony > > > -- > Tony Whittam > Rapt Touch > > Confidentiality Notice: > > The information contained in this message, including any attachments > hereto, may be confidential and is intended to be read only by the > individual or entity to whom this message is addressed. If the reader > of this message is not the intended recipient or an agent or designee > of the intended recipient, please note that any review, use, > disclosure or distribution of this message or its attachments, in any > form, is strictly prohibited. If you have received this message in > error, please immediately notify the sender and/or Rapt Touch Ltd via > email at i...@rapttouch.com and delete or destroy any copy of this > message and its attachments. -- ___ meta-intel mailing list meta-intel@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-intel
[meta-intel] [PATCH 1/1] linux-yocto: Add linux-yocto 4.9 bbappends
For now just set COMPATIBLE_MACHINE and KMACHINE, keeping us up-to-date with OE-core automatically. This is essentially a stripped down version of our normal bbappends. kernel-devsrc currently has the following error with 4.9, but it is not a meta-intel specific issue: Computing transaction...error: Can't install kernel-devsrc-1.0-r0.0@intel_corei7_64: no package provides /bin/awk Signed-off-by: California Sullivan--- .../linux/linux-yocto-rt_4.9.bbappend | 13 + .../linux/linux-yocto-tiny_4.9.bbappend | 3 +++ .../recipes-kernel/linux/linux-yocto_4.9.bbappend | 21 + 3 files changed, 37 insertions(+) create mode 100644 common/recipes-kernel/linux/linux-yocto-rt_4.9.bbappend create mode 100644 common/recipes-kernel/linux/linux-yocto-tiny_4.9.bbappend create mode 100644 common/recipes-kernel/linux/linux-yocto_4.9.bbappend diff --git a/common/recipes-kernel/linux/linux-yocto-rt_4.9.bbappend b/common/recipes-kernel/linux/linux-yocto-rt_4.9.bbappend new file mode 100644 index 000..9d2e3c0 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-rt_4.9.bbappend @@ -0,0 +1,13 @@ +KERNEL_FEATURES_INTEL_COMMON = "" + +COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}" +KMACHINE_core2-32-intel-common = "intel-core2-32" +KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}" + +COMPATIBLE_MACHINE_corei7-64-intel-common = "${MACHINE}" +KMACHINE_corei7-64-intel-common = "intel-corei7-64" +KERNEL_FEATURES_append_corei7-64-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}" + +COMPATIBLE_MACHINE_i586-nlp-32-intel-common = "${MACHINE}" +KMACHINE_i586-nlp-32-intel-common = "intel-quark" +KERNEL_FEATURES_append_i586-nlp-32-intel-common = "" diff --git a/common/recipes-kernel/linux/linux-yocto-tiny_4.9.bbappend b/common/recipes-kernel/linux/linux-yocto-tiny_4.9.bbappend new file mode 100644 index 000..771662b --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-tiny_4.9.bbappend @@ -0,0 +1,3 @@ +COMPATIBLE_MACHINE_i586-nlp-32-intel-common = "${MACHINE}" +KMACHINE_i586-nlp-32-intel-common = "intel-quark" +KERNEL_FEATURES_append_i586-nlp-32-intel-common = "cfg/fs/ext4.scc" diff --git a/common/recipes-kernel/linux/linux-yocto_4.9.bbappend b/common/recipes-kernel/linux/linux-yocto_4.9.bbappend new file mode 100644 index 000..a09fe1a --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto_4.9.bbappend @@ -0,0 +1,21 @@ +KERNEL_FEATURES_INTEL_COMMON = "" + +COMPATIBLE_MACHINE_core2-32-intel-common = "${MACHINE}" +KMACHINE_core2-32-intel-common = "intel-core2-32" +KERNEL_FEATURES_append_core2-32-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}" + +COMPATIBLE_MACHINE_corei7-64-intel-common = "${MACHINE}" +KMACHINE_corei7-64-intel-common = "intel-corei7-64" +KERNEL_FEATURES_append_corei7-64-intel-common = "${KERNEL_FEATURES_INTEL_COMMON}" + +COMPATIBLE_MACHINE_i586-nlp-32-intel-common = "${MACHINE}" +KMACHINE_i586-nlp-32-intel-common = "intel-quark" +KERNEL_FEATURES_append_i586-nlp-32-intel-common = "" + +# For Crystalforest and Romley +KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " uio" +KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " uio" + +# For FRI2, NUC +KERNEL_MODULE_AUTOLOAD_append_core2-32-intel-common = " iwlwifi" +KERNEL_MODULE_AUTOLOAD_append_corei7-64-intel-common = " iwlwifi" -- 2.5.5 -- ___ meta-intel mailing list meta-intel@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-intel
[meta-intel] [PATCH 1/2] thermald: Add glib-2.0-native to DEPENDS
Thermald uses the command glib-genmarshal to build, which is from glib-2.0-native. Signed-off-by: California Sullivan--- common/recipes-bsp/thermald/thermald_1.5.3.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/recipes-bsp/thermald/thermald_1.5.3.bb b/common/recipes-bsp/thermald/thermald_1.5.3.bb index 165dfd4..ea339fa 100644 --- a/common/recipes-bsp/thermald/thermald_1.5.3.bb +++ b/common/recipes-bsp/thermald/thermald_1.5.3.bb @@ -6,7 +6,7 @@ compensation using available cooling methods." HOMEPAGE = "https://github.com/01org/thermal_daemon; -DEPENDS = "dbus dbus-glib libxml2 glib-2.0" +DEPENDS = "dbus dbus-glib libxml2 glib-2.0 glib-2.0-native" DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}" LICENSE = "GPL-2.0" -- 2.5.5 -- ___ meta-intel mailing list meta-intel@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-intel
[meta-intel] [PATCH 2/2] thermald: Update from 1.5.3 to 1.5.4
This is the latest release version. Signed-off-by: California Sullivan--- common/recipes-bsp/thermald/thermald_1.5.3.bb | 32 --- common/recipes-bsp/thermald/thermald_1.5.4.bb | 32 +++ 2 files changed, 32 insertions(+), 32 deletions(-) delete mode 100644 common/recipes-bsp/thermald/thermald_1.5.3.bb create mode 100644 common/recipes-bsp/thermald/thermald_1.5.4.bb diff --git a/common/recipes-bsp/thermald/thermald_1.5.3.bb b/common/recipes-bsp/thermald/thermald_1.5.3.bb deleted file mode 100644 index ea339fa..000 --- a/common/recipes-bsp/thermald/thermald_1.5.3.bb +++ /dev/null @@ -1,32 +0,0 @@ -SUMMARY = "Linux thermal daemon" - -DESCRIPTION = "Thermal Daemon is a Linux daemon used to prevent the \ -overheating of platforms. This daemon monitors temperature and applies \ -compensation using available cooling methods." - -HOMEPAGE = "https://github.com/01org/thermal_daemon; - -DEPENDS = "dbus dbus-glib libxml2 glib-2.0 glib-2.0-native" -DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}" - -LICENSE = "GPL-2.0" -LIC_FILES_CHKSUM = "file://COPYING;md5=ea8831610e926e2e469075b52bf08848" - -SRC_URI = "https://github.com/01org/thermal_daemon/archive/v${PV}.tar.gz; -SRC_URI[md5sum] = "66402236ed3c86a798029cb4d5313817" -SRC_URI[sha256sum] = "e20b450ef27a5b5e45474c831663c8f5ecd14c82ace5a4b1e06c442e0a23b53e" - -S = "${WORKDIR}/thermal_daemon-${PV}" - -inherit pkgconfig autotools systemd - -FILES_${PN} += "${datadir}/dbus-1/system-services/*.service" - -SYSTEMD_SERVICE_${PN} = "thermald.service" - -COMPATIBLE_HOST = '(i.86|x86_64).*-linux' - -CONFFILES_${PN} = " \ - ${sysconfdir}/thermald/thermal-conf.xml \ - ${sysconfdir}/thermald/thermal-cpu-cdev-order.xml \ - " diff --git a/common/recipes-bsp/thermald/thermald_1.5.4.bb b/common/recipes-bsp/thermald/thermald_1.5.4.bb new file mode 100644 index 000..3183281 --- /dev/null +++ b/common/recipes-bsp/thermald/thermald_1.5.4.bb @@ -0,0 +1,32 @@ +SUMMARY = "Linux thermal daemon" + +DESCRIPTION = "Thermal Daemon is a Linux daemon used to prevent the \ +overheating of platforms. This daemon monitors temperature and applies \ +compensation using available cooling methods." + +HOMEPAGE = "https://github.com/01org/thermal_daemon; + +DEPENDS = "dbus dbus-glib libxml2 glib-2.0 glib-2.0-native" +DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES','systemd','systemd','',d)}" + +LICENSE = "GPL-2.0" +LIC_FILES_CHKSUM = "file://COPYING;md5=ea8831610e926e2e469075b52bf08848" + +SRC_URI = "https://github.com/01org/thermal_daemon/archive/v${PV}.tar.gz; +SRC_URI[md5sum] = "f7b63e691fb941c92e14ccfcb667b593" +SRC_URI[sha256sum] = "42f72fc32c84adcbb2ee6667645c2e1653cdc4f85963e6f72efd83517f7c29f0" + +S = "${WORKDIR}/thermal_daemon-${PV}" + +inherit pkgconfig autotools systemd + +FILES_${PN} += "${datadir}/dbus-1/system-services/*.service" + +SYSTEMD_SERVICE_${PN} = "thermald.service" + +COMPATIBLE_HOST = '(i.86|x86_64).*-linux' + +CONFFILES_${PN} = " \ + ${sysconfdir}/thermald/thermal-conf.xml \ + ${sysconfdir}/thermald/thermal-cpu-cdev-order.xml \ + " -- 2.5.5 -- ___ meta-intel mailing list meta-intel@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-intel