Skip to content
Snippets Groups Projects
Commit 21035174 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Merge branch 'master' into 'master'

Fix: Unit test ProfileReportBackwardsCompatTest was failing the 500ms time winddow under system load

See merge request aparapi/aparapi!23
parents 0a0eab7c 226b6177
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ public class ProfileReportBackwardsCompatTest {
assertEquals("Aparapi Accumulated execution time doesn't match", accumulatedExecutionTime, kernel.getAccumulatedExecutionTime(), 1e-10);
assertEquals("Aparapi last execution time doesn't match last report", lastExecutionTime, report.getExecutionTime(), 1e-10);
assertEquals("Aparapi last conversion time doesn't match last report", lastConversionTime, report.getConversionTime(), 1e-10);
assertEquals("Test estimated accumulated time doesn't match within 500ms window", runTime, accumulatedExecutionTime, 500);
assertEquals("Test estimated accumulated time doesn't match within 20% time window", runTime, accumulatedExecutionTime, 0.2f*runTime);
assertTrue(validateBasic1Kernel(inputArray, outputArray));
} finally {
kernel.registerProfileReportObserver(null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment