FreeBSD Bugzilla – Attachment 162454 Details for
Bug 204024
[patch] [new port] java/aparapi: data parallel workflows for Java
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
port shar archive
aparapi.shar (text/plain), 11.55 KB, created by
Johannes M Dieterich
on 2015-10-26 05:14:34 UTC
(
hide
)
Description:
port shar archive
Filename:
MIME Type:
Creator:
Johannes M Dieterich
Created:
2015-10-26 05:14:34 UTC
Size:
11.55 KB
patch
obsolete
># 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: ># ># aparapi/Makefile ># aparapi/distinfo ># aparapi/files ># aparapi/pkg-descr ># aparapi/pkg-plist ># aparapi/files/patch-build.xml ># aparapi/files/patch-com.amd.aparapi.jni_build.xml ># aparapi/files/patch-com.amd.aparapi.jni_src_cpp_Common.h ># aparapi/files/patch-com.amd.aparapi_src_java_com_amd_aparapi_internal_opencl_OpenCLLoader.java ># >echo x - aparapi/Makefile >sed 's/^X//' >aparapi/Makefile << 'f4567a0a5466337550d9cb9ab73d443e' >X# Created by: Johannes Dieterich <dieterich@ogolem.org> >X# $FreeBSD$ >X >XPORTNAME= aparapi >XPORTVERSION= 1.0.0 >XDISTVERSIONSUFFIX= -SNAPSHOT >XCATEGORIES= java lang >X >XMAINTAINER= dieterich@ogolem.org >XCOMMENT= Open source API for expressing data parallel workflows in Java >X >XLICENSE= BSD3CLAUSE >XLICENSE_FILE= ${WRKSRC}/LICENSE.TXT >X >XBUILD_DEPENDS= opencl>=0:${PORTSDIR}/devel/opencl >XLIB_DEPENDS= libOpenCL.so:${PORTSDIR}/devel/ocl-icd >XRUN_DEPENDS= opencl>=0:${PORTSDIR}/devel/opencl >X >XBROKEN_FreeBSD_9= OpenCL ports like aparapi are only supported on FreeBSD 10.1 and newer >X >XONLY_FOR_ARCHS= amd64 i386 >X >XUSE_GITHUB= yes >XGH_ACCOUNT= aparapi >XGH_PROJECT= aparapi >X >XUSE_JAVA= yes >XJAVA_VERSION= 1.7+ >XUSE_ANT= yes >XALL_TARGET= dist >X >XUSES= dos2unix >X >Xdo-install: >X (cd ${WRKSRC}/dist_freebsd && ${INSTALL_DATA} aparapi.jar ${STAGEDIR}${JAVAJARDIR}) >X (cd ${WRKSRC}/dist_freebsd && ${INSTALL_LIB} libaparapi.so ${STAGEDIR}${PREFIX}/lib) >X >X.include <bsd.port.mk> >f4567a0a5466337550d9cb9ab73d443e >echo x - aparapi/distinfo >sed 's/^X//' >aparapi/distinfo << '0b056171ad209859b30baa599946e9c0' >XSHA256 (aparapi-aparapi-1.0.0-SNAPSHOT_GH0.tar.gz) = 4b3a4662476746406f2138e372730a64e566b87a464a767dd878e9794f30101a >XSIZE (aparapi-aparapi-1.0.0-SNAPSHOT_GH0.tar.gz) = 5431817 >0b056171ad209859b30baa599946e9c0 >echo c - aparapi/files >mkdir -p aparapi/files > /dev/null 2>&1 >echo x - aparapi/pkg-descr >sed 's/^X//' >aparapi/pkg-descr << '12052705bf01713aa20913ca14082253' >Xaparapi >X >Xopen source API for expressing data parallel workflows in Java >X >XOriginally an AMD product, Aparapi was released to open source on September >X14, 2011. Aparapi is an API for expressing data parallel workloads in Java >Xand a runtime component capable of converting the Java# bytecode of compatible >Xworkloads into OpenCL# so that it can be executed on a variety of GPU devices. >X >XWWW: https://github.com/aparapi/aparapi >12052705bf01713aa20913ca14082253 >echo x - aparapi/pkg-plist >sed 's/^X//' >aparapi/pkg-plist << '777cf4736693746f3d766116a2f31096' >Xlib/libaparapi.so >X%%JAVAJARDIR%%/aparapi.jar >777cf4736693746f3d766116a2f31096 >echo x - aparapi/files/patch-build.xml >sed 's/^X//' >aparapi/files/patch-build.xml << 'b046b70d71dc93b5f960f6bbde6dbb39' >X--- build.xml.orig 2015-09-21 01:20:25 UTC >X+++ build.xml >X@@ -5,8 +5,9 @@ >X >X <condition property="x86_or_x86_64" value="x86" else="x86_64"> <or><os arch="x86" /><os arch="i386"/></or> </condition> >X <condition property="dist" value="dist_windows_${x86_or_x86_64}"><os family="windows" /></condition> >X- <condition property="dist" value="dist_linux_${x86_or_x86_64}"><and><not><os family="mac"/></not><os family="unix" /></and></condition> >X+ <condition property="dist" value="dist_linux_${x86_or_x86_64}"><and><not><os family="mac"/></not><not><os name="FreeBSD"/></not><os family="unix" /></and></condition> >X <condition property="dist" value="dist_mac_${x86_or_x86_64}"><os family="mac" /></condition> >X+ <condition property="dist" value="dist_freebsd"><os name="FreeBSD" /></condition> >X >X <target name="help"> >X <echo message="Available targets are:-"/> >b046b70d71dc93b5f960f6bbde6dbb39 >echo x - aparapi/files/patch-com.amd.aparapi.jni_build.xml >sed 's/^X//' >aparapi/files/patch-com.amd.aparapi.jni_build.xml << '85586ec4d5142f193a411cf3bf0b7b47' >X--- com.amd.aparapi.jni/build.xml.orig 2015-09-21 01:20:25 UTC >X+++ com.amd.aparapi.jni/build.xml >X@@ -71,6 +71,23 @@ First consider editing the properties in >X </and> >X </condition> >X >X+ <available property="freebsd.opencl.exists" file="/usr/local/lib/libOpenCL.so" type="file"/> >X+ <condition property="amd.app.sdk.dir" value="/usr/local"> >X+ <and> >X+ <os name="FreeBSD" /> >X+ <isset property="freebsd.opencl.exists" /> >X+ <not> >X+ <isset property="win32.amd.app.sdk.exists" /> >X+ </not> >X+ <not> >X+ <isset property="win64.amd.app.sdk.exists" /> >X+ </not> >X+ <not> >X+ <isset property="linux.amd.app.sdk.exists" /> >X+ </not> >X+ </and> >X+ </condition> >X+ >X <echo message="amd.app.sdk.dir ${amd.app.sdk.dir}"/> >X >X <!-- Check for Visual Studio Compiler --> >X@@ -300,9 +317,16 @@ First consider editing the properties in >X <not> >X <os family="mac" /> >X </not> >X+ <not> >X+ <os name="FreeBSD" /> >X+ </not> >X </and> >X </condition> >X >X+ <condition property="use.clang_freebsd"> >X+ <os name="FreeBSD" /> >X+ </condition> >X+ >X <condition property="use.gcc_mac"> >X <os family="mac" /> >X </condition> >X@@ -352,6 +376,9 @@ First consider editing the properties in >X <os family="mac" /> >X </not> >X <not> >X+ <os name="FreeBSD" /> >X+ </not> >X+ <not> >X <isset property="amd.app.sdk.dir" /> >X </not> >X </and> >X@@ -485,6 +512,45 @@ First consider editing the properties in >X </exec> >X </target> >X >X+ <target name="clang_freebsd" if="use.clang_freebsd"> >X+ <mkdir dir="${basedir}/dist"/> >X+ <echo message="freebsdcc ${os.arch}" /> >X+ <exec executable="clang++" failonerror="true"> >X+ <arg value="-m${gcc.m.value}" /> >X+ <arg value="-O3" /> >X+ <arg value="-g" /> >X+ <arg value="-fPIC" /> >X+ <arg value="-DCL_USE_DEPRECATED_OPENCL_1_1_APIS"/> >X+ <arg value="-I${java.home}/../include" /> >X+ <arg value="-I${java.home}/../include/freebsd" /> >X+ <arg value="-Iinclude" /> >X+ <arg value="-I/usr/local/include" /> >X+ <arg value="-Isrc/cpp" /> >X+ <arg value="-Isrc/cpp/runKernel" /> >X+ <arg value="-Isrc/cpp/invoke" /> >X+ <arg value="-shared" /> >X+ <arg value="-o" /> >X+ <arg value="${basedir}/dist/libaparapi.so" /> >X+ <arg value="src/cpp/runKernel/Aparapi.cpp" /> >X+ <arg value="src/cpp/runKernel/ArrayBuffer.cpp" /> >X+ <arg value="src/cpp/runKernel/AparapiBuffer.cpp" /> >X+ <arg value="src/cpp/runKernel/Config.cpp" /> >X+ <arg value="src/cpp/runKernel/JNIContext.cpp" /> >X+ <arg value="src/cpp/runKernel/KernelArg.cpp" /> >X+ <arg value="src/cpp/runKernel/ProfileInfo.cpp" /> >X+ <arg value="src/cpp/runKernel/Range.cpp" /> >X+ <arg value="src/cpp/invoke/OpenCLJNI.cpp" /> >X+ <arg value="src/cpp/invoke/OpenCLArgDescriptor.cpp" /> >X+ <arg value="src/cpp/invoke/OpenCLMem.cpp" /> >X+ <arg value="src/cpp/CLHelper.cpp" /> >X+ <arg value="src/cpp/classtools.cpp" /> >X+ <arg value="src/cpp/JNIHelper.cpp" /> >X+ <arg value="src/cpp/agent.cpp" /> >X+ <arg value="-L/usr/local/lib" /> >X+ <arg value="-lOpenCL" /> >X+ </exec> >X+ </target> >X+ >X <target name="gcc_mac" if="use.gcc_mac"> >X <mkdir dir="${basedir}/dist"/> >X <echo message="gcc ${os.arch}" /> >X@@ -575,7 +641,7 @@ First consider editing the properties in >X </exec> >X </target> >X >X- <target name="build" depends="clean, javah, msvc, gcc, gcc_mac" /> >X+ <target name="build" depends="clean, javah, msvc, gcc, gcc_mac, clang_freebsd" /> >X >X <target name="msvc_cltest" if="use.msvc"> >X <mkdir dir="${basedir}\dist"/> >X@@ -627,6 +693,24 @@ First consider editing the properties in >X </exec> >X </target> >X >X+ <target name="freebsd_cltest" if="use.clang_freebsd"> >X+ <mkdir dir="${basedir}/dist"/> >X+ <echo message="clang cltest ${os.arch}" /> >X+ <exec executable="clang++" failonerror="true"> >X+ <arg value="-O3" /> >X+ <arg value="-g" /> >X+ <arg value="-fPIC" /> >X+ <arg value="-DCL_USE_DEPRECATED_OPENCL_1_1_APIS"/> >X+ <arg value="-I${java.home}/../include" /> >X+ <arg value="-I${java.home}/../include/freebsd" /> >X+ <arg value="-I/usr/local/include" /> >X+ <arg value="src/cpp/cltest.cpp" /> >X+ <arg value="-L/usr/local/lib -lOpenCL" /> >X+ <arg value="-o" /> >X+ <arg value="${basedir}/dist/cltest" /> >X+ </exec> >X+ </target> >X+ >X <target name="gcc_cltest" if="use.gcc"> >X <mkdir dir="${basedir}/dist"/> >X <echo message="gcc cltest ${os.arch}" /> >X@@ -674,6 +758,20 @@ First consider editing the properties in >X </exec> >X </target> >X >X- <target name="cltest" depends="check,msvc_cltest,mac_cltest,gcc_cltest" /> >X- <target name="clt" depends="check,gcc_clt,mac_clt" /> >X+ <target name="freebsd_clt" if="use.clang_freebsd"> >X+ <mkdir dir="${basedir}/dist"/> >X+ <echo message="clang clt ${os.arch}" /> >X+ <exec executable="clang++" failonerror="true"> >X+ <arg value="-O3" /> >X+ <arg value="-g" /> >X+ <arg value="-fPIC" /> >X+ <arg value="src/cpp/classtools.cpp" /> >X+ <arg value="src/cpp/classtoolstest.cpp" /> >X+ <arg value="-o" /> >X+ <arg value="${basedir}/clt" /> >X+ </exec> >X+ </target> >X+ >X+ <target name="cltest" depends="check,msvc_cltest,mac_cltest,freebsd_cltest,gcc_cltest" /> >X+ <target name="clt" depends="check,gcc_clt,mac_clt,freebsd_clt" /> >X </project> >85586ec4d5142f193a411cf3bf0b7b47 >echo x - aparapi/files/patch-com.amd.aparapi.jni_src_cpp_Common.h >sed 's/^X//' >aparapi/files/patch-com.amd.aparapi.jni_src_cpp_Common.h << '7103729c4e709260f661b4850596f157' >X--- com.amd.aparapi.jni/src/cpp/Common.h.orig 2015-09-21 01:20:25 UTC >X+++ com.amd.aparapi.jni/src/cpp/Common.h >X@@ -44,7 +44,7 @@ >X #include <string.h> >X #include <time.h> >X >X-#ifndef __APPLE__ >X+#if not defined __APPLE__ && not defined __FreeBSD__ >X #include <malloc.h> >X #endif >X >7103729c4e709260f661b4850596f157 >echo x - aparapi/files/patch-com.amd.aparapi_src_java_com_amd_aparapi_internal_opencl_OpenCLLoader.java >sed 's/^X//' >aparapi/files/patch-com.amd.aparapi_src_java_com_amd_aparapi_internal_opencl_OpenCLLoader.java << 'eb593405dc187403e00a4a4a3ffaff4c' >X--- com.amd.aparapi/src/java/com/amd/aparapi/internal/opencl/OpenCLLoader.java.orig 2015-09-21 01:20:26 UTC >X+++ com.amd.aparapi/src/java/com/amd/aparapi/internal/opencl/OpenCLLoader.java >X@@ -26,10 +26,8 @@ public class OpenCLLoader extends OpenCL >X logger.fine("arch = " + arch); >X String aparapiLibraryName = null; >X >X- if (arch.equals("amd64") || arch.equals("x86_64")) { >X- aparapiLibraryName = "aparapi_x86_64"; >X- } else if (arch.equals("x86") || arch.equals("i386")) { >X- aparapiLibraryName = "aparapi_x86"; >X+ if (arch.equals("amd64") || arch.equals("x86_64") || arch.equals("x86") || arch.equals("i386")) { >X+ aparapiLibraryName = "aparapi"; >X } else { >X logger.warning("Expected property os.arch to contain amd64, x86_64, x86 or i386 but instead found " + arch >X + " as a result we don't know which aparapi to attempt to load."); >eb593405dc187403e00a4a4a3ffaff4c >exit >
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 Raw
Actions:
View
Attachments on
bug 204024
: 162454