From 4b6140e9b007721dc06132ab9e3b2dd90e9b5d6d Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <jeffrey.freeman@syncleus.com> Date: Mon, 17 Oct 2016 15:51:24 -0400 Subject: [PATCH] Added effects. --- examples/effects/.gitignore | 1 - examples/effects/.project | 17 ------- examples/effects/build.xml | 51 ------------------- .../com/syncleus/aparapi/examples/All.java | 4 ++ .../aparapi/examples/effects/Main.java | 10 ++++ 5 files changed, 14 insertions(+), 69 deletions(-) delete mode 100644 examples/effects/.gitignore delete mode 100644 examples/effects/.project delete mode 100644 examples/effects/build.xml rename {examples/effects/src/com/amd => src/main/java/com/syncleus}/aparapi/examples/effects/Main.java (97%) diff --git a/examples/effects/.gitignore b/examples/effects/.gitignore deleted file mode 100644 index 840e7d31..00000000 --- a/examples/effects/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/classes/ diff --git a/examples/effects/.project b/examples/effects/.project deleted file mode 100644 index 525cddc8..00000000 --- a/examples/effects/.project +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>effects</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.jdt.core.javabuilder</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.jdt.core.javanature</nature> - </natures> -</projectDescription> diff --git a/examples/effects/build.xml b/examples/effects/build.xml deleted file mode 100644 index 056f2469..00000000 --- a/examples/effects/build.xml +++ /dev/null @@ -1,51 +0,0 @@ -<?xml version="1.0"?> - -<project name="effects" default="build" basedir="."> - - <!-- Ideally this would be the latest version of Java but not everyone is going to have it installed --> - <!-- Additionally we want to avoid "Class not found: javac1.8" errors from old Ant versions (i.e. Eclipse) --> - <property name="build.compiler" value="javac1.7" /> - <property name="ant.build.javac.source" value="1.7" /> - <property name="ant.build.javac.target" value="1.7" /> - - <path id="compiler.class.path"> - <pathelement path="../../com.syncleus.aparapi/dist/aparapi.jar" /> - </path> - - <path id="runtime.class.path" cache="true"> - <path refid="compiler.class.path" /> - <pathelement path="${ant.project.name}.jar" /> - </path> - - <target name="build" depends="clean"> - <mkdir dir="classes" /> - <javac srcdir="src" destdir="classes" debug="on" includeantruntime="false"> - <classpath refid="compiler.class.path" /> - </javac> - <jar jarfile="${ant.project.name}.jar" basedir="classes" /> - </target> - - <target name="clean"> - <delete dir="classes" /> - <delete file="${ant.project.name}.jar" /> - </target> - - <target name="run-gpu"> - <java classname="com.syncleus.aparapi.examples.effects.Main" fork="true"> - <classpath refid="runtime.class.path" /> - <sysproperty key="java.library.path" path="..\..\com.syncleus.aparapi.jni\dist" /> - <sysproperty key="com.syncleus.aparapi.executionMode" value="GPU" /> - </java> - </target> - - <target name="run-jtp"> - <java classname="com.syncleus.aparapi.examples.effects.Main" fork="true"> - <classpath refid="runtime.class.path" /> - <sysproperty key="java.library.path" path="..\..\com.syncleus.aparapi.jni\dist" /> - <sysproperty key="com.syncleus.aparapi.executionMode" value="JTP" /> - </java> - </target> - - <target name="run" depends="run-gpu" /> - -</project> diff --git a/src/main/java/com/syncleus/aparapi/examples/All.java b/src/main/java/com/syncleus/aparapi/examples/All.java index 513331cd..21561e93 100644 --- a/src/main/java/com/syncleus/aparapi/examples/All.java +++ b/src/main/java/com/syncleus/aparapi/examples/All.java @@ -41,6 +41,7 @@ public class All { System.out.println(" 24) Configuration - Legacy Configuration"); System.out.println(" 25) Configuration - Profiling"); System.out.println(" 26) Configuration - Profiling (no binary)"); + System.out.println(" 27) Effects"); System.out.println(); Scanner in = new Scanner(System.in); @@ -149,6 +150,9 @@ public class All { case "26": com.syncleus.aparapi.examples.configuration.ProfilingDemoNoBinaryCaching.main(args); break; + case "27": + com.syncleus.aparapi.examples.effects.Main.main(args); + break; default: System.out.println("Invalid selection."); } diff --git a/examples/effects/src/com/amd/aparapi/examples/effects/Main.java b/src/main/java/com/syncleus/aparapi/examples/effects/Main.java similarity index 97% rename from examples/effects/src/com/amd/aparapi/examples/effects/Main.java rename to src/main/java/com/syncleus/aparapi/examples/effects/Main.java index 29c127eb..3286f51b 100644 --- a/examples/effects/src/com/amd/aparapi/examples/effects/Main.java +++ b/src/main/java/com/syncleus/aparapi/examples/effects/Main.java @@ -1,3 +1,13 @@ +/** + * This product currently only contains code developed by authors + * of specific components, as identified by the source code files. + * + * Since product implements StAX API, it has dependencies to StAX API + * classes. + * + * For additional credits (generally to people who reported problems) + * see CREDITS file. + */ /* Copyright (c) 2010-2011, Advanced Micro Devices, Inc. All rights reserved. -- GitLab