# HG changeset patch # User Doug Simon # Date 1389650592 -3600 # Node ID d368f55560599f09add93c6488e1368dca4549b4 # Parent 881dd7f896de996fe14cc5c3ad002822b844fc2e disabled new PTX tests if PTX GPU is not available diff -r 881dd7f896de -r d368f5556059 graal/com.oracle.graal.hotspot.ptx.test/src/com/oracle/graal/hotspot/ptx/test/PTXLaunchKernelTest.java --- a/graal/com.oracle.graal.hotspot.ptx.test/src/com/oracle/graal/hotspot/ptx/test/PTXLaunchKernelTest.java Mon Jan 13 22:36:19 2014 +0100 +++ b/graal/com.oracle.graal.hotspot.ptx.test/src/com/oracle/graal/hotspot/ptx/test/PTXLaunchKernelTest.java Mon Jan 13 23:03:12 2014 +0100 @@ -67,7 +67,7 @@ @Override protected CompilationResult compile(ResolvedJavaMethod method, StructuredGraph graph) { - CallingConvention cc = getCallingConvention(getCodeCache(), Type.JavaCallee, graph.method(), false); + Assume.assumeTrue(getBackend() instanceof PTXHotSpotBackend); /* * Use Suites.createDefaultSuites() instead of GraalCompilerTest.suites. The @@ -78,6 +78,7 @@ * Ultimately we might want to have both the kernel and the code natively compiled for * GPU fallback to CPU in cases of ECC failure on kernel invocation. */ + CallingConvention cc = getCallingConvention(getCodeCache(), Type.JavaCallee, graph.method(), false); Suites suites = Suites.createDefaultSuites(); PTXHotSpotBackend ptxBackend = (PTXHotSpotBackend) getBackend(); ExternalCompilationResult kernelResult = compileGraph(graph, cc, method, getProviders(), ptxBackend, ptxBackend.getTarget(), null, getDefaultGraphBuilderSuite(),