From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Antoine Coutant <antoine.coutant@smile.fr>
Cc: sebastian.weyer@smile.fr, bernd@kuhls.net, romain.naour@smile.fr,
buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v4 5/7] package/opencl-icd-loader: new package
Date: Wed, 7 Feb 2024 17:01:39 +0100 [thread overview]
Message-ID: <ZcOpY6BjPUgrj5r-@landeda> (raw)
In-Reply-To: <20240202093625.1409559-6-antoine.coutant@smile.fr>
Antoine, All,
On 2024-02-02 10:36 +0100, Antoine Coutant spake thusly:
> From: Sebastian Weyer <sebastian.weyer@smile.fr>
>
> With this package it is possible to have multiple implementations of
> OpenCL at the same time. This package provides a libOpenCL.so file that
> captures the OpenCL API calls and forwards them to the correct
> implementation of OpenCL. OpenCL implementations can be manually
> registered by creating a file containing its full file path in
> /etc/OpenCL/vendors/<implementation>.icd[1]
>
> This package is required by certain OpenCL implementations, for example
> Mesa3D's Clover implementation if it is not built in standalone mode.
>
> [1] https://github.com/KhronosGroup/OpenCL-ICD-Loader#registering-icds
>
> Signed-off-by: Sebastian Weyer <sebastian.weyer@smile.fr>
> Signed-off-by: Antoine Coutant <antoine.coutant@smile.fr>
> ---
[--SNIP--]
> diff --git a/package/opencl-icd-loader/Config.in b/package/opencl-icd-loader/Config.in
> new file mode 100644
> index 0000000000..405dc5401a
> --- /dev/null
> +++ b/package/opencl-icd-loader/Config.in
> @@ -0,0 +1,12 @@
> +config BR2_PACKAGE_OPENCL_ICD_LOADER
> + bool "OpenCL-ICD-Loader"
> + depends on BR2_INSTALL_LIBSTDCPP
> + depends on BR2_PACKAGE_HAS_LIBOPENCL
> + select BR2_PACKAGE_OPENCL_HEADERS
Following on the review of the previous patch: maybe that could rely on
mesa3d-headers, and if so, we'ds not need to introduce a new
opencl-headers package.
Regards,
Yann E. MORIN.
> + help
> + OpenCL defines an Installable Client Driver (ICD) mechanism to
> + allow developers to build applications against an Installable
> + Client Driver loader (ICD loader) rather than linking their
> + applications against a specific OpenCL implementation.
> +
> + https://github.com/KhronosGroup/OpenCL-ICD-Loader
> diff --git a/package/opencl-icd-loader/opencl-icd-loader.hash b/package/opencl-icd-loader/opencl-icd-loader.hash
> new file mode 100644
> index 0000000000..1c894f1293
> --- /dev/null
> +++ b/package/opencl-icd-loader/opencl-icd-loader.hash
> @@ -0,0 +1,3 @@
> +# locally generated
> +sha256 af8df96f1e1030329e8d4892ba3aa761b923838d4c689ef52d97822ab0bd8917 OpenCL-ICD-Loader-2023.12.14.tar.gz
> +sha256 c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
> diff --git a/package/opencl-icd-loader/opencl-icd-loader.mk b/package/opencl-icd-loader/opencl-icd-loader.mk
> new file mode 100644
> index 0000000000..04f6fb4b85
> --- /dev/null
> +++ b/package/opencl-icd-loader/opencl-icd-loader.mk
> @@ -0,0 +1,19 @@
> +################################################################################
> +#
> +# opencl-icd-loader
> +#
> +################################################################################
> +
> +OPENCL_ICD_LOADER_VERSION = 2023.12.14
> +OPENCL_ICD_LOADER_SOURCE = OpenCL-ICD-Loader-$(OPENCL_ICD_LOADER_VERSION).tar.gz
> +OPENCL_ICD_LOADER_SITE = $(call github,KhronosGroup,OpenCL-ICD-Loader,v$(OPENCL_ICD_LOADER_VERSION))
> +OPENCL_ICD_LOADER_LICENSE = Apache-2.0
> +OPENCL_ICD_LOADER_LICENSE_FILES = LICENSE
> +OPENCL_ICD_LOADER_INSTALL_STAGING = YES
> +
> +OPENCL_ICD_LOADER_DEPENDENCIES = opencl-headers
> +
> +OPENCL_ICD_LOADER_CONF_OPTS += -DOPENCL_ICD_LOADER_HEADERS_DIR=$(STAGING_DIR)/usr/include
> +
> +$(eval $(cmake-package))
> +$(eval $(host-cmake-package))
> --
> 2.25.1
>
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-02-07 16:01 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-02 9:36 [Buildroot] [PATCH v4 0/7] Adding RustiCL Antoine Coutant
2024-02-02 9:36 ` [Buildroot] [PATCH v4 1/7] package/meson: bump version to 1.3.1 Antoine Coutant
2024-02-07 15:23 ` Yann E. MORIN
2024-02-07 15:30 ` Yann E. MORIN
2024-02-02 9:36 ` [Buildroot] [PATCH v4 2/7] package/pkg-meson.mk: add rust cross-compiler support Antoine Coutant
2024-02-07 15:13 ` Yann E. MORIN
2024-02-08 10:25 ` Antoine Coutant
2024-02-02 9:36 ` [Buildroot] [PATCH v4 3/7] package/spirv-llvm-translator: add target variant to provide LLVMSPIRVLib Antoine Coutant
2024-02-07 15:08 ` Yann E. MORIN
2024-02-07 15:15 ` Arnout Vandecappelle via buildroot
2024-02-02 9:36 ` [Buildroot] [PATCH v4 4/7] package/opencl-headers: new package Antoine Coutant
2024-02-07 15:58 ` Yann E. MORIN
2024-02-12 13:44 ` Antoine Coutant
2024-02-21 13:26 ` Antoine Coutant
2024-02-21 16:55 ` Antoine Coutant
2024-02-02 9:36 ` [Buildroot] [PATCH v4 5/7] package/opencl-icd-loader: " Antoine Coutant
2024-02-07 16:01 ` Yann E. MORIN [this message]
2024-02-12 14:19 ` Antoine Coutant
2024-02-02 9:36 ` [Buildroot] [PATCH v4 6/7] package/llvm-project: add opencl-c-base.h on target Antoine Coutant
2024-02-07 19:07 ` Yann E. MORIN
2024-02-12 14:54 ` Antoine Coutant
2024-02-02 9:36 ` [Buildroot] [PATCH v4 7/7] package/mesa3d: add RustiCL support Antoine Coutant
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=ZcOpY6BjPUgrj5r-@landeda \
--to=yann.morin.1998@free.fr \
--cc=antoine.coutant@smile.fr \
--cc=bernd@kuhls.net \
--cc=buildroot@buildroot.org \
--cc=romain.naour@smile.fr \
--cc=sebastian.weyer@smile.fr \
/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