Commit 85ce2dbf authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman 💥
Browse files

Moved mandle sample tot he active part of the project.

parent 56d8ef72
......@@ -86,7 +86,7 @@
</dependencies>
<build>
<defaultGoal>exec:java</defaultGoal>
<defaultGoal>clean package exec:java</defaultGoal>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
......
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>mandel</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>
<?xml version="1.0"?>
<project name="mandel" 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>
<pathelement path="../../com.syncleus.aparapi/dist/aparapi.jar" />
</classpath>
</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-mandel-gpu">
<java classname="com.syncleus.aparapi.sample.mandel.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-mandel-jtp">
<java classname="com.syncleus.aparapi.sample.mandel.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-mandel2d-gpu">
<java classname="com.syncleus.aparapi.sample.mandel.Main2D" 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-mandel2d-jtp">
<java classname="com.syncleus.aparapi.sample.mandel.Main2D" 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-agent-gpu">
<java classname="com.syncleus.aparapi.sample.mandel.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" />
<sysproperty key="com.syncleus.aparapi.useAgent" value="true" />
</java>
</target>
<target name="run-agent-jtp">
<java classname="com.syncleus.aparapi.sample.mandel.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" />
<sysproperty key="com.syncleus.aparapi.useAgent" value="true" />
</java>
</target>
</project>
java ^
-agentpath:../../com.syncleus.aparapi.jni/dist/aparapi_x86_64.dll ^
-Djava.library.path=../../com.syncleus.aparapi.jni/dist ^
-Dcom.syncleus.aparapi.useAgent=true ^
-Dcom.syncleus.aparapi.executionMode=%1 ^
-Dcom.syncleus.aparapi.logLevel=OFF^
-Dcom.syncleus.aparapi.enableVerboseJNI=false ^
-Dcom.syncleus.aparapi.enableProfiling=false ^
-Dcom.syncleus.aparapi.enableShowGeneratedOpenCL=true ^
-Dcom.syncleus.aparapi.enableVerboseJNIOpenCLResourceTracking=false ^
-Dcom.syncleus.aparapi.dumpFlags=true ^
-Dcom.syncleus.aparapi.enableInstructionDecodeViewer=false ^
-classpath ../../com.syncleus.aparapi/dist/aparapi.jar;mandel.jar ^
com.syncleus.aparapi.sample.mandel.Main
java\
-agentpath:../../com.syncleus.aparapi.jni/dist/libaparapi_x86_64.so\
-Djava.library.path=../../com.syncleus.aparapi.jni/dist\
-Dcom.syncleus.aparapi.useAgent=true\
-Dcom.syncleus.aparapi.executionMode=$1\
-classpath ../../com.syncleus.aparapi/dist/aparapi.jar:mandel.jar\
com.syncleus.aparapi.sample.mandel.Main
java ^
-Djava.library.path=../../com.syncleus.aparapi.jni/dist ^
-Dcom.syncleus.aparapi.executionMode=%1 ^
-Dcom.syncleus.aparapi.logLevel=OFF^
-Dcom.syncleus.aparapi.enableVerboseJNI=false ^
-Dcom.syncleus.aparapi.enableProfiling=false ^
-Dcom.syncleus.aparapi.enableShowGeneratedOpenCL=true ^
-Dcom.syncleus.aparapi.enableVerboseJNIOpenCLResourceTracking=false ^
-Dcom.syncleus.aparapi.dumpFlags=true ^
-Dcom.syncleus.aparapi.enableInstructionDecodeViewer=false ^
-classpath ../../com.syncleus.aparapi/dist/aparapi.jar;mandel.jar ^
com.syncleus.aparapi.sample.mandel.Main
java\
-Djava.library.path=../../com.syncleus.aparapi.jni/dist\
-Dcom.syncleus.aparapi.executionMode=$1\
-classpath ../../com.syncleus.aparapi/dist/aparapi.jar:mandel.jar\
com.syncleus.aparapi.sample.mandel.Main
java ^
-Djava.library.path=../../com.syncleus.aparapi.jni/dist ^
-Dcom.syncleus.aparapi.executionMode=%1 ^
-Dcom.syncleus.aparapi.enableProfiling=false ^
-Dcom.syncleus.aparapi.enableShowGeneratedOpenCL=true ^
-classpath ../../com.syncleus.aparapi/dist/aparapi.jar;mandel.jar ^
com.syncleus.aparapi.sample.mandel.Main2D
java\
-Djava.library.path=../../com.syncleus.aparapi.jni/dist\
-Dcom.syncleus.aparapi.executionMode=$1\
-classpath ../../com.syncleus.aparapi/dist/aparapi.jar:mandel.jar\
com.syncleus.aparapi.sample.mandel.Main2D
......@@ -16,6 +16,8 @@ public class All {
public static void main(String[] _args) {
System.out.println("Select which example to run:");
System.out.println(" 1) Game of Life");
System.out.println(" 2) Mandelbrot");
System.out.println(" 3) Mandlebrot 2D");
System.out.println();
Scanner in = new Scanner(System.in);
......@@ -49,6 +51,12 @@ public class All {
case "1":
com.syncleus.aparapi.examples.life.Main.main(null);
break;
case "2":
com.syncleus.aparapi.examples.mandel.Main.main(null);
break;
case "3":
com.syncleus.aparapi.examples.mandel.Main2D.main(null);
break;
default:
System.out.println("Invalid selection.");
}
......
/**
* 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.
......@@ -36,7 +46,7 @@ under those regulations, please refer to the U.S. Bureau of Industry and Securit
*/
package com.syncleus.aparapi.sample.mandel;
package com.syncleus.aparapi.examples.mandel;
import com.syncleus.aparapi.Kernel;
import com.syncleus.aparapi.*;
......
/**
* 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.
......@@ -36,7 +46,7 @@ under those regulations, please refer to the U.S. Bureau of Industry and Securit
*/
package com.syncleus.aparapi.sample.mandel;
package com.syncleus.aparapi.examples.mandel;
import com.syncleus.aparapi.Kernel;
import com.syncleus.aparapi.*;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment