Mercurial > hg > truffle
comparison graal/com.oracle.graal.compiler.ptx/src/com/oracle/graal/compiler/ptx/PTXTargetMethodAssembler.java @ 11485:49bb1bc983c6
Implement several missing PTX codegen features; return value capture and method args passing of java method executed on GPU.
author | bharadwaj |
---|---|
date | Fri, 30 Aug 2013 16:39:05 -0400 |
parents | b0b368d38b40 |
children | 8d8f63069f58 |
comparison
equal
deleted
inserted
replaced
11484:2aac62d79af4 | 11485:49bb1bc983c6 |
---|---|
48 ResolvedJavaMethod method = graph.method(); | 48 ResolvedJavaMethod method = graph.method(); |
49 assert method != null : graph + " is not associated wth a method"; | 49 assert method != null : graph + " is not associated wth a method"; |
50 ExternalCompilationResult graalCompile = (ExternalCompilationResult) super.finishTargetMethod(graph); | 50 ExternalCompilationResult graalCompile = (ExternalCompilationResult) super.finishTargetMethod(graph); |
51 | 51 |
52 try { | 52 try { |
53 if (validDevice) { | 53 if ((validDevice) && (graalCompile.getTargetCode() != null)) { |
54 long kernel = toGPU.generateKernel(graalCompile.getTargetCode(), method.getName()); | 54 long kernel = toGPU.generateKernel(graalCompile.getTargetCode(), method.getName()); |
55 graalCompile.setEntryPoint(kernel); | 55 graalCompile.setEntryPoint(kernel); |
56 } | 56 } |
57 } catch (Throwable th) { | 57 } catch (Throwable th) { |
58 th.printStackTrace(); | 58 th.printStackTrace(); |