diff --git a/tornado-unittests/src/main/java/uk/ac/manchester/tornado/unittests/math/TestMath.java b/tornado-unittests/src/main/java/uk/ac/manchester/tornado/unittests/math/TestMath.java index 44621035bf..0e9814e55a 100644 --- a/tornado-unittests/src/main/java/uk/ac/manchester/tornado/unittests/math/TestMath.java +++ b/tornado-unittests/src/main/java/uk/ac/manchester/tornado/unittests/math/TestMath.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013-2022, APT Group, Department of Computer Science, + * Copyright (c) 2013-2022, 2024, APT Group, Department of Computer Science, * The University of Manchester. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -246,6 +246,7 @@ public void testMathAtan() throws TornadoExecutionPlanException { ImmutableTaskGraph immutableTaskGraph = taskGraph.snapshot(); try (TornadoExecutionPlan executionPlan = new TornadoExecutionPlan(immutableTaskGraph)) { + executionPlan.withCompilerFlags(TornadoVMBackendType.OPENCL, "-cl-opt-disable"); executionPlan.execute(); } diff --git a/tornado-unittests/src/main/java/uk/ac/manchester/tornado/unittests/math/TestTornadoMathCollection.java b/tornado-unittests/src/main/java/uk/ac/manchester/tornado/unittests/math/TestTornadoMathCollection.java index 560cf0d1fe..e0f38808c5 100644 --- a/tornado-unittests/src/main/java/uk/ac/manchester/tornado/unittests/math/TestTornadoMathCollection.java +++ b/tornado-unittests/src/main/java/uk/ac/manchester/tornado/unittests/math/TestTornadoMathCollection.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-2022, APT Group, Department of Computer Science, + * Copyright (c) 2020-2022, 2024, APT Group, Department of Computer Science, * The University of Manchester. * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -322,6 +322,7 @@ public void testTornadoMathCosPIDouble() throws TornadoExecutionPlanException { ImmutableTaskGraph immutableTaskGraph = taskGraph.snapshot(); try (TornadoExecutionPlan executionPlan = new TornadoExecutionPlan(immutableTaskGraph)) { + executionPlan.withCompilerFlags(TornadoVMBackendType.OPENCL, "-cl-opt-disable"); executionPlan.execute(); } @@ -379,6 +380,7 @@ public void testTornadoMathSinPIDouble() throws TornadoExecutionPlanException { ImmutableTaskGraph immutableTaskGraph = taskGraph.snapshot(); try (TornadoExecutionPlan executionPlan = new TornadoExecutionPlan(immutableTaskGraph)) { + executionPlan.withCompilerFlags(TornadoVMBackendType.OPENCL, "-cl-opt-disable"); executionPlan.execute(); } @@ -590,6 +592,7 @@ public void testTornadoMathAtanDouble() throws TornadoExecutionPlanException { ImmutableTaskGraph immutableTaskGraph = taskGraph.snapshot(); try (TornadoExecutionPlan executionPlan = new TornadoExecutionPlan(immutableTaskGraph)) { + executionPlan.withCompilerFlags(TornadoVMBackendType.OPENCL, "-cl-opt-disable"); executionPlan.execute(); }