forcing a deopt in junit tests
Deneau, Tom
tom.deneau at amd.com
Tue Apr 29 17:55:38 UTC 2014
In some junit tests for the hsail backend, I would like to force a deoptimization but not via throwing an exception.
What is the best way to do this, taking into account that our junits run the test routine once on the host and then once on the gpu and compare the results?
One way I was thinking was to have a class and method that are only used in those junits and then for the hsail backend, implement a MethodSubsitution for that method that immediately calls DeoptimizeNode.deopt().
or is there something simpler?
-- Tom
More information about the graal-dev
mailing list