From christian.thalinger at oracle.com Thu Mar 24 23:50:12 2016 From: christian.thalinger at oracle.com (Christian Thalinger) Date: Thu, 24 Mar 2016 13:50:12 -1000 Subject: Generating Cuda Codes an finding specific bytecodes In-Reply-To: References: Message-ID: Last time we pointed you to the Sumatra project and the Graal changeset which contained the PTX and HSAIL backends before they got removed. I highly suggest to use that version to go forward. Also, if you are seriously interested in working on Sumatra I would use the sumatra-dev mailing list to ask questions (bcc?ing graal-dev). A good first step and excellent learning opportunity would be to bring the Sumatra changes to the current Graal version. Here is a list of people who have been involved in Project Sumatra in the past: http://openjdk.java.net/census#sumatra > On Mar 24, 2016, at 12:29 AM, Bahram Yarahmadi wrote: > > Dear all, > These days I'm working and learning graal and as you know,I want to run > Java 8 Stream APIs with Lambdas on GPUs > I followed tutorial on the website but It was useless > I have a few questions > should I change the graal source repository and build it again with mx > build command.For example in which class should I change my modification in > order to change the specific bytecode (for example invocDynamic which is > for lambdas) to graal IR ? > How can I read Bytecodes and convert them to Graal IR? > After that I want to apply come Optimizations > would you mind giving me some hints ? (for example in which class should I > focus and things like that ) > > Thanks in advance > > Regards From christian.thalinger at oracle.com Mon Mar 28 17:25:56 2016 From: christian.thalinger at oracle.com (Christian Thalinger) Date: Mon, 28 Mar 2016 07:25:56 -1000 Subject: Generating Cuda Codes an finding specific bytecodes In-Reply-To: References: Message-ID: <05057A07-B8B8-4825-AC5F-340C164E7247@oracle.com> > On Mar 25, 2016, at 1:37 AM, Bahram Yarahmadi wrote: > > Thanks > but Christian ,as you know,in Sumatra Project the intermediate code is HSAIL and there is no GPU backend for HSAIL yet,We have to use simulators > I want to generate PTX or high level CUDA code directly Sumatra also has a PTX backend. Look at the changeset we pointed you at, e.g.: http://hg.openjdk.java.net/graal/graal-compiler/file/c8fc6e2d128b/graal/com.oracle.graal.hotspot.ptx/src/com/oracle/graal/hotspot/ptx > > Thanks again > > Ragards > > On Thu, Mar 24, 2016 at 4:50 PM, Christian Thalinger > wrote: > Last time we pointed you to the Sumatra project and the Graal changeset which contained the PTX and HSAIL backends before they got removed. I highly suggest to use that version to go forward. > > Also, if you are seriously interested in working on Sumatra I would use the sumatra-dev mailing list to ask questions (bcc?ing graal-dev). A good first step and excellent learning opportunity would be to bring the Sumatra changes to the current Graal version. > > Here is a list of people who have been involved in Project Sumatra in the past: > > http://openjdk.java.net/census#sumatra > > > On Mar 24, 2016, at 12:29 AM, Bahram Yarahmadi > wrote: > > > > Dear all, > > These days I'm working and learning graal and as you know,I want to run > > Java 8 Stream APIs with Lambdas on GPUs > > I followed tutorial on the website but It was useless > > I have a few questions > > should I change the graal source repository and build it again with mx > > build command.For example in which class should I change my modification in > > order to change the specific bytecode (for example invocDynamic which is > > for lambdas) to graal IR ? > > How can I read Bytecodes and convert them to Graal IR? > > After that I want to apply come Optimizations > > would you mind giving me some hints ? (for example in which class should I > > focus and things like that ) > > > > Thanks in advance > > > > Regards > >