Skip to content

Commit

Permalink
Merge pull request #553 from stratika/fix/ocl/math-tests/integrated-gpus
Browse files Browse the repository at this point in the history
[fix] OCL compiler flags for math tests on Integrated GPUs
  • Loading branch information
jjfumero authored Sep 10, 2024
2 parents 0a2da6f + 935eed6 commit cba529c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -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();
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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");
Expand Down Expand Up @@ -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();
}

Expand Down Expand Up @@ -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();
}

Expand Down Expand Up @@ -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();
}

Expand Down

0 comments on commit cba529c

Please sign in to comment.