[meta-intel] [PATCH v2] daal: Initial recipe for Data Analytics Acceleration Library

Ankit Navik ankit.tarot at gmail.com
Mon Aug 26 09:18:22 PDT 2019


Hi,

If the compile stage fails, then it is not able
to fetch pre-built library from github.
git-lfs should fetch it properly. I saw this issue,
when you behind the proxy and I can clearly see the
file size difference between github vs build environment.

I replaced the library manually and compilation goes well.

Regards,
Ankit


On Mon, Aug 26, 2019 at 9:43 PM Ankit Navik <ankit.tarot at gmail.com> wrote:

> It adds generic recipe for Intel Data Analytics Acceleration Library (DAAL)
> to speed up big data analysis by providing highly optimized algorithmic
> building blocks.
>
> Signed-off-by: Ankit Navik <ankit.tarot at gmail.com>
> ---
>  recipes-core/daal/daal_2019-u3.bb                  | 26 ++++++++++
>  ...01-build-Updates-to-generic-from-g-to-CXX.patch | 58
> ++++++++++++++++++++++
>  2 files changed, 84 insertions(+)
>  create mode 100644 recipes-core/daal/daal_2019-u3.bb
>  create mode 100644
> recipes-core/daal/files/0001-build-Updates-to-generic-from-g-to-CXX.patch
>
> diff --git a/recipes-core/daal/daal_2019-u3.bb b/recipes-core/daal/
> daal_2019-u3.bb
> new file mode 100644
> index 0000000..9fa06fa
> --- /dev/null
> +++ b/recipes-core/daal/daal_2019-u3.bb
> @@ -0,0 +1,26 @@
> +SUMMARY  = "Intel Data Analytics Acceleration Library"
> +DESCRIPTION = "This software is a user mode library that speed up big
> data\
> +analysis by providing highly optimized algorithmic building blocks for
> all\
> +stages of data analytics in batch, online, and distributed processing
> modes\
> +of computation."
> +HOMEPAGE = "https://01.org/daal"
> +LICENSE  = "Apache-2.0"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327"
> +SECTION = "lib"
> +
> +inherit pkgconfig
> +
> +S = "${WORKDIR}/${BPN}-2019_u3"
> +SRC_URI = "https://github.com/intel/${BPN}/archive/2019_u3.tar.gz"
> +SRC_URI += "file://0001-build-Updates-to-generic-from-g-to-CXX.patch"
> +SRC_URI[md5sum] = "a9ef641f75e2b569b8ef75a75e1565df"
> +SRC_URI[sha256sum] =
> "990dd005b6f9f5f17746b5e7a146585e461ffdeed5d3c15e25a6e2c772fa9391"
> +
> +PLATFORM_ARCH_x86 = "lnx32"
> +PLATFORM_ARCH_x86-64 = "lnx32e"
> +
> +EXTRA_OEMAKE += "PLAT=${PLATFORM_ARCH} COMPILER=gnu"
> +
> +do_compile () {
> +       oe_runmake _daal _release_c
> +}
> diff --git
> a/recipes-core/daal/files/0001-build-Updates-to-generic-from-g-to-CXX.patch
> b/recipes-core/daal/files/0001-build-Updates-to-generic-from-g-to-CXX.patch
> new file mode 100644
> index 0000000..50b28b2
> --- /dev/null
> +++
> b/recipes-core/daal/files/0001-build-Updates-to-generic-from-g-to-CXX.patch
> @@ -0,0 +1,58 @@
> +From 313dec509c3b736b4d7f9e9bc8ab0046be3f38fc Mon Sep 17 00:00:00 2001
> +From: Ankit Navik <ankit.tarot at gmail.com>
> +Date: Fri, 9 Aug 2019 13:33:09 +0530
> +Subject: [PATCH] build: Updates to generic from g++ to CXX
> +
> +It updates the makefile to support cross compilation for other Linux
> distro
> +such as yocto.
> +
> +Upstream-Status: Submitted [https://github.com/intel/daal/pull/58]
> +
> +Signed-off-by: Ankit Navik <ankit.tarot at gmail.com>
> +---
> + build/cmplr.gnu.mk | 4 ++--
> + build/common.mk    | 8 ++++----
> + 2 files changed, 6 insertions(+), 6 deletions(-)
> +
> +diff --git a/build/cmplr.gnu.mk b/build/cmplr.gnu.mk
> +index 687dfc2..4aad64d 100644
> +--- a/build/cmplr.gnu.mk
> ++++ b/build/cmplr.gnu.mk
> +@@ -25,9 +25,9 @@ CORE.SERV.COMPILER.gnu = generic
> + -Zl.gnu =
> + -DEBC.gnu = -g
> +
> +-COMPILER.lnx.gnu = g++ -D__int64="long long" -D__int32="int" $(if
> $(IA_is_ia32),-m32,-m64)
> ++COMPILER.lnx.gnu = ${CXX} -D__int64="long long" -D__int32="int" $(if
> $(IA_is_ia32),-m32,-m64)
> +
> +-link.dynamic.lnx.gnu = g++ $(if $(IA_is_ia32),-m32,-m64)
> ++link.dynamic.lnx.gnu = ${CXX} $(if $(IA_is_ia32),-m32,-m64)
> +
> + p4_OPT.gnu   = $(-Q)$(if $(IA_is_ia32),march=pentium4,march=nocona)
> + mc_OPT.gnu   = $(-Q)$(if $(IA_is_ia32),march=pentium4,march=nocona)
> +diff --git a/build/common.mk b/build/common.mk
> +index b8d3023..a446851 100644
> +--- a/build/common.mk
> ++++ b/build/common.mk
> +@@ -98,14 +98,14 @@ write.prereqs.dump = $(call exec,printf -- "$(subst
> $(space),$2,$1)$(if $6,$2)"
> + LINK.STATIC = $(mkdir)$(call rm,$@)$(link.static.cmd)
> + link.static.cmd = $(call link.static.$(_OS),$(LOPT) $(or
> $1,$(^.no-mkdeps)))
> + link.static.lnx = $(if $(filter
> %.a,$1),$(link.static.lnx.script),$(link.static.lnx.cmdline))
> +-link.static.lnx.cmdline = ar rs $@ $(1:%_link.txt=@%_link.txt)
> ++link.static.lnx.cmdline = ${AR} rs $@ $(1:%_link.txt=@%_link.txt)
> + link.static.fbsd = $(if $(filter
> %.a,$1),$(link.static.fbsd.script),$(link.static.fbsd.cmdline))
> +-link.static.fbsd.cmdline = /usr/local/bin/ar rs $@
> $(1:%_link.txt=@%_link.txt)
> ++link.static.fbsd.cmdline = ${AR} rs $@ $(1:%_link.txt=@%_link.txt)
> + .addlib = $(foreach lib,$(filter %.a,$1),addlib $(lib)\n)
> + .addmod = $(if $(filter %.o,$1),addmod $(filter %.o,$1))
> + .addlink = $(if $(filter %_link.txt,$1),addmod $(shell tr '\n' ', ' <
> $(filter %_link.txt,$1)))
> +-link.static.lnx.script = printf "create $@\n$(call .addlib,$1)\n$(call
> .addmod,$1)\n$(call .addlink,$1)\nsave\n" | ar -M
> +-link.static.fbsd.script = printf "create $@\n$(call .addlib,$1)\n$(call
> .addmod,$1)\n$(call .addlink,$1)\nsave\n" | /usr/local/bin/ar -M
> ++link.static.lnx.script = printf "create $@\n$(call .addlib,$1)\n$(call
> .addmod,$1)\n$(call .addlink,$1)\nsave\n" | ${AR} -M
> ++link.static.fbsd.script = printf "create $@\n$(call .addlib,$1)\n$(call
> .addmod,$1)\n$(call .addlink,$1)\nsave\n" | ${AR} -M
> + link.static.win = lib $(link.static.win.$(COMPILER)) -nologo -out:$@
> $(1:%_link.txt=@%_link.txt)
> + link.static.mac = libtool -V -static -o $@ $(1:%_link.txt=-filelist
> %_link.txt)
> +
> +--
> +2.7.4
> +
> --
> 2.7.4
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-intel/attachments/20190826/cbba8ebd/attachment.html>


More information about the meta-intel mailing list