graal/com.oracle.graal.compiler.hsail.test/src/com/oracle/graal/compiler/hsail/test/lambda/DoubleTanTest.java
Print this page
@@ -36,10 +36,16 @@
dispatchLambdaKernel(size, (gid) -> {
outArray[gid] = Math.tan(inArray[gid]);
});
}
+ // internally allocates a Rempiostruct, escape analysis not catching it
+ @Override
+ protected boolean supportsRequiredCapabilities() {
+ return (canHandleObjectAllocation());
+ }
+
@Test
public void testUsingLambdaMethod() {
testGeneratedHsailUsingLambdaMethod();
}
}