Skip to content

Commit

Permalink
Update tests and reading/writeng frames for OpenMP5
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsynSA committed Oct 10, 2020
1 parent a88c170 commit 3eb4dac
Show file tree
Hide file tree
Showing 17 changed files with 4,079 additions and 29 deletions.
4 changes: 3 additions & 1 deletion OpenMP5/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ int main(int argc, char** argv)
for (uint32_t x = 0; x < xSize; x++)
{
input >> inputFrame[y*xSize + x];
inputFrame[y*xSize + x] -= '0';
}
}

Expand All @@ -55,7 +56,8 @@ int main(int argc, char** argv)
{
for (uint32_t x = 0; x < xSize; x++)
{
output << " " << outputFrame[y*xSize + x];
outputFrame[y*xSize + x] += '0';
output << " " << outputFrame[y*xSize + x];
}
output << "\n";
}
Expand Down
9 changes: 5 additions & 4 deletions OpenMP5/tests/00/input.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
3 3 0 1
1 0 1
0 1 0
1 0 1
4 4 0 1
1 0 1 0
0 1 0 1
1 0 1 0
0 1 0 1
7 changes: 4 additions & 3 deletions OpenMP5/tests/00/output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1 0 1
0 1 0
1 0 1
1 0 1 0
0 1 0 1
1 0 1 0
0 1 0 1
9 changes: 5 additions & 4 deletions OpenMP5/tests/01/input.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
3 3 0 8
1 0 1
0 1 0
1 0 1
4 4 0 8
1 0 1 0
0 1 0 1
1 0 1 0
0 1 0 1
7 changes: 4 additions & 3 deletions OpenMP5/tests/01/output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1 0 1
0 1 0
1 0 1
1 0 1 0
0 1 0 1
1 0 1 0
0 1 0 1
9 changes: 5 additions & 4 deletions OpenMP5/tests/02/input.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
3 3 1000 1
1 0 1
0 0 0
1 0 1
4 4 100 1
0 0 0 0
0 1 1 0
0 1 1 0
0 0 0 0
7 changes: 4 additions & 3 deletions OpenMP5/tests/02/output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1 0 1
0 0 0
1 0 1
0 0 0 0
0 1 1 0
0 1 1 0
0 0 0 0
9 changes: 5 additions & 4 deletions OpenMP5/tests/03/input.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
3 3 100 8
1 0 1
0 0 0
1 0 1
4 4 100 8
0 0 0 0
0 1 1 0
0 1 1 0
0 0 0 0
7 changes: 4 additions & 3 deletions OpenMP5/tests/03/output.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
1 0 1
0 0 0
1 0 1
0 0 0 0
0 1 1 0
0 1 1 0
0 0 0 0
10 changes: 10 additions & 0 deletions OpenMP5/tests/04/input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
9 9 100001 1
0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 0
9 changes: 9 additions & 0 deletions OpenMP5/tests/04/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 1 1 1 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
10 changes: 10 additions & 0 deletions OpenMP5/tests/05/input.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
9 9 100001 8
0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 1 0 0
0 0 0 0 0 0 0 0 0
9 changes: 9 additions & 0 deletions OpenMP5/tests/05/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 1 1 1 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
1,001 changes: 1,001 additions & 0 deletions OpenMP5/tests/06/input.txt

Large diffs are not rendered by default.

1,000 changes: 1,000 additions & 0 deletions OpenMP5/tests/06/output.txt

Large diffs are not rendered by default.

1,001 changes: 1,001 additions & 0 deletions OpenMP5/tests/07/input.txt

Large diffs are not rendered by default.

1,000 changes: 1,000 additions & 0 deletions OpenMP5/tests/07/output.txt

Large diffs are not rendered by default.

0 comments on commit 3eb4dac

Please sign in to comment.