# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # devel/pocl # devel/pocl/pkg-descr # devel/pocl/pkg-message # devel/pocl/files # devel/pocl/files/patch-pocl.icd.in # devel/pocl/files/patch-configure.ac # devel/pocl/files/patch-Makefile.am # devel/pocl/pkg-plist # devel/pocl/Makefile # devel/pocl/distinfo # echo c - devel/pocl mkdir -p devel/pocl > /dev/null 2>&1 echo x - devel/pocl/pkg-descr sed 's/^X//' >devel/pocl/pkg-descr << '8eb1f5545c99298b62a5c8486e364cb0' XPortable OpenCL (pocl) X---------------------- X XPortable OpenCL aims to be an efficient open source (MIT-licensed) Ximplementation of the OpenCL 1.2 standard. X XIn addition to producing an easily portable open source OpenCL Ximplementation, another major goal of the project is improving Xperformance portability of OpenCL programs with compiler Xoptimizations, reducing the need for target-dependent manual Xoptimizations. At the core of pocl is a set of LLVM passes Xused to statically parallelize multiple work-items with the kernel Xcompiler, even in the presence of work-group barriers. This enables Xparallelization of the fine-grained static concurrency in the work Xgroups in multiple ways (SIMD, VLIW, superscalar,...). X XThe code base is modularized to allow easy adding of new "device drivers" Xin the host-device layer. A generic multithreaded "target driver" is Xincluded. It allows running OpenCL applications on a host that supports Xthe pthread library with multithreading at the work group granularity. X XLinks X----- XHome page/wiki: WWW: http://pocl.sourceforge.net/ XIRC: #pocl @ irc.oftc.net X 8eb1f5545c99298b62a5c8486e364cb0 echo x - devel/pocl/pkg-message sed 's/^X//' >devel/pocl/pkg-message << '63db88b7bb641b9242ec726ee1689006' X XWhen using ICD, make sure you have set the environment variable X XOCL_ICD_VENDORS X Xproperly. Usually, this should point to X${PREFIX}/etc/OpenCL/vendors/ Xwith ${PREFIX} set to /usr/local in the standard environment. X 63db88b7bb641b9242ec726ee1689006 echo c - devel/pocl/files mkdir -p devel/pocl/files > /dev/null 2>&1 echo x - devel/pocl/files/patch-pocl.icd.in sed 's/^X//' >devel/pocl/files/patch-pocl.icd.in << '6e75829a940c7a2e407d2bb8471e99de' X--- ./pocl.icd.in.orig 2014-06-20 18:21:22.000000000 +0200 X+++ ./pocl.icd.in 2014-06-20 18:21:36.000000000 +0200 X@@ -1 +1 @@ X-@libdir@/libpocl.so.VER X+@libdir@/libpocl.so 6e75829a940c7a2e407d2bb8471e99de echo x - devel/pocl/files/patch-configure.ac sed 's/^X//' >devel/pocl/files/patch-configure.ac << 'f9ce6cd3f3d15dd3ea328f030514185b' X--- configure.ac.orig 2013-12-22 22:24:15.000000000 +0100 X+++ configure.ac 2013-12-22 22:26:06.000000000 +0100 X@@ -79,7 +79,7 @@ X # LLVM configuration X # X AC_ARG_VAR([LLVM_CONFIG], [Program used to retrieve LLVM options and binaries]) X-AC_PATH_PROGS([LLVM_CONFIG], [llvm-config llvm-config-mp-3.3 llvm-config-3.3 llvm-config33 llvm-config-mp-3.4 llvm-config-3.4 llvm-config34 llvm-config-mp-3.2 llvm-config-3.2 llvm-config32 ]) X+AC_PATH_PROGS([LLVM_CONFIG], [llvm-config llvm-config-mp-3.4 llvm-config-3.4 llvm-config34 llvm-config-mp-3.3 llvm-config-3.3 llvm-config33 llvm-config-mp-3.2 llvm-config-3.2 llvm-config32 ]) X test -z "$LLVM_CONFIG" && AC_MSG_FAILURE([no llvm-config found in \$PATH]) X X LLVM_VERSION=`$LLVM_CONFIG --version` f9ce6cd3f3d15dd3ea328f030514185b echo x - devel/pocl/files/patch-Makefile.am sed 's/^X//' >devel/pocl/files/patch-Makefile.am << '8da6075db7fe6e9917e74199902fcc3f' X--- Makefile.am.orig 2014-01-07 09:50:56.000000000 +0100 X+++ Makefile.am 2014-06-20 17:07:10.000000000 +0200 X@@ -26,7 +26,11 @@ X X ACLOCAL_AMFLAGS = -I m4 X X+if FREEBSD_HOST_OS X+pkgconfigdir = $(PKGCONFIGDIR) X+else X pkgconfigdir = $(libdir)/pkgconfig X+endif X pkgconfig_DATA = pocl.pc X X CLEANFILES = install-paths.h X@@ -67,7 +71,7 @@ X echo "#define PKGDATADIR \"${pkgdatadir}\"" > $@.new X echo "#define PKGLIBEXECDIR \"${pkglibexecdir}\"" >> $@.new X echo "#define PKGINCLUDEDIR \"${pkgincludedir}\"" >> $@.new X- @if cmp --quiet $@.new $@ ; then \ X+ @if cmp $@.new $@ ; then \ X : "Paths not changed" ;\ X $(RM) $@.new ;\ X else \ 8da6075db7fe6e9917e74199902fcc3f echo x - devel/pocl/pkg-plist sed 's/^X//' >devel/pocl/pkg-plist << '841d97541edc0ba8198a3caa5df126f9' Xbin/pocl-standalone Xetc/OpenCL/vendors/pocl.icd Xinclude/poclu.h Xinclude/utlist.h Xlib/libpocl.a Xlib/libpocl.so Xlib/libpocl.so.1 Xlib/libpocl.so.1.4.0 Xlib/libpoclu.a Xlib/libpoclu.so Xlib/libpoclu.so.1 Xlib/libpoclu.so.1.4.0 Xlib/pocl/llvmopencl.a Xlib/pocl/llvmopencl.so Xlib/pocl/llvmopencl.so.5 Xlib/pocl/llvmopencl.so.5.0.0 Xlibdata/pkgconfig/pocl.pc X%%DATADIR%%/include/_kernel.h X%%DATADIR%%/include/_kernel_c.h X%%DATADIR%%/include/pocl.h X%%DATADIR%%/include/pocl_device.h X%%DATADIR%%/include/pocl_features.h X%%DATADIR%%/include/pocl_tests.h X%%DATADIR%%/include/pocl_types.h X%%DATADIR%%/kernel-amd64-portbld-freebsd11.0.bc 841d97541edc0ba8198a3caa5df126f9 echo x - devel/pocl/Makefile sed 's/^X//' >devel/pocl/Makefile << 'ab34eb54ec8451766e499df4b4f229e7' X# Created by: Oliver Hartmann X# $FreeBSD: head/devel/freeocl/Makefile 335626 2013-12-04 18:48:48Z makc $ X XPORTNAME= pocl XPORTVERSION= 0.11 XCATEGORIES= devel X XMAINTAINER= ohartman@zedat.fu-berlin.de XCOMMENT= POrtable Computing Language (POCL) X XMASTER_SITES= SF/pocl/ XDISTNAME= ${PORTNAME}-${PORTVERSION:C/\.[0-9]$//} X XLICENSE= GPLv3 XCONFLICTS= freeocl* X XNOT_FOR_ARCHS= i386 X XLLVM_VERSION= 36 XCLANG_VERSION= ${LLVM_VERSION} X XBUILD_DEPENDS= ${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config:${PORTSDIR}/devel/llvm${LLVM_VERSION} \ X clang${LLVM_VERSION}:${PORTSDIR}/lang/clang${LLVM_VERSION} X XLIB_DEPENDS= libhwloc.so:${PORTSDIR}/devel/hwloc X XUSE_LDCONFIG= yes XUSE_GL= yes XUSES= pkgconfig gmake libtool:libltdl autoreconf XGNU_CONFIGURE= yes X XMAKE_ARGS+= PKGCONFIGDIR=${PREFIX}/libdata/pkgconfig X XCPPFLAGS+= -I${LOCALBASE}/include XLDFLAGS+= -L${LOCALBASE}/lib X XCONFIGURE_ENV= LLVM_CONFIG="${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config" XCONFIGURE_ENV+= PKGCONFIGDIR="${PKGCONFIGDIR}" X XOCL_ICD_VENDORS?= ${PREFIX}/etc/OpenCL/vendors X XOPTIONS_DEFINE= KHRONOS XOPTIONS_GROUP= TEST XOPTIONS_GROUP_TEST= ALLTSTS OPENCL_BOOK VIENNACL RODINIA PARBOIL AMD AMDSDK29 VEXCL PIGLIT HALIDE CLOVERLEAFE XALLTSTS_DESC= All Examples XOPENCL_BOOK_DESC= OpenCL Book examples XVIENNACL_DESC= ViennaCL examples XRODINIA_DESC= Rodinia examples XPARBOIL_DESC= Parboil examples XAMD_DESC= AMD examples XAMDSDK29_DESC= AMD SDK 2.9 examples XVEXCL_DESC= VexCL examples XPIGLIT_DESC= Piglit examples XHALIDE_DESC= Halide examples XCLOVERLEAFE_DESC= CloverLeafe examples X XOPTIONS_RADIO= ICD XOPTIONS_RADIO_ICD= KHRONOS_ICD OCL_ICD XOPTIONS_DEFAULT= KHRONOS OCL_ICD X XTESTSUITE_DESC= Enable testsuite(s) XOCL_ICD_DESC= Select ICD loader: ocl-icd XKHRONOS_ICD_DESC= Select ICD loader: opencl-icd (Khronos) XKHRONOS_DESC= Use Headers from Khronos Group (devel/opencl) X X.include X X# X# Targets for --enable-testsuites: all,opencl-book-samples,ViennaCL,\ X# Rodinia,Parboil,amd,amdsdk2_9,VexCL,Piglit,Halide,CloverLeaf X# X.if ${PORT_OPTIONS:MALLTSTS} XTSTSUIT+= all, X.endif X.if ${PORT_OPTIONS:MOPENCL_BOOK} XTSTSUIT+= opencl-book-samples, X.endif X.if ${PORT_OPTIONS:MVIENNACL} XTSTSUIT+= ViennaCL, X.endif X.if ${PORT_OPTIONS:MRODINIA} XTSTSUIT+= Rodinia, X.endif X.if ${PORT_OPTIONS:MPARBOIL} XTSTSUIT+= Parboil, X.endif X.if ${PORT_OPTIONS:MAMD} XTSTSUIT+= amd, X.endif X.if ${PORT_OPTIONS:MAMDSDK29} XTSTSUIT+= amdsdk2_9, X.endif X.if ${PORT_OPTIONS:MVEXCL} XTSTSUIT+= VexCL, X.endif X.if ${PORT_OPTIONS:MPIGLIT} XTSTSUIT+= Piglit, X.endif X.if ${PORT_OPTIONS:MHALIDE} XTSTSUIT+= Halide, X.endif X.if ${PORT_OPTIONS:MCLOVERLEAFE} XTSTSUIT+= CloverLeafe, X.endif X.if ${PORT_OPTIONS:MALLTSTS} || ${PORT_OPTIONS:MALL} || ${PORT_OPTIONS:MOPENCL_BOOK} || \ X ${PORT_OPTIONS:MVIENNACL} || ${PORT_OPTIONS:MRODINIA} || ${PORT_OPTIONS:MPARBOIL} || \ X ${PORT_OPTIONS:MAMD} || ${PORT_OPTIONS:MAMDSDK29} || ${PORT_OPTIONS:MVEXCL} || \ X ${PORT_OPTIONS:MPIGLIT || ${PORT_OPTIONS:MHALIDE} || ${PORT_OPTIONS:MCLOVERLEAFE}} XCONFIGURE_ARGS+= --enable-testsuites="${TSTSUIT}" --with-boost XLIB_DEPENDS+= libboost_atomic.so:${PORTSDIR}/devel/boost-libs XBUILD_DEPENDS+= wget:${PORTSDIR}/ftp/wget XBUILD_DEPENDS+= ${LOCALBASE}/include/FreeImage.h:${PORTSDIR}/graphics/freeimage XALL_TARGET+= check X.endif X X.if ${PORT_OPTIONS:MKHRONOS} XCONFIGURE_ARGS+= --disable-install-opencl-headers XBUILD_DEPENDS+= ${LOCALBASE}/include/CL/cl.h:${PORTSDIR}/devel/opencl X.else XCONFIGURE_ARGS+= --enable-install-opencl-headers XCONFLICTS+= opencl* X.endif X X.if ${PORT_OPTIONS:MOCL_ICD} XCONFIGURE_ARGS+= --enable-icd --disable-direct-linkage XBUILD_DEPENDS+= ${LOCALBASE}/include/ocl_icd.h:${PORTSDIR}/devel/ocl-icd XCONFIGURE_ENV+= BUILD_ICD="TRUE" X.elif ${PORT_OPTIONS:MKHRONOS_ICD} XCONFIGURE_ARGS+= --enable-icd --disable-direct-linkage XBUILD_DEPENDS+= ${LOCALBASE}/lib/libIcdLog.so:${PORTSDIR}/devel/opencl-icd XCONFIGURE_ENV+= BUILD_ICD="TRUE" X.else XCONFIGURE_ARGS+= --disable-icd --enable-direct-linkage X.endif X Xpost-install: X ${INSTALL_DATA} ${WRKSRC}/pocl.pc ${PKGCONFIGDIR}/pocl.pc X X.include ab34eb54ec8451766e499df4b4f229e7 echo x - devel/pocl/distinfo sed 's/^X//' >devel/pocl/distinfo << '5d1cd5637a54cf0d15d02a142328bad8' XSHA256 (pocl-0.11.tar.gz) = 24bb801fb87d104b66faaa95d1890776fdeabb37ad1b12fb977281737c7f29bb XSIZE (pocl-0.11.tar.gz) = 1561743 5d1cd5637a54cf0d15d02a142328bad8 exit