FreeBSD Bugzilla – Attachment 235059 Details for
Bug 264147
lang/pocl: Update to POCL 3.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch POCL 3.0
pocl_30.patch (text/plain), 3.76 KB, created by
O. Hartmann
on 2022-07-04 04:32:59 UTC
(
hide
)
Description:
Patch POCL 3.0
Filename:
MIME Type:
Creator:
O. Hartmann
Created:
2022-07-04 04:32:59 UTC
Size:
3.76 KB
patch
obsolete
>diff --git a/lang/pocl/Makefile b/lang/pocl/Makefile >index 15d285260bd2..4ed315988ff8 100644 >--- a/lang/pocl/Makefile >+++ b/lang/pocl/Makefile >@@ -1,5 +1,5 @@ > PORTNAME= pocl >-PORTVERSION= 1.8 >+PORTVERSION= 3.0 > DISTVERSIONPREFIX=v > CATEGORIES= lang > >@@ -13,7 +13,7 @@ ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le > ONLY_FOR_ARCHS_REASON= only tested on ${ONLY_FOR_ARCHS:tW:S/ /, /g} > > BUILD_DEPENDS= llvm${LLVM_VERSION}>=10:devel/llvm${LLVM_VERSION} \ >- opencl>=2.2:devel/opencl >+ opencl>=3:devel/opencl > LIB_DEPENDS= libhwloc.so:devel/hwloc2 libOpenCL.so:devel/ocl-icd > RUN_DEPENDS= ${BUILD_DEPENDS} > >@@ -21,7 +21,7 @@ USES= cmake localbase:ldflags ncurses pkgconfig > USE_GITHUB= yes > USE_LDCONFIG= yes > >-LLVM_VERSION= ${MESA_LLVM_VER:U13} >+LLVM_VERSION= ${MESA_LLVM_VER:U14} > CMAKE_ARGS= -DWITH_LLVM_CONFIG="${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config" \ > -DPOCL_INSTALL_PKGCONFIG_DIR="${PREFIX}/libdata/pkgconfig" \ > -DSINGLE_LLVM_LIB=ON \ >diff --git a/lang/pocl/distinfo b/lang/pocl/distinfo >index 5b95d2ff1d4f..a6ffe7171126 100644 >--- a/lang/pocl/distinfo >+++ b/lang/pocl/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1634367852 >-SHA256 (pocl-pocl-v1.8_GH0.tar.gz) = 0f63377ae1826e16e90038fc8e7f65029be4ff6f9b059f6907174b5c0d1f8ab2 >-SIZE (pocl-pocl-v1.8_GH0.tar.gz) = 1614545 >+TIMESTAMP = 1656906684 >+SHA256 (pocl-pocl-v3.0_GH0.tar.gz) = a3fd3889ef7854b90b8e4c7899c5de48b7494bf770e39fba5ad268a5cbcc719d >+SIZE (pocl-pocl-v3.0_GH0.tar.gz) = 1722809 >diff --git a/lang/pocl/pkg-descr b/lang/pocl/pkg-descr >index ebf154f496d4..8959ecfc7d82 100644 >--- a/lang/pocl/pkg-descr >+++ b/lang/pocl/pkg-descr >@@ -1,15 +1,19 @@ >-Portable OpenCL aims to be an efficient open source (MIT-licensed) >-implementation of the OpenCL 1.2 standard. >+Portable OpenCL (pocl) >+---------------------- >+ >+Portable OpenCL (>= 3.0) aims to be an efficient open source >+(MIT-licensed) implementation of the OpenCL 2.X standard with >+adaptions of OpenCL 3.0. > > In addition to producing an easily portable open source OpenCL > implementation, another major goal of the project is improving > performance portability of OpenCL programs with compiler > optimizations, reducing the need for target-dependent manual >-optimizations. At the core of POCL is a set of LLVM passes used >-to statically parallelize multiple work-items with the kernel >+optimizations. At the core of pocl is a set of LLVM passes >+used to statically parallelize multiple work-items with the kernel > compiler, even in the presence of work-group barriers. This enables > parallelization of the fine-grained static concurrency in the work >-groups in multiple ways (SIMD, VLIW, superscalar, ...). >+groups in multiple ways (SIMD, VLIW, superscalar,...). > > The code base is modularized to allow easy adding of new "device drivers" > in the host-device layer. A generic multithreaded "target driver" is >diff --git a/lang/pocl/pkg-message b/lang/pocl/pkg-message >new file mode 100644 >index 000000000000..3dfd31c876d7 >--- /dev/null >+++ b/lang/pocl/pkg-message >@@ -0,0 +1,12 @@ >+ >+Deadlocks (freezes) on FreeBSD: >+ >+OpenCL applications using pocl on FreeBSD must be compiled with >+options CFLAGS+=-pthread or CXXFLAGS+=-pthread, otherwise someone risk >+that a library may not initialize the threading on BSD independently, >+even if an ICD loader is used. >+ >+See: >+ http://www.freebsd.org/cgi/query-pr.cgi?pr=163512 >+ >+(Source: http://portablecl.org/docs/html/faq.html?highlight=freebsd) >diff --git a/lang/pocl/pkg-plist b/lang/pocl/pkg-plist >index 20639933c7bc..4858203a74a2 100644 >--- a/lang/pocl/pkg-plist >+++ b/lang/pocl/pkg-plist >@@ -2,8 +2,7 @@ bin/poclcc > etc/OpenCL/vendors/pocl.icd > lib/libpocl.so > lib/libpocl.so.2 >-lib/libpocl.so.2.8.0 >-lib/pocl/libllvmopencl.so >+lib/libpocl.so.2.9.0 > lib/pocl/libpocl-devices-basic.so > lib/pocl/libpocl-devices-pthread.so > libdata/pkgconfig/pocl.pc
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 264147
: 235059