Commit 2bcf1ac9 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman 💥
Browse files

Moved life sample out to the functioning part of the project.

parent 86c70ce8
......@@ -28,3 +28,4 @@ hs_err_pid*
**/dist/
**/include/
**/nbproject/
target/
......@@ -76,6 +76,14 @@
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.syncleus.aparapi</groupId>
<artifactId>aparapi</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<build>
<defaultGoal>package</defaultGoal>
......
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>life</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="life" 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-life-gpu">
<java classname="com.syncleus.aparapi.sample.life.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-life-jtp">
<java classname="com.syncleus.aparapi.sample.life.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-agent-gpu">
<java classname="com.syncleus.aparapi.sample.life.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.life.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^
-Dcom.syncleus.aparapi.useAgent=true ^
-Djava.library.path=../../com.syncleus.aparapi.jni/dist ^
-Dsequential=false^
-Dcom.syncleus.aparapi.executionMode=%1 ^
-Dcom.syncleus.aparapi.enableProfiling=false ^
-Dcom.syncleus.aparapi.enableVerboseJNI=false ^
-Dcom.syncleus.aparapi.enableShowGeneratedOpenCL=true ^
-classpath ../../com.syncleus.aparapi/dist/aparapi.jar;life.jar ^
com.syncleus.aparapi.sample.life.Main
java\
-agentpath:../../com.syncleus.aparapi.jni/dist/libaparapi_x86_64.so\
-Dcom.syncleus.aparapi.executionMode=$1\
-Dcom.syncleus.aparapi.useAgent=true\
-classpath ../../com.syncleus.aparapi/dist/aparapi.jar:life.jar\
com.syncleus.aparapi.sample.life.Main
java ^
-Djava.library.path=../../com.syncleus.aparapi.jni/dist ^
-Dsequential=false^
-Dcom.syncleus.aparapi.executionMode=GPU ^
-Dcom.syncleus.aparapi.enableProfiling=false ^
-Dcom.syncleus.aparapi.enableVerboseJNI=false ^
-Dcom.syncleus.aparapi.enableShowGeneratedOpenCL=true ^
-classpath ../../com.syncleus.aparapi/dist/aparapi.jar;life.jar ^
com.syncleus.aparapi.sample.life.Main
java\
-Djava.library.path=../../com.syncleus.aparapi.jni/dist\
-Dcom.syncleus.aparapi.executionMode=$1\
-classpath ../../com.syncleus.aparapi/dist/aparapi.jar:life.jar\
com.syncleus.aparapi.sample.life.Main
/**
* 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.life;
package com.syncleus.aparapi.examples.life;
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