All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/7] Adding RustiCL
@ 2024-07-13  9:36 Antoine Coutant via buildroot
  2024-07-13  9:36 ` [Buildroot] [PATCH 1/7] package/pkg-meson.mk: add rust cross-compiler support Antoine Coutant via buildroot
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Antoine Coutant via buildroot @ 2024-07-13  9:36 UTC (permalink / raw)
  To: buildroot; +Cc: Antoine Coutant, romain.naour

All,

This series follows the last series I sent at the end of my internship
[1].

I’m sorry for the long time between those two series, but I do not have
time to spend on it since the end of my internship. 

Compared to the previous one, this series fixes problems raised by
receivers. Thanks for your review!
I also made the OpenCL-headers package the default provider of OpenCL
herders because all OpenCL headers are sourced from the same repo, and
because they should be backward compatible (mesa OpenCL headers are
old).
Finally, I made OpenCL Clover only available in ICD mode to stay
consistent between OpenCL implementations.

Contrary to the previous series, this one have not been tested on the
kadhas vim3 board (I don’t have access to it since the end of my
internship). I tested the build once with qemu_x86_64_defconfig and the
build was successful. But, an other build with the khadas_vim3_defconfig
failed: 

./buildroot/test/khadas_vim3_defconfig_rusticl_5/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/features.h:414:4: warning: _FORTIFY_SOURCE requires compiling with optimization (-O) [-W#warnings]
./buildroot/test/khadas_vim3_defconfig_rusticl_5/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/bits/math-vector.h:34:25: error: '__neon_vector_type__' attribute is not supported on targets missing 'neon' or 'mve'; specify an appropriate -march= or -mcpu=
./buildroot/test/khadas_vim3_defconfig_rusticl_5/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/bits/math-vector.h:35:25: error: '__neon_vector_type__' attribute is not supported on targets missing 'neon' or 'mve'; specify an appropriate -march= or -mcpu=
./buildroot/test/khadas_vim3_defconfig_rusticl_5/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/bits/math-vector.h:40:9: error: unknown type name '__SVFloat32_t'
./buildroot/test/khadas_vim3_defconfig_rusticl_5/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/bits/math-vector.h:41:9: error: unknown type name '__SVFloat64_t'
./buildroot/test/khadas_vim3_defconfig_rusticl_5/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/bits/math-vector.h:42:9: error: unknown type name '__SVBool_t'
clang diag: ./buildroot/test/khadas_vim3_defconfig_rusticl_5/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/features.h:414:4: warning: _FORTIFY_SOURCE requires compiling with optimization (-O) [-W#warnings]
panicked at bindgen-cli/main.rs:52:36:

I’m sending this patch series to save the work done, as I don’t know if
I will have time to work on it. 

(I wish a good buildroot summer camp to everyone who participates !)

Regards,
Antoine Coutant

[1]: https://patchwork.ozlabs.org/project/buildroot/list/?series=393298&state=%2A&archive=both



Antoine Coutant (3):
  package/opencl-icd-loader: new package
  package/llvm-project: add opencl-c-base.h on target
  package/mesa3d: remove the dependency on Clover and build it in ICD
    mode

Romain Naour (3):
  package/pkg-meson.mk: add rust cross-compiler support
  package/spirv-llvm-translator: add target variant to provide
    LLVMSPIRVLib
  package/mesa3d: add RustiCL support

Sebastian Weyer (1):
  package/opencl-headers: new package

 package/Config.in                             |  3 +
 package/llvm-project/clang/clang.mk           |  9 +++
 package/mesa3d-headers/mesa3d-headers.mk      |  2 +-
 ...emove-the-installation-of-CL-headers.patch | 71 +++++++++++++++++++
 package/mesa3d/Config.in                      | 50 +++++++++++--
 package/mesa3d/mesa3d.mk                      | 17 +++--
 package/opencl-headers/Config.in              |  7 ++
 package/opencl-headers/opencl-headers.hash    |  3 +
 package/opencl-headers/opencl-headers.mk      | 23 ++++++
 package/opencl-icd-loader/Config.in           | 12 ++++
 .../opencl-icd-loader/opencl-icd-loader.hash  |  3 +
 .../opencl-icd-loader/opencl-icd-loader.mk    | 20 ++++++
 package/pkg-meson.mk                          | 13 ++++
 package/spirv-llvm-translator/Config.in       | 22 ++++++
 .../spirv-llvm-translator.mk                  | 10 +++
 support/misc/cross-compilation.conf.in        |  2 +
 16 files changed, 257 insertions(+), 10 deletions(-)
 create mode 100644 package/mesa3d/0008-include-remove-the-installation-of-CL-headers.patch
 create mode 100644 package/opencl-headers/Config.in
 create mode 100644 package/opencl-headers/opencl-headers.hash
 create mode 100644 package/opencl-headers/opencl-headers.mk
 create mode 100644 package/opencl-icd-loader/Config.in
 create mode 100644 package/opencl-icd-loader/opencl-icd-loader.hash
 create mode 100644 package/opencl-icd-loader/opencl-icd-loader.mk
 create mode 100644 package/spirv-llvm-translator/Config.in

-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-07-22 16:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-13  9:36 [Buildroot] [PATCH 0/7] Adding RustiCL Antoine Coutant via buildroot
2024-07-13  9:36 ` [Buildroot] [PATCH 1/7] package/pkg-meson.mk: add rust cross-compiler support Antoine Coutant via buildroot
2024-07-13  9:36 ` [Buildroot] [PATCH 2/7] package/spirv-llvm-translator: add target variant to provide LLVMSPIRVLib Antoine Coutant via buildroot
2024-07-13  9:36 ` [Buildroot] [PATCH 3/7] package/opencl-headers: new package Antoine Coutant via buildroot
2024-07-13  9:36 ` [Buildroot] [PATCH 4/7] package/opencl-icd-loader: " Antoine Coutant via buildroot
2024-07-13  9:36 ` [Buildroot] [PATCH 5/7] package/llvm-project: add opencl-c-base.h on target Antoine Coutant via buildroot
2024-07-13  9:36 ` [Buildroot] [PATCH 6/7] package/mesa3d: add RustiCL support Antoine Coutant via buildroot
2024-07-13  9:37 ` [Buildroot] [PATCH 7/7] package/mesa3d: remove the dependency on Clover and build it in ICD mode Antoine Coutant via buildroot
2024-07-14 11:10 ` [Buildroot] [PATCH 0/7] Adding RustiCL Romain Naour via buildroot
2024-07-14 15:49   ` Romain Naour via buildroot
2024-07-22 16:33   ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.