From b3397cc8d4591b24dcc2ac7a007eaf50ad21881b Mon Sep 17 00:00:00 2001
From: Gary Frost <frost.gary@gmail.com>
Date: Wed, 9 Nov 2011 18:12:54 +0000
Subject: [PATCH] Added run-jtp and run-gpu targets

---
 examples/effects/build.xml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/examples/effects/build.xml b/examples/effects/build.xml
index 8415999c..9366c791 100644
--- a/examples/effects/build.xml
+++ b/examples/effects/build.xml
@@ -24,7 +24,7 @@
       <delete file="${ant.project.name}.jar"/>
    </target>
 
-   <target name="run" >
+   <target name="run-gpu" >
       <java classname="com.amd.aparapi.examples.effects.Main" fork="true">
          <classpath refid="runtime.class.path"/>
          <sysproperty key="java.library.path" path="..\..\com.amd.aparapi.jni"/>
@@ -32,4 +32,13 @@
       </java>
    </target>
 
+   <target name="run-jtp" >
+      <java classname="com.amd.aparapi.examples.effects.Main" fork="true">
+         <classpath refid="runtime.class.path"/>
+         <sysproperty key="java.library.path" path="..\..\com.amd.aparapi.jni"/>
+         <sysproperty key="com.amd.aparapi.executionMode" value="JTP"/>
+      </java>
+   </target>
+   <target name="run" depends="run-gpu"/>
+
 </project>
-- 
GitLab