Jakub Klinkovský pushed to branch main at Arch Linux / Packaging / Packages /
pocl
Commits:
689ef38d by Jakub Klinkovský at 2025-09-19T23:25:45+02:00
upgpkg: 7.0-5: rebuild with CUDA 13
- - - - -
5 changed files:
- .SRCINFO
- + LICENSES/MIT.txt
- PKGBUILD
- REUSE.toml
- + fix-cuda-13.patch
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
pkgbase = pocl
pkgdesc = Portable OpenCL is an open-source implementation of OpenCL
which can be easily adapted for new targets
pkgver = 7.0
- pkgrel = 4
+ pkgrel = 5
url = http://portablecl.org/
arch = x86_64
license = MIT
@@ -21,6 +21,8 @@ pkgbase = pocl
optdepends = cuda: CUDA driver
optdepends = cudnn: CUDA driver
source = git+https://github.com/pocl/pocl#tag=v7.0
+ source = fix-cuda-13.patch
sha512sums =
afbb59125990b02339da6f16f0a8989c8ae62ffea7c66a3cd7dafe36212dc33b96967ed682b520dda72f1fc8b4d346dab24a789dc629c0c5a3ebffc156110015
+ sha512sums =
200c1bc1b9c8fdb0e970cc09752fdc303a98ac9be0921fafce9288f823212cc81beb7678959693d1b9fca58019c23bbc80f92147cf21facdc190f12ecb9b9c4c
pkgname = pocl
=====================================
LICENSES/MIT.txt
=====================================
@@ -0,0 +1,18 @@
+MIT License
+
+Copyright (c) <year> <copyright holders>
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and
+associated documentation files (the "Software"), to deal in the Software
without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the
+following conditions:
+
+The above copyright notice and this permission notice shall be included in all
copies or substantial
+portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT
+LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
AND NONINFRINGEMENT. IN NO
+EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE
+USE OR OTHER DEALINGS IN THE SOFTWARE.
=====================================
PKGBUILD
=====================================
@@ -5,17 +5,25 @@
pkgname=pocl
pkgver=7.0
-pkgrel=4
+pkgrel=5
pkgdesc="Portable OpenCL is an open-source implementation of OpenCL which can
be easily adapted for new targets"
arch=('x86_64')
url="http://portablecl.org/"
license=('MIT')
-source=("git+https://github.com/pocl/pocl#tag=v$pkgver")
+source=("git+https://github.com/pocl/pocl#tag=v$pkgver"
+ fix-cuda-13.patch)
depends=('clang' 'hwloc' 'opencl-icd-loader')
makedepends=('llvm' 'cmake' 'opencl-headers' 'ocl-icd' 'ninja' 'python' 'git'
'nvidia-utils' 'cuda' 'cudnn')
optdepends=('cuda: CUDA driver'
'cudnn: CUDA driver')
-sha512sums=('afbb59125990b02339da6f16f0a8989c8ae62ffea7c66a3cd7dafe36212dc33b96967ed682b520dda72f1fc8b4d346dab24a789dc629c0c5a3ebffc156110015')
+sha512sums=('afbb59125990b02339da6f16f0a8989c8ae62ffea7c66a3cd7dafe36212dc33b96967ed682b520dda72f1fc8b4d346dab24a789dc629c0c5a3ebffc156110015'
+
'200c1bc1b9c8fdb0e970cc09752fdc303a98ac9be0921fafce9288f823212cc81beb7678959693d1b9fca58019c23bbc80f92147cf21facdc190f12ecb9b9c4c')
+
+prepare() {
+ cd "$pkgname"
+ # Fix build with CUDA 13 https://github.com/pocl/pocl/issues/1999
+ patch -p1 < ../fix-cuda-13.patch
+}
build() {
cd "$pkgname"
=====================================
REUSE.toml
=====================================
@@ -20,3 +20,10 @@ path = [
]
SPDX-FileCopyrightText = "Arch Linux contributors"
SPDX-License-Identifier = "0BSD"
+
+[[annotations]]
+path = [
+ "fix-cuda-13.patch",
+]
+SPDX-FileCopyrightText = "pocl contributors"
+SPDX-License-Identifier = "MIT"
=====================================
fix-cuda-13.patch
=====================================
@@ -0,0 +1,16 @@
+diff --git a/lib/CL/devices/cuda/pocl-cuda.c b/lib/CL/devices/cuda/pocl-cuda.c
+index 2cd290d4d..dce6283e4 100644
+--- a/lib/CL/devices/cuda/pocl-cuda.c
++++ b/lib/CL/devices/cuda/pocl-cuda.c
+@@ -753,7 +753,11 @@ pocl_cuda_init (unsigned j, cl_device_id dev, const char
*parameters)
+ /* Create context */
+ if (ret != CL_INVALID_DEVICE)
+ {
++#if CUDA_VERSION >= 13000
++ result = cuCtxCreate (&data->context, NULL, CU_CTX_MAP_HOST,
data->device);
++#else
+ result = cuCtxCreate (&data->context, CU_CTX_MAP_HOST, data->device);
++#endif
+ if (CUDA_CHECK_ERROR (result, "cuCtxCreate"))
+ ret = CL_INVALID_DEVICE;
+ }
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/pocl/-/commit/689ef38de6931b11ff1a626e124154f66d756be1
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/pocl/-/commit/689ef38de6931b11ff1a626e124154f66d756be1
You're receiving this email because of your account on gitlab.archlinux.org.