Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aml
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
27
Issues
27
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
aml
Commits
10e8396f
Commit
10e8396f
authored
Sep 05, 2019
by
Swann Perarnau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] make tilings and layout tests work
We're getting somewhere.
parent
8d3472bf
Pipeline
#8423
failed with stages
in 10 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
73 deletions
+80
-73
tests/Makefile.am
tests/Makefile.am
+2
-0
tests/layout/test_layout.c
tests/layout/test_layout.c
+7
-7
tests/tiling/test_tiling.c
tests/tiling/test_tiling.c
+71
-66
No files found.
tests/Makefile.am
View file @
10e8396f
...
...
@@ -20,6 +20,7 @@ AREA_TESTS = \
LAYOUT_TESTS
=
layout/test_layout
TILING_TESTS
=
tiling/test_tiling
DMA_LINUX_TESTS
=
dma/test_dma_linux_seq
\
dma/test_dma_linux_par
...
...
@@ -30,6 +31,7 @@ endif
# unit tests
UNIT_TESTS
=
$(UTILS_TESTS)
\
$(TILING_TESTS)
\
$(LAYOUT_TESTS)
\
$(BINDING_TESTS)
\
$(AREA_TESTS)
\
...
...
tests/layout/test_layout.c
View file @
10e8396f
...
...
@@ -38,7 +38,7 @@ void test_slice_contiguous(void)
NULL
,
dims_col
)
==
AML_SUCCESS
);
assert
(
aml_layout_slice
(
a
,
&
b
,
new_dims_col
,
offsets_col
,
NULL
)
==
AML_SUCCESS
);
assert
(
aml_layout_slice
(
a
,
&
b
,
offsets_col
,
new_dims_col
,
NULL
)
==
AML_SUCCESS
);
assert
(
AML_LAYOUT_ORDER_COLUMN_MAJOR
==
aml_layout_order
(
b
));
...
...
@@ -67,8 +67,8 @@ void test_slice_contiguous(void)
dims_row
,
NULL
,
dims_row
)
==
AML_SUCCESS
);
assert
(
aml_layout_slice
(
a
,
&
b
,
new_dims_row
,
offset
s_row
,
NULL
)
==
AML_SUCCESS
);
assert
(
aml_layout_slice
(
a
,
&
b
,
offsets_row
,
new_dim
s_row
,
NULL
)
==
AML_SUCCESS
);
assert
(
AML_LAYOUT_ORDER_ROW_MAJOR
==
aml_layout_order
(
b
));
for
(
size_t
i
=
0
;
i
<
new_dims_row
[
0
];
i
++
)
...
...
@@ -128,8 +128,8 @@ void test_slice_strided(void)
stride
,
pitch_col
)
==
AML_SUCCESS
);
assert
(
aml_layout_slice
(
a
,
&
b
,
new_dims_col
,
offset
s_col
,
new_stride_col
)
==
AML_SUCCESS
);
assert
(
aml_layout_slice
(
a
,
&
b
,
offsets_col
,
new_dim
s_col
,
new_stride_col
)
==
AML_SUCCESS
);
for
(
size_t
i
=
0
;
i
<
3
;
i
++
)
for
(
size_t
j
=
0
;
j
<
3
;
j
++
)
for
(
size_t
k
=
0
;
k
<
2
;
k
++
){
...
...
@@ -152,8 +152,8 @@ void test_slice_strided(void)
dims_row
,
stride
,
pitch_row
)
==
AML_SUCCESS
);
assert
(
aml_layout_slice
(
a
,
&
b
,
new_dims_row
,
offset
s_row
,
new_stride_row
)
==
AML_SUCCESS
);
assert
(
aml_layout_slice
(
a
,
&
b
,
offsets_row
,
new_dim
s_row
,
new_stride_row
)
==
AML_SUCCESS
);
for
(
size_t
i
=
0
;
i
<
3
;
i
++
)
for
(
size_t
j
=
0
;
j
<
3
;
j
++
)
...
...
tests/tiling/test_tiling.c
View file @
10e8396f
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment