Skip to content

Add opencl support #2176

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 34 additions & 0 deletions OpenCL-Headers.be0
Original file line number Diff line number Diff line change
@@ -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}"'
9 changes: 1 addition & 8 deletions nvidia-mxlinks.be0
Original file line number Diff line number Diff line change
@@ -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))$")

Expand All @@ -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"
Expand All @@ -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
Expand Down
40 changes: 40 additions & 0 deletions ocl-icd.be0
Original file line number Diff line number Diff line change
@@ -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+=()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment can be removed?

PATCHURL[0]="https://beehive.molgen.mpg.de/a2de5a61942a5360560f415cfe0cbd61/0001-Updated-to-support-latest-Khronos-headers.patch.gz"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’d be great if you mentioned in the commit message, where the patch is from.


# 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}"'