forked from daphne-eu/daphne
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kernels] boolean scalar equality operators
EwBinarySca was missing the implementation for boolean equality operators, meaning that simple equality checks for control flow using booleans was not working. Adds a testcase. Previous error: RewriteToCallKernelOpPass failed with the following message [ no kernel for operation `ewEq` available for the required input types `(i1, i1)` and output types `(i1)` A = rand(1,1, 0.0, 1.0, 1.0, -1); x = as.scalar<f64>(A[0,0]); terminate = false; while (terminate == false) { if (x > 0.5) { terminate = true; } x = x + 0.5; } print("done.");
- Loading branch information
1 parent
abc6c38
commit 287f4c5
Showing
5 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
A = rand(1,1, 0.0, 1.0, 1.0, -1); | ||
x = as.scalar<f64>(A[0,0]); | ||
|
||
terminate = false; | ||
while (terminate == false) { | ||
if (x > 0.5) { | ||
terminate = true; | ||
} | ||
x = x + 0.5; | ||
} | ||
print("done."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
done. |