From f8c6a0941c0a9292717d3a3b6b4195f561b4e22a Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 16 Aug 2021 19:34:28 +0200 Subject: [PATCH 1/2] OpenCL/nvidia-mxlinks: Prepare clean install Installing libOpenCL.so.1 will clash with links inhere. - remove libOpenCL.so.1 - remove duplicate libnvidia-opencl.so.1 (?) - remove remaining unreferenced links Note: libnvidia-wfb.so.1 and libOpenCL.so.1 _are_ part of the nvidia-390.87 driver, but no workstation uses this driver anymore, so drop this cruft. The tool for checking is named check-nvidia-mxlinks.sh, and can be found in /project/admin/tools --- nvidia-mxlinks.be0 | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/nvidia-mxlinks.be0 b/nvidia-mxlinks.be0 index c5589ee0d..9a41ea989 100755 --- a/nvidia-mxlinks.be0 +++ b/nvidia-mxlinks.be0 @@ -1,6 +1,6 @@ #!/bin/env beesh -# BEE_VERSION nvidia-mxlinks-0.12-0 +# BEE_VERSION nvidia-mxlinks-0.12-1 EXCLUDE=("^/usr/lib/(X11|xorg)(|/modules(|/drivers))$") @@ -9,19 +9,13 @@ mee_install() { NVLIBS=( "libnvidia-ml.so.1" - "libnvidia-wfb.so.1" "libnvidia-cfg.so.1" "libnvidia-opencl.so.1" "libnvidia-encode.so.1" "libnvidia-ptxjitcompiler.so.1" "libvdpau_nvidia.so.1" - "libvdpau_trace.so.1" "libnvcuvid.so.1" "libcuda.so.1" - "libOpenCL.so.1" - "libGLcore.1" - "libnvidia-tls.so.1" - "libXvMCNVIDIA_dynamic.so.1" "libEGL_nvidia.so.0" "libGLESv1_CM_nvidia.so.1" "libGLESv2_nvidia.so.2" @@ -31,7 +25,6 @@ mee_install() { "libnvidia-ifr.so.1" "libnvidia-opticalflow.so.1" "libnvoptix.so.1" - "libnvidia-opencl.so.1" ) for i in ${NVLIBS[@]} ; do From 2362c95b73be966b71fe17a237801b64e3eb3147 Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 16 Aug 2021 19:38:22 +0200 Subject: [PATCH 2/2] OpenCL: Add headers and loader for drivers Minimum required to build and run OpenCL Apps --- OpenCL-Headers.be0 | 34 ++++++++++++++++++++++++++++++++++ ocl-icd.be0 | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) create mode 100755 OpenCL-Headers.be0 create mode 100755 ocl-icd.be0 diff --git a/OpenCL-Headers.be0 b/OpenCL-Headers.be0 new file mode 100755 index 000000000..204d08b39 --- /dev/null +++ b/OpenCL-Headers.be0 @@ -0,0 +1,34 @@ +#!/usr/bin/env beesh + +# BEE_VERSION OpenCL-Headers-2021.06.30-0 + +# SRCURL[0]="https://github.com/KhronosGroup/OpenCL-Headers/archive/refs/tags/v${PKGVERSION}.tar.gz" +SRCURL[0]="https://beehive.molgen.mpg.de/22007c68beb0b3c749df6e48e0498762/OpenCL-Headers-2021.06.30.tar.gz" + +# PATCHURL+=() + +# build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} + +## by default this may be 'make install DESTDIR="${D}"' diff --git a/ocl-icd.be0 b/ocl-icd.be0 new file mode 100755 index 000000000..69766209d --- /dev/null +++ b/ocl-icd.be0 @@ -0,0 +1,40 @@ +#!/usr/bin/env beesh + +# BEE_VERSION ocl-icd-2.3.0-0 + +# SRCURL[0]="https://github.com/OCL-dev/ocl-icd/archive/refs/tags/v${PKGVERSION}.tar.gz" +SRCURL[0]="https://beehive.molgen.mpg.de/7c34ddef4a662f6737e3165ccd417cba/ocl-icd-2.3.0.tar.gz" + +# PATCHURL+=() +PATCHURL[0]="https://beehive.molgen.mpg.de/a2de5a61942a5360560f415cfe0cbd61/0001-Updated-to-support-latest-Khronos-headers.patch.gz" + +# build_in_sourcedir + +# sourcesubdir_append src + +#mee_extract() { +# bee_extract "${@}" +#} + +#mee_patch() { +# bee_patch "${@}" +#} + +mee_patch_post() { # do it here, making buildtype detectable + cd ${S} + ./bootstrap +} + +#mee_configure() { +# bee_configure +#} + +#mee_build() { +# bee_build +#} + +#mee_install() { +# bee_install +#} + +## by default this may be 'make install DESTDIR="${D}"'