From 9c2ae8ddcb56f3d2f1c933eefb5159926f9f580f Mon Sep 17 00:00:00 2001 From: Gary Frost <frost.gary@gmail.com> Date: Tue, 22 Jan 2013 18:49:37 +0000 Subject: [PATCH] Creating java equiv of clinfo for debugging --- samples/info/.classpath | 8 +++ samples/info/.project | 17 +++++++ samples/info/build.xml | 20 ++++++++ .../com/amd/aparapi/sample/info/Main.class | Bin 0 -> 593 bytes samples/info/info.bat | 5 ++ samples/info/info.jar | Bin 0 -> 1382 bytes samples/info/info.sh | 4 ++ .../src/com/amd/aparapi/sample/info/Main.java | 46 ++++++++++++++++++ 8 files changed, 100 insertions(+) create mode 100644 samples/info/.classpath create mode 100644 samples/info/.project create mode 100644 samples/info/build.xml create mode 100644 samples/info/classes/com/amd/aparapi/sample/info/Main.class create mode 100644 samples/info/info.bat create mode 100644 samples/info/info.jar create mode 100644 samples/info/info.sh create mode 100644 samples/info/src/com/amd/aparapi/sample/info/Main.java diff --git a/samples/info/.classpath b/samples/info/.classpath new file mode 100644 index 00000000..2b3d4294 --- /dev/null +++ b/samples/info/.classpath @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<classpath> + <classpathentry kind="src" path="src"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> + <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> + <classpathentry combineaccessrules="false" kind="src" path="/com.amd.aparapi"/> + <classpathentry kind="output" path="classes"/> +</classpath> diff --git a/samples/info/.project b/samples/info/.project new file mode 100644 index 00000000..464357ee --- /dev/null +++ b/samples/info/.project @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>info</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/samples/info/build.xml b/samples/info/build.xml new file mode 100644 index 00000000..5f74b5da --- /dev/null +++ b/samples/info/build.xml @@ -0,0 +1,20 @@ +<?xml version="1.0"?> + +<project name="info" default="build" basedir="."> + <target name="build" depends="clean"> + <mkdir dir="classes"/> + <javac srcdir="src" destdir="classes" debug="on" includeantruntime="false" > + <classpath> + <pathelement path="../../com.amd.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> + + +</project> diff --git a/samples/info/classes/com/amd/aparapi/sample/info/Main.class b/samples/info/classes/com/amd/aparapi/sample/info/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..0f447921331be70af946ca89ad972a750738cd02 GIT binary patch literal 593 zcmaJ;$xZ@65Pi)y%!q;@xGQi1HPZ(V9xz@^JdI0&;o`wGIAW98G7KhumL4?m;0O3o z#_AaoBq8>ps_RwN>sQs^Kc8O!j?pxb!<vpNYI&?1*ubWSEe+cYxl`%M=!_xVYWEm2 z=l+AuP_(3HUrpS;9o~w*LrB^32g2!zP^x$eW}+uKW@uUi-{r!6;35#A2qYg1H*jn& zy+@y43h8x-*(J|VYu#BR@hrF_ydm#Kq4b6w^>X%JghL{$EXXq$U4Ie|><g*1=!()* zECp!DYuG7Z7kdnK(qWPgbE?BkbeKwqshTwG7f?qdDg9S6Lusb-x<9f9(Hzu$8ArBD zd-Erhs3t>6pWo0#5zS=_m!_`79P==P7N{bJ)=_OO+6EfP(vPW=0+l0AR;P%QXXLX7 zA7HO>+8~>Y!8VrYUPubaFH@vr1w}$s^GQrb*c(#i^gA*$0)tY(A-!|-heSsStAx|< IlTD%W3qmM_iU0rr literal 0 HcmV?d00001 diff --git a/samples/info/info.bat b/samples/info/info.bat new file mode 100644 index 00000000..ed9c0c28 --- /dev/null +++ b/samples/info/info.bat @@ -0,0 +1,5 @@ +java ^ + -Djava.library.path=../../com.amd.aparapi.jni/dist ^ + -classpath ../../com.amd.aparapi/dist/aparapi.jar;info.jar ^ + com.amd.aparapi.sample.info.Main + diff --git a/samples/info/info.jar b/samples/info/info.jar new file mode 100644 index 0000000000000000000000000000000000000000..0153b3442e50b0442322458b5ac389ac9f682e37 GIT binary patch literal 1382 zcmWIWW@h1HVBlb2U`#V}Vn70%3@i-3t|5-Po_=on|4uP51VEJn)dH3Bt4~@U1yr66 z#3DcpSL*BN=jrAe9HQsz_SyH$X&-N0y^Flwx?1PXoZlQ|aK-q+)1ouZLWMdWKIc3_ z8M+u%b-(mf?wr#dB<vj&TryY7@zvR{Jdb#LN+<L9h?@NA7MfffBs%AFH`k|bA@7D? zrj<J@cEa5Pv>46VEI^^;{9JvQYcW*--49lgn45w}l>m~e#Dc`4#DYvbs>QLWE>6rX z$VtVcNd~v3%)GRGxK2ob-(j<woyEw&5Xi*9phiHaZ(?SiUUE)iadGX$(|(5>MB4s8 z42xQ=z;RDBqH)%_L#^CB(!$|iCnen2Vc@*dVu^TAS7-lHZr_+640cmK`Y1XICy75l z|MUFJ;(h08YU^v5EZhz|@MT+Rt$4OEFM)Zs)HahG<0pQp3XhH3N;Y3jJu#=fcKX7E z(+Bp>`eAFnOVqZ1&Lml@L$A9$R@J1XJ#x29%edk9qWIzWof4fMJu33t^-p%ju<<MI z7ct5RUhjV@Aot!)=Z`8o)SDRJADPI*mb=xmT7MBEueSaQV~M#1LYD7ZL$XUvF9pS_ znLIIlGvmflIp<yroktteWUfs)93(T%YDwaK7v8U#ulJweIcj;lH2;OwNBPyCZTe#8 zztf!)u+XS=n&N)NM>BTBJ`^smY&^T5H{{vHKCj}7xeNMq_Rjbfl<-Pk^VO8XAh%hz z73|fXr`V3hByHQ^a&eB?1ii_xA{-OTeyB*g-O~<Q`bFC4Gb5X3fk$;;9q+}!BU+k! z>n=t9V+`<SWD;S<otJ=71_S~OZyiB2Ji9=07ECMlyamz#0!tdTfh1fjQcgp*99xb6 zYX@7t9ms^_515@m0kk{>${`Q{a_&ta6Ql!@UvTRJ<roM6>G}_3!gL|>4{qI{90UO% z-MYYpj;<S?pKu!j%25bIl5iUW&0jE+u;(zCSxXw{5HJam-vYc@*+BX@fRGKCQ@xl$ FJOHVHZ{Gj_ literal 0 HcmV?d00001 diff --git a/samples/info/info.sh b/samples/info/info.sh new file mode 100644 index 00000000..51f9197c --- /dev/null +++ b/samples/info/info.sh @@ -0,0 +1,4 @@ +java \ + -Djava.library.path=../../com.amd.aparapi.jni/dist \ + -classpath ../../com.amd.aparapi/dist/aparapi.jar:info.jar \ + com.amd.aparapi.sample.info.Main diff --git a/samples/info/src/com/amd/aparapi/sample/info/Main.java b/samples/info/src/com/amd/aparapi/sample/info/Main.java new file mode 100644 index 00000000..f6d465a6 --- /dev/null +++ b/samples/info/src/com/amd/aparapi/sample/info/Main.java @@ -0,0 +1,46 @@ +/* +Copyright (c) 2010-2011, Advanced Micro Devices, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +following conditions are met: + +Redistributions of source code must retain the above copyright notice, this list of conditions and the following +disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following +disclaimer in the documentation and/or other materials provided with the distribution. + +Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products +derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +If you use the software (in whole or in part), you shall adhere to all applicable U.S., European, and other export +laws, including but not limited to the U.S. Export Administration Regulations ("EAR"), (15 C.F.R. Sections 730 through +774), and E.U. Council Regulation (EC) No 1334/2000 of 22 June 2000. Further, pursuant to Section 740.6 of the EAR, +you hereby certify that, except pursuant to a license granted by the United States Department of Commerce Bureau of +Industry and Security or as otherwise permitted pursuant to a License Exception under the U.S. Export Administration +Regulations ("EAR"), you will not (1) export, re-export or release to a national of a country in Country Groups D:1, +E:1 or E:2 any restricted technology, software, or source code you receive hereunder, or (2) export to Country Groups +D:1, E:1 or E:2 the direct product of such technology or software, if such foreign produced direct product is subject +to national security controls as identified on the Commerce Control List (currently found in Supplement 1 to Part 774 +of EAR). For the most current Country Group listings, or for additional information about the EAR or your obligations +under those regulations, please refer to the U.S. Bureau of Industry and Security's website at http://www.bis.doc.gov/. + +*/ + +package com.amd.aparapi.sample.info; + +public class Main{ + public static void main(String[] _args) { + System.out.println("com.amd.aparapi.sample.info.Main"); + } + +} -- GitLab